当前位置:网站首页>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边栏推荐
猜你喜欢

关于声子和热输运计算中BORN电荷和non-analytic修正的问题

CocosCreator+TypeScripts自己写一个对象池

自制J-Flash烧录工具——Qt调用jlinkARM.dll方式

Leetcode question brushing (XI) -- sequential questions brushing 51 to 55

Spatial domain and frequency domain image compression of images

Aardio - does not declare the method of directly passing float values
![[leetcode] 19. Delete the penultimate node of the linked list](/img/ab/25cb6d6538ad02d78f7d64b2a2df3f.png)
[leetcode] 19. Delete the penultimate node of the linked list
![[Digital IC hand tearing code] Verilog burr free clock switching circuit | topic | principle | design | simulation](/img/2b/15b3d831bba6aa772ad83f3ac91d23.png)
[Digital IC hand tearing code] Verilog burr free clock switching circuit | topic | principle | design | simulation

Advantages of link local address in IPv6

2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
随机推荐
case 关键字后面的值有什么要求吗?
如何用程序确认当前系统的存储模式?
ThreadLocal详解
[linear algebra] determinant of order 1.3 n
Plafond du tutoriel MySQL, bien collecté, regardez lentement
The difference between enumeration and define macro
volatile关键字
2022-07-05 使用tpcc对stonedb进行子查询测试
Jafka来源分析——Processor
SQL Server生成自增序号
Leetcode exercise - Sword finger offer 26 Substructure of tree
HDR image reconstruction from a single exposure using deep CNN reading notes
Unity3d minigame-unity-webgl-transform插件转换微信小游戏报错To use dlopen, you need to use Emscripten‘s...问题
【编译原理】做了一半的LR(0)分析器
Netxpert xg2 helps you solve the problem of "Cabling installation and maintenance"
MySQL教程的天花板,收藏好,慢慢看
How big is the empty structure?
Aardio - does not declare the method of directly passing float values
return 关键字
Mise en place d'un environnement de développement OP - tee basé sur qemuv8