{
  "schemaVersion": 1,
  "slug": "liquid-glass-material",
  "packageId": "makokara.official.liquid-glass-material",
  "name": "液态玻璃材质",
  "subtitle": "Liquid Glass Material",
  "summary": "基于 3D 弯月面凸透镜法线的液态玻璃折射材质，呈现真实流动波纹、棱镜 RGB 色散、镜面高光与焦散反光。",
  "version": "1.0.0",
  "revision": "sha256:b97544f57d4ffbe7ee582afbd8117181254a8ff3f1749a2e799a0b5f88cfa17b",
  "packageVersion": 3,
  "sdkVersion": "2.0.0",
  "shaderProfile": "skia-ganesh-3.119.4-v2",
  "category": "material",
  "tags": [
    "液态玻璃",
    "折射色散",
    "背景透射",
    "纯材质",
    "SkSL着色器"
  ],
  "author": {
    "name": "MakoKara Official"
  },
  "license": "MIT",
  "featured": true,
  "featuredOrder": 8,
  "verified": true,
  "verifiedAt": "2026-12-06",
  "transparentSafe": true,
  "requires": [],
  "exportKinds": [
    "material"
  ],
  "parameterCount": 9,
  "lineExitDurationUs": 0,
  "recommendedFor": [
    "现代流行与都市夜景 MV",
    "清新通透抒情曲",
    "高色彩饱和度视频背景歌词"
  ],
  "media": {
    "coverUrl": "https://mkfx.talium.site/files/liquid-glass-material/cover.webp",
    "previewVideoUrl": "https://mkfx.talium.site/files/liquid-glass-material/preview.webm",
    "transparentPreviewVideoUrl": "https://mkfx.talium.site/files/liquid-glass-material/preview-transparent.webm"
  },
  "archive": {
    "fileName": "liquid-glass-material.mkfx",
    "url": "https://mkfx.talium.site/files/liquid-glass-material/liquid-glass-material.mkfx",
    "sizeBytes": 6848,
    "sha256": "df29f1d3fd67933384229dd75451e0c499872ba379a154030a928906d2d3ab3c"
  },
  "links": {
    "detailPageUrl": "https://mkfx.talium.site/effects/liquid-glass-material/",
    "detailApiUrl": "https://mkfx.talium.site/api/v1/packages/liquid-glass-material.json",
    "sourceUrl": "https://github.com/Zydr114/MakoKaraGenerator-OfficialMkfxSamples/tree/main/packages/LiquidGlassMaterial",
    "installUri": "makokara://market/install?catalog=https%3A%2F%2Fmkfx.talium.site%2Fapi%2Fv1%2Fcatalog.json&packageId=makokara.official.liquid-glass-material&slug=liquid-glass-material"
  },
  "description": "面向现代通透视觉风格设计的官方液态玻璃材质包。通过平滑覆盖场生成立体凸面法线，实时折射并色散底层背景画面，叠加柔润液面波纹、菲涅尔亮边与底部焦散光晕；可直接用于歌词填充或描边，透明导出自动回退晶透渐变。",
  "previewNotes": "预览在高反差彩色舞台背景上展示液态玻璃的弯月面折射、棱镜色散与流动高光质感。",
  "emitters": [],
  "exports": [
    {
      "id": "liquid-glass-material",
      "kind": "material",
      "name": "液态玻璃材质",
      "graph": "graphs/liquid-glass-material.graph.json",
      "regions": [
        "fill",
        "stroke"
      ],
      "coverageMode": "Masked",
      "parameters": [
        "backdropSource",
        "blurPx",
        "refractionPx",
        "dispersion",
        "flowHz",
        "highlight",
        "tintColor",
        "tintStrength",
        "opacity"
      ],
      "outputs": [
        {
          "id": "color",
          "kind": "ImageGraph",
          "target": "region",
          "requires": []
        }
      ]
    }
  ],
  "parameters": [
    {
      "default": "media",
      "id": "backdropSource",
      "label": "采样来源",
      "type": "enum",
      "values": [
        {
          "label": "底层背景媒体",
          "value": "media"
        },
        {
          "label": "下层合成画面",
          "value": "below"
        }
      ]
    },
    {
      "default": 3.2,
      "id": "blurPx",
      "label": "透射柔焦半径",
      "max": 16,
      "min": 0,
      "type": "number",
      "unit": "px"
    },
    {
      "default": 12,
      "id": "refractionPx",
      "label": "液态折射偏移",
      "max": 24,
      "min": 0,
      "type": "number",
      "unit": "px"
    },
    {
      "default": 0.58,
      "id": "dispersion",
      "label": "棱镜色散强度",
      "max": 1,
      "min": 0,
      "type": "number"
    },
    {
      "default": 0.55,
      "id": "flowHz",
      "label": "液面流动频率",
      "max": 6,
      "min": 0,
      "type": "number",
      "unit": "Hz"
    },
    {
      "default": 0.9,
      "id": "highlight",
      "label": "镜面与焦散高光",
      "max": 1.5,
      "min": 0,
      "type": "number"
    },
    {
      "default": {
        "a": 1,
        "b": 1,
        "g": 0.95,
        "r": 0.84
      },
      "id": "tintColor",
      "label": "玻璃染色",
      "type": "color"
    },
    {
      "default": 0.2,
      "id": "tintStrength",
      "label": "玻璃染色浓度",
      "max": 1,
      "min": 0,
      "type": "number"
    },
    {
      "default": 0.96,
      "id": "opacity",
      "label": "材质不透明度",
      "max": 1,
      "min": 0.2,
      "type": "number"
    }
  ],
  "files": [
    {
      "path": "README.md",
      "role": "asset",
      "sizeBytes": 1852,
      "sha256": "38f47b10cfc960dd359cddd3a1fde8b117f611da8c3bbc3dd7c54be520a18d56"
    },
    {
      "path": "graphs/liquid-glass-material.graph.json",
      "role": "graph",
      "sizeBytes": 2976,
      "sha256": "9749db129aa14901f7d47f851dcb3cc5c0c21c71d945b075e5ce4e86fb0f635c"
    },
    {
      "path": "shaders/cov-to-color.program.json",
      "role": "shaderProgram",
      "sizeBytes": 192,
      "sha256": "a4b5a66c8a0470e1bfddcf8453844e6eb7765d764bf6c6b76ad085f80e196d50"
    },
    {
      "path": "shaders/cov-to-color.sksl",
      "role": "shader",
      "sizeBytes": 143,
      "sha256": "ae3d506fa75c2a6bf41310c909589f990df77f315a2099452cae5966252d8d8f"
    },
    {
      "path": "shaders/liquid-glass-material.program.json",
      "role": "shaderProgram",
      "sizeBytes": 664,
      "sha256": "968cacd294af39d444614d42c8a9c0cb2cda00d9e99592f8737e18a17bfab38a"
    },
    {
      "path": "shaders/liquid-glass-material.sksl",
      "role": "shader",
      "sizeBytes": 5309,
      "sha256": "df839c05a2e2bc6941677769fb38e15ff4aac9cf1a15740cbd64c4efb58bde5b"
    }
  ],
  "readmeMarkdown": "# 液态玻璃材质（Liquid Glass Material）\n\n一款基于多尺度平滑覆盖场构建 3D 弯月面凸透镜法线的官方液态玻璃材质包，支持直接挂载到歌词的未唱填充、已唱填充或描边槽位。\n\n## 效果特点\n\n- **立体弯月面折射**：对字形 `TargetRegionCoverage` 进行平滑高斯卷积，提取连续丰满的 3D 凸面法线，在笔画边缘产生宛如水滴/液态玻璃般的弯月面透镜折射。\n- **物理棱镜色散**：沿法线方向对 RGB 三通道施加差异化折射率偏移，并在弧面边缘叠加微弱虹彩棱镜边光。\n- **镜面高光与焦散反光**：结合菲涅尔边缘反射、左上主镜面高光弧、右下焦散内反光与有机流动光泽带，在明暗背景上皆具通透立体轮廓。\n- **透明通道自动回退**：在透明导出模式下自动切换为内置冰透珍珠渐变 `fallback`，无黑边、无残影。\n\n## 参数说明\n\n| 参数 | 默认值 | 说明 |\n| :--- | :--- | :--- |\n| 采样来源 (`backdropSource`) | 底层背景媒体 | 可切换采样底层背景媒体或真实下层合成画面 |\n| 透射柔焦半径 (`blurPx`) | `3.2 px` | 折射前对背景施加的轻微柔焦，越大越偏水雾玻璃 |\n| 液态折射偏移 (`refractionPx`) | `12.0 px` | 液态凸面弯曲背景像素的最大折射距离 |\n| 棱镜色散强度 (`dispersion`) | `0.58` | 边缘 RGB 分色棱镜效果与虹彩边光强度 |\n| 液面流动频率 (`flowHz`) | `0.55 Hz` | 有机液面波纹与光泽带流转速率 |\n| 镜面与焦散高光 (`highlight`) | `0.90` | 弯月面高光弧、菲涅尔亮边与底部焦散强度 |\n| 玻璃染色 (`tintColor`) | 冰晶浅蓝 | 玻璃本体吸收染色 |\n| 玻璃染色浓度 (`tintStrength`) | `0.20` | 玻璃染色混入比例 |\n| 材质不透明度 (`opacity`) | `0.96` | 材质整体不透明度 |\n"
}
