three实现三维可调节参数弹性十足的苹果效果代码
代码语言:html
所属分类:三维
代码描述:three实现三维可调节参数弹性十足的苹果效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html, body { padding: 0; margin: 0; } .container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffee; } .page-title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 16vh; width: 100%; text-align: center; user-select: none; pointer-events: none; mix-blend-mode: luminosity; /* color: #DEB887; */ color: lightpink; } .lil-gui { --width: 400px; max-width: 90%; --widget-height: 20px; font-size: 15px; --input-font-size: 15px; --padding: 10px; --spacing: 10px; --slider-knob-width: 5px; --background-color: rgba(5, 0, 15, .8); --widget-color: rgba(255, 255, 255, .3); --focus-color: rgba(255, 255, 255, .4); --hover-color: rgba(255, 255, 255, .5); --font-family: monospace; z-index: 1; } </style> </head> <body translate="no"> <div class="container"> <canvas id="apple-canvas"></canvas> <div class="page-title"> Blobby Apple </div> </div> <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.........完整代码请登录后点击上方下载按钮下载查看
网友评论0