当前位置:网站首页>three. JS gorgeous bubble effect
three. JS gorgeous bubble effect
2022-07-06 22:35:00 【Ziwei front end】

html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
canvas {
position: fixed;
width: 100%;
height: 100%;
}const nbObjects = 800;
var conf, scene, camera, cameraCtrl, light, renderer;
var whw, whh;
var objects;
var spriteMap, spriteMaterial;
var mouse = new THREE.Vector2();
var mouseOver = false;
var mousePlane = new THREE.Plane(new THREE.Vector3(0, 0, 1), 0);
var mousePosition = new THREE.Vector3();
var raycaster = new THREE.Raycaster();
function init() {
conf = {
opacity: 0.8
};
scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera(100, window.innerWidth / window.innerHeight, 0.1, 1000);
cameraCtrl = new THREE.OrbitControls(camera);
cameraCtrl.autoRotate = true;
cameraC边栏推荐
- 【LeetCode】19、 删除链表的倒数第 N 个结点
- UVa 11732 – strcmp() Anyone?
- 2022-07-05 use TPCC to conduct sub query test on stonedb
- MySQL教程的天花板,收藏好,慢慢看
- 基于 QEMUv8 搭建 OP-TEE 开发环境
- Clip +json parsing converts the sound in the video into text
- 2014 Alibaba web pre intern project analysis (1)
- uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
- Sword finger offer question brushing record 1
- [leetcode] 19. Delete the penultimate node of the linked list
猜你喜欢

That's why you can't understand recursion

基于 QEMUv8 搭建 OP-TEE 开发环境
Learn the principle of database kernel from Oracle log parsing

0 basic learning C language - interrupt

在IPv6中 链路本地地址的优势

Build op-tee development environment based on qemuv8

(18) LCD1602 experiment

CCNA Cisco network EIGRP protocol

视图(view)

Improving Multimodal Accuracy Through Modality Pre-training and Attention
随机推荐
将MySQL的表数据纯净方式导出
The ceiling of MySQL tutorial. Collect it and take your time
Attack and defense world ditf Misc
Pit encountered by handwritten ABA
Return keyword
Improving Multimodal Accuracy Through Modality Pre-training and Attention
The SQL response is slow. What are your troubleshooting ideas?
软考高级(信息系统项目管理师)高频考点:项目质量管理
Applet system update prompt, and force the applet to restart and use the new version
变量与“零值”的比较
UDP编程
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
HDU 5077 NAND (violent tabulation)
UDP programming
CocosCreator+TypeScripts自己写一个对象池
Advantages of link local address in IPv6
How to use flexible arrays?
Self made j-flash burning tool -- QT calls jlinkarm DLL mode