three实现shader的3d形状切割器代码
代码语言:html
所属分类:三维
代码描述:three实现shader的3d形状切割器代码
代码标签: three shader 3d 形状 切割器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> </head> <body translate="no"> <div class="scene-container"> <canvas id="webgl"></canvas> <div class="toggle"> <input type="radio" id="shape1" name="shape" value="crystal" checked> <label for="shape1">Crystal</label> <input type="radio" id="shape2" name="shape" value="torus"> <label for="shape2">Torus</label> <span class="slider"></span> </div> </div> <script type="importmap"> { "imports": { "three": "https://unpkg.com/three@0.162.0/build/three.module.js", "three/addons/": "https://unpkg.com/three@0.162.0/examples/jsm/" } } </script> <style> * { margin: 0.........完整代码请登录后点击上方下载按钮下载查看
网友评论0