three实现可配置参数的炫酷三维可交互发光粒子线条代码
代码语言:html
所属分类:三维
代码描述:three实现可配置参数的炫酷三维可交互发光粒子线条代码
代码标签: three 配置 参数 炫酷 三维 交互 发光 粒子 线条 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body, html { margin: 0; overflow: hidden; font-family: Arial, sans-serif; background-color: #fff; user-select: none; } canvas { display: block; } </style> </head> <body> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/es-module-shims.1.6.3.js"></script> <script type="importmap"> { "imports": { "three": "//repo.bfw.wiki/bfwrepo/js/module/three/build/164/three.module.js", "three/addons/": "//repo.bfw.wiki/bfwrepo/js/module/three/examples/164/jsm/" } } </script> <script type="module"> import * as THREE from 'three'; import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js'; import { RenderPass } from 'three/addons/postprocessing/RenderPass.js'; import { UnrealBloomPass } from 'three/addons/postprocessing/UnrealBloomPass.js'; import { GUI } from '//repo.bfw.wiki/bfwrepo/js/module/dat.gui.js'; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0