three实现三维能量罩护盾代码

代码语言:html

所属分类:三维

代码描述:three实现三维能量罩护盾代码,### ⚡ 着色器特效 | 特效 | 描述 | |------|------| | **菲涅尔边缘光** | 边缘越亮、中心越透的真实折射效果 | | **六角网格** | 科幻风蜂窝结构,密度可调 | | **3D噪波扭曲** | 表面动态变形和能量流动 | | **电弧闪电** | 高频噪波模拟表面放电 | | **扫描线** | 横纵双向能量扫描波 | | **撞击波纹** | 点击/自动产生扩散冲击波 + 裂纹 | | **能量过载** | 全罩高频震荡闪烁 |

代码标签: three 三维 能量罩 护盾 代码

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

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>能量防护罩 - 视觉特效</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            background: #000; 
            overflow: hidden; 
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        canvas { display: block; }
        
        #controls {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 300px;
            background: rgba(0, 10, 30, 0.85);
            border: 1px solid rgba(0, 150, 255, 0.3);
            border-radius: 12px;
            padding: 20px;
            color: #cde;
            backdrop-filter: blur(10px);
            box-shadow: 0 0 30px rgba(0, 100, 255, 0.15);
            max-height: calc(100vh - 30px);
            overflow-y: auto;
        }
        #controls::-webkit-scrollbar { width: 4px; }
        #controls::-webkit-scrollbar-thumb { background: rgba(0,150,255,0.3); border-radius: 2px; }
        
        #controls h2 {
            text-align: center;
            color: #0af;
            font-size: 18px;
            margin-bottom: 15px;
            text-shadow: 0 0 15px rgba(0,170,255,0.5);
            letter-spacing: 2px;
        }
        
        .section {
            border-top: 1px solid rgba(0,150,255,0.15);
            padding-top: 12px;
            margin-top: 12px;
        }
        .section:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
        .section-title {
            font-size: 13px;
            color: #08c;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
        }
        
        .param {
            margin-bottom: 10px;
        }
        .param label {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            margin-bottom: 4px;
            color: #9ab;
        }
        .param label span.val {
            color: #0cf;
            font-weight: bold;
        }
        
        input[type="range"] {
            width: 100%;
            height: 4px;
            -webkit-appearance: none;
            appearance: none;
            background: rgba(0,100,200,0.2);
            border-radius: 2px;
            outline: none;
        }
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            background: #0af;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 8px rgba(0,170,255,0.6);
        }
        
        input[type="color"] {
            width: 100%;
            height: 30px;
            border: 1px solid rgba(0,150,255,0.3);
            border-radius: 4px;
            background: transparent;
            cursor: pointer;
        }
        
        .btn-row {
            display: flex;
            gap: 8px;
            margin-top: 15px;
        }
        .btn {
            flex: 1;
            padding: 8px;
            font-size: 12px;
            background: rgba(0,150,255,0.15);
            color: #0af;
            border: 1px solid rgba(0,150,255,0.3);
            border-radius: 6px;
            cursor: pointer;
            transition: 0.2s;
            font-family: inherit;
        }
        .btn:hover {
            background: rgba(0,150,255,0.3);
            box-shadow: 0 0 15px rgba(0,150,255,0.3);
        }
        .btn.active {
            background: rgba(0,150,255,0.4);
            border-color: #0af;
        }
        
        .preset-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            margin-top: 10px;
        }
        .preset-btn {
            padding: 6px 4px;
            font-size: 11px;
            background: rgba(0,150,255,0.1);
            color: #8be;
            border: 1px solid rgba(0,150,255,0.2);
            border-radius: 4px;
            cursor: pointer;
            transition: 0.2s;
            font-family: inherit;
        }
        .preset-btn:hover {
            background: rgba(0,150,255,0.25);
            color: #fff;
        }
        
        #info {
            position: absolute;
            bottom: 15px;
            lef.........完整代码请登录后点击上方下载按钮下载查看

网友评论0