webgl实现动态可调节参数的方形光效动态背景效果代码

代码语言:html

所属分类:背景

代码描述:webgl实现动态可调节参数的方形光效动态背景效果代码

代码标签: webg 动态 调节 参数 方形 光效 动态 背景

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
  
<style>
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000000;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
}

.lil-gui {
    --width: 300px;
    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, .9);
    --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;
}

.lil-gui.autoPlace {
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0