当前位置:网站首页>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边栏推荐
- OpenSSL:适用TLS与SSL协议的全功能工具包,通用加密库
- UVa 11732 – strcmp() Anyone?
- poj 1094 Sorting It All Out (拓扑排序)
- Applet system update prompt, and force the applet to restart and use the new version
- Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
- BasicVSR_PlusPlus-master测试视频、图片
- 第十九章 使用工作队列管理器(二)
- memcached
- Const keyword
- signed、unsigned关键字
猜你喜欢

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

Mise en place d'un environnement de développement OP - tee basé sur qemuv8

Web APIs DOM 时间对象

NPDP certification | how do product managers communicate across functions / teams?

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

手写ABA遇到的坑

Attack and defense world miscall

Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem

Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing

机试刷题1
随机推荐
如何用程序确认当前系统的存储模式?
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
Chapter 4: talk about class loader again
volatile关键字
【踩坑合辑】Attempting to deserialize object on CUDA device+buff/cache占用过高+pad_sequence
做国外LEAD2022年下半年几点建议
做接口测试都测什么?有哪些通用测试点?
Typescript get function parameter type
【编译原理】做了一半的LR(0)分析器
如何实现文字动画效果
自定义 swap 函数
Signed and unsigned keywords
POJ 1258 Agri-Net
rust知识思维导图xmind
2022-07-04 mysql的高性能数据库引擎stonedb在centos7.9编译及运行
云原生技术--- 容器知识点
MySQL ---- first acquaintance with MySQL
case 关键字后面的值有什么要求吗?
Improving Multimodal Accuracy Through Modality Pre-training and Attention
Puppeter connects to the existing Chrome browser