当前位置:网站首页>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
边栏推荐
- Chapter 4: talk about class loader again
- 在IPv6中 链路本地地址的优势
- Typescript get function parameter type
- extern关键字
- 2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
- 空结构体多大?
- 2022-07-05 use TPCC to conduct sub query test on stonedb
- i. Mx6ull build boa server details and some of the problems encountered
- 机试刷题1
- [leetcode] 19. Delete the penultimate node of the linked list
猜你喜欢
Adavit -- dynamic network with adaptive selection of computing structure
NPDP certification | how do product managers communicate across functions / teams?
HDR image reconstruction from a single exposure using deep CNN reading notes
【LeetCode】19、 删除链表的倒数第 N 个结点
Aardio - 利用customPlus库+plus构造一个多按钮组件
MySQL ---- first acquaintance with MySQL
MySQL----初识MySQL
Unity3d minigame-unity-webgl-transform插件转换微信小游戏报错To use dlopen, you need to use Emscripten‘s...问题
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
pytorch_ Yolox pruning [with code]
随机推荐
Web APIs DOM time object
MySQL教程的天花板,收藏好,慢慢看
Use ECs to set up an agent
Aardio - construct a multi button component with customplus library +plus
ThreadLocal详解
NPM cannot install sharp
poj 1094 Sorting It All Out (拓扑排序)
Installation and use of labelimg
Aardio - 利用customPlus库+plus构造一个多按钮组件
return 关键字
NPDP certification | how do product managers communicate across functions / teams?
leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
[Digital IC hand tearing code] Verilog burr free clock switching circuit | topic | principle | design | simulation
Puppeter connects to the existing Chrome browser
Plafond du tutoriel MySQL, bien collecté, regardez lentement
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing
2022-07-05 使用tpcc对stonedb进行子查询测试
如何实现文字动画效果