three实现三维可视化打光补光效果预览调整编辑器代码

代码语言:html

所属分类:三维

代码描述:three实现三维可视化打光补光效果预览调整编辑器代码

代码标签: three 三维 可视化 打光 补光 效果 预览 调整 编辑器 代码

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

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>三维人物打灯 · 720° 全景示意场景</title>
<style>
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { width: 100%; height: 100%; overflow: hidden; background: #0b0e14;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
  #scene { position: fixed; inset: 0; }
  #scene canvas { display: block; }

  #hud { position: fixed; left: 18px; top: 16px; z-index: 5; pointer-events: none; }
  #hud h1 { font-size: 17px; color: #e8ecf5; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
  #hud p { font-size: 12px; color: #93a0b4; margin-top: 5px; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

  #panel { position: fixed; right: 14px; top: 14px; bottom: 14px; width: 304px; z-index: 10;
    background: rgba(15,17,24,.88); border: 1px solid #2a3040; border-radius: 14px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
  #panelHead { display: flex; justify-content: space-between; align-items: center;
    padding: 11px 14px; border-bottom: 1px solid #232838; flex: none;
    font-size: 13px; font-weight: 600; color: #cfd6e4; }
  #collapseBtn { background: #1c2130; color: #aab3c5; border: 1px solid #2c3345; border-radius: 6px;
    width: 26px; height: 22px; cursor: pointer; font-size: 12px; line-height: 1; }
  #collapseBtn:hover { border-color: #4c8dff; color: #fff; }
  #panel.collapsed #panelBody { display: none; }
  #panelBody { overflow-y: auto; padding: 2px 14px 16px; }
  #panelBody::-webkit-scrollbar { width: 8px; }
  #panelBody::-webkit-scrollbar-thumb { background: #333b50; border-radius: 4px; }

  section { padding: 12px 0 8px; border-bottom: 1px solid #1e2331; }
  section:last-child { border-bottom: none; }
  section h3 { font-size: 12px; color: #8fa3c8; letter-spacing: 2px; margin-bottom: 10px; font-weight: 600; }
  .hint { font-size: 11px; color: #77839c; line-height: 1.7; margin-bottom: 8px; }

  .btn-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
  .btn-row button { background: #1b2030; border: 1px solid #2b3244; color: #c3cbdc;
    font-size: 12px; padding: 5px 10px; border-radius: 16px; cursor: pointer; transition: .15s; }
  .btn-row button:hover { border-color: #4c8dff; color: #fff; }
  .btn-row button.active { background: #4c8dff; border-color: #4c8dff; color: #fff; }

  .ctrl { margin-bottom: 8px; }
  .ctrl-head { display: flex; justify-content: space-between; font-size: 11.5px; color: #98a2b8; margin-bottom: 2px; }
  .ctrl-head .val { color: #6ea8ff; font-variant-numeric: tabular-nums; }
  .ctrl input[type=range] { width: 100%; accent-color: #4c8dff; cursor: pointer; height: 18px; }
  .ctrl input:disabled { opacity: .35; }

  .toggle { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #b9c2d4; margin: 7px 0; cursor: pointer; }
  .toggle input[type=checkbox] { accent-color: #4c8dff; width: 14px; height: 14px; }
  .toggle input[type=color] { width: 32px; height: 22px; padding: 1px; background: #0f1220;
    border: 1px solid #2c3345; border-radius: 5px; cursor: pointer; }

  .light-box { background: #151926; border: 1px solid #232a3c; bor.........完整代码请登录后点击上方下载按钮下载查看

网友评论0