年前就一直研究了下WebGL相关的东西,看了很多资料和文档,这里做了一些小实践,记录分享一下。 代码: "链接" 预览: "链接" demo: 前置知识 WebGL和Threejs的关系: WebGL是一种 3D 绘图协议,这种绘图技术标准结合了JavaScript和OpenGL ES 2.0,在H ...
分类:
Web程序 时间:
2020-03-06 19:12:14
阅读次数:
100
【参考网址】 vue全景图photo-sphere-viewer的使用以及改变图片 360全景图three.js与Photo-Sphere-Viewer全景开发 ...
分类:
Web程序 时间:
2020-03-06 17:24:21
阅读次数:
123
YAML的块序列表示一系列节点。 每个项目都由一个前导 - 指示符表示。 请注意,YAML中的-指示符应与具有空格的节点分开。 块序列的基本表示如下 - block sequence: ··- one↓ - two : three↓ YAML 示例 请观察以下示例以更好地理解块序列。 示例1 por ...
分类:
其他好文 时间:
2020-03-06 01:22:08
阅读次数:
63
"I Count Two Three" 可以预处理出所有的满足题目并且比1e9小的的数,不会很多。排个序。询问的时候二分查找就好了 ...
分类:
其他好文 时间:
2020-03-04 23:33:43
阅读次数:
99
There are three popular metrics to measure the correlation between two random variables: Pearson's correlation coefficient, Kendall's tau and Spearman ...
分类:
其他好文 时间:
2020-03-04 09:49:24
阅读次数:
112
[TOC] "原文地址" Folding in code 三、代码折叠 Folding in code is quite different in UDL 2.1. Instead of two keyword sets (open and close), now we have three key ...
分类:
其他好文 时间:
2020-03-02 20:32:16
阅读次数:
70
In a given grid, each cell can have one of three values: the value 0 representing an empty cell; the value 1 representing a fresh orange; the value 2 ...
分类:
其他好文 时间:
2020-03-01 12:42:36
阅读次数:
56
threejs设置阴影有三个注意点 1.只有支持阴影的灯光才可以 pointLight,spotlight,directionallight 2.添加摄像机辅助器 THREE.CameraHelper 查看阴影摄像机的相关设置 light.shadow.camera.left //此四项值为阴影投射 ...
分类:
Web程序 时间:
2020-02-28 13:53:21
阅读次数:
118
You are given three integers a≤b≤ca≤b≤c . In one move, you can add +1+1 or ?1?1 to any of these integers (i.e. increase or decrease any number by one) ...
分类:
其他好文 时间:
2020-02-28 01:07:48
阅读次数:
85
A. Three Strings 题意:给三个长度相同的非空字符串abc,依次将c中的每个字符和a或者b中对应位置的字符进行交换,交换必须进行,问能否使得ab相同。 思路:对于每一个位置,如果三个字符都不相同,那一定不同,如果有两个相同且不是ab相同,则合法,否则不合法,如果三个字符都相同,那么合法 ...
分类:
其他好文 时间:
2020-02-27 23:41:50
阅读次数:
111