当前位置:网站首页>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边栏推荐
- [linear algebra] determinant of order 1.3 n
- leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
- extern关键字
- Puppeteer连接已有Chrome浏览器
- OpenSSL:适用TLS与SSL协议的全功能工具包,通用加密库
- poj 1094 Sorting It All Out (拓扑排序)
- Unity3d minigame-unity-webgl-transform插件转换微信小游戏报错To use dlopen, you need to use Emscripten‘s...问题
- 【无标题】
- NPM cannot install sharp
- Leetcode exercise - Sword finger offer 26 Substructure of tree
猜你喜欢

config:invalid signature 解决办法和问题排查详解

Aardio - 通过变量名将变量值整合到一串文本中

Improving Multimodal Accuracy Through Modality Pre-training and Attention

新手程序员该不该背代码?

signed、unsigned关键字

labelimg的安装与使用
![[linear algebra] determinant of order 1.3 n](/img/6e/54f3a994fc4c2c10c1036bee6715e8.gif)
[linear algebra] determinant of order 1.3 n

0 basic learning C language - interrupt

Aardio - 利用customPlus库+plus构造一个多按钮组件

MySQL ---- first acquaintance with MySQL
随机推荐
自定义 swap 函数
Unity3d minigame-unity-webgl-transform插件转换微信小游戏报错To use dlopen, you need to use Emscripten‘s...问题
(18) LCD1602 experiment
NPDP认证|产品经理如何跨职能/跨团队沟通?
(十八)LCD1602实验
Netxpert xg2 helps you solve the problem of "Cabling installation and maintenance"
自制J-Flash烧录工具——Qt调用jlinkARM.dll方式
机试刷题1
Plafond du tutoriel MySQL, bien collecté, regardez lentement
labelimg的安装与使用
signed、unsigned关键字
云原生技术--- 容器知识点
重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障
Dealing with the crash of QT quick project in offscreen mode
Advantages of link local address in IPv6
Typescript get function parameter type
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
case 关键字后面的值有什么要求吗?
基于 QEMUv8 搭建 OP-TEE 开发环境
Mise en place d'un environnement de développement OP - tee basé sur qemuv8