当前位置:网站首页>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边栏推荐
- 2014阿里巴巴web前实习生项目分析(1)
- 在IPv6中 链路本地地址的优势
- MySQL教程的天花板,收藏好,慢慢看
- Typescript get function parameter type
- Aardio - 利用customPlus库+plus构造一个多按钮组件
- Leetcode exercise - Sword finger offer 26 Substructure of tree
- 如何用程序确认当前系统的存储模式?
- ThreadLocal详解
- Applet system update prompt, and force the applet to restart and use the new version
- Data storage (1)
猜你喜欢

重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障

Improving Multimodal Accuracy Through Modality Pre-training and Attention

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

NPDP认证|产品经理如何跨职能/跨团队沟通?

signed、unsigned关键字

Installation and use of labelimg

Chapter 3: detailed explanation of class loading process (class life cycle)

Aardio - 不声明直接传float数值的方法
![pytorch_ Yolox pruning [with code]](/img/98/31d6258635ce48ac53819d0ca12d1d.jpg)
pytorch_ Yolox pruning [with code]

剑指offer刷题记录1
随机推荐
树的先序中序后序遍历
volatile关键字
Attack and defense world miscall
NPDP认证|产品经理如何跨职能/跨团队沟通?
How do I write Flask's excellent debug log message to a file in production?
Spatial domain and frequency domain image compression of images
Learn the principle of database kernel from Oracle log parsing
HDR image reconstruction from a single exposure using deep CNN reading notes
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
Chapter 4: talk about class loader again
枚举与#define 宏的区别
go多样化定时任务通用实现与封装
MySQL教程的天花板,收藏好,慢慢看
HDU 5077 NAND (violent tabulation)
如何用程序确认当前系统的存储模式?
Aardio - 利用customPlus库+plus构造一个多按钮组件
CocosCreator+TypeScripts自己写一个对象池
UDP programming
0 basic learning C language - interrupt