跳转至

Substrate 路面水洼材质(Mesh Paint + Thin-Film 油膜)

沥青路面上叠加可手绘的水洼层,水面用 Substrate Thin-Film 做油膜彩虹效果。

来源:Unreal Fest Bali 2025《UE5.7 探索 Substrate 高级物理材质》。基础概念见 Substrate 总览。

整体结构

材质由沥青基层 Slab 和水洼 Slab 两大块组成,外加 Texture Painting(手绘遮罩)部分,最终把水层叠在沥青层之上。

水洼材质完整节点图:沥青块、水洼块与组装部分

Asphalt 沥青基层 Slab

Asphalt_UV 参数控制 TexCoord 平铺,分别采样颜色、法线、粗糙度等贴图后接入 Substrate Slab BSDF - Single。

Asphalt 沥青 Slab 节点图

Puddle 水洼 Slab

Substrate Slab BSDF - Single(SSS Simple Volume (Translucent)):

  • Puddle Diffuse(0,0,0 黑色)→ Diffuse Albedo
  • Oil 开关输出的 Puddle F0 / Puddle F90 → F0 / F90(见下节)
  • 常量 0.0 → Roughness(镜面水面)
  • Puddle Normal → Normal
  • Puddle TransmittanceColor + Puddle Thickness → Substrate Transmittance-To-MeanFreePath → SSS MFP

Puddle 水洼 Slab 节点图

Oil 油膜:Substrate Thin-Film

Substrate Thin-Film 节点可以轻松做出彩虹干涉色材质(肥皂泡、油膜等,"Easy to make an iridescent material such as soap bubbles, oil, etc"):

  • 输入:Normal、F0(参数默认 0.02)、F90、Thickness、IOR(常量 1.5);输出:Specular Color、Edge Specular Color
  • 地面灰度贴图经 Lerp(0.01 ~ 0.8)驱动 Thickness,使油膜厚度随地面变化
  • 两个 Oil Static Switch Param(True/False)切换是否启用油膜,分别输出 Puddle F0 / Puddle F90 接到水洼 Slab

Substrate Thin-Film 节点做油膜/肥皂泡彩虹色

把水层叠到沥青之上

  • Texture Painting(Mesh Paint 手绘遮罩)与 Asphalt Bump(沥青凹凸)相乘 → Saturate,作为 Substrate Coverage Weight 的 Weight;Puddle Slab → A
  • Coverage Weight 输出 → Substrate Vertical Layer 的 Top;Asphalt Slab → Bottom
  • 遮罩再乘 Top Thick 参数(默认 0.01)→ Top Thickness
  • 输出到材质根节点(M_CobblestonesPuddle1)的 Front Material

Coverage Weight + Vertical Layer 把水层材质板叠加在沥青基层之上

Mesh Texture Color Paint 手绘水洼

水洼分布用网格体贴图绘制(每张贴图存储在被绘制网格体的实例上,"Each texture is stored on the instance of the mesh being painted")。用法:

  1. 项目启用 Virtual Textures;
  2. 材质中加入 Mesh Paint Texture Object 节点;
  3. 在 Mesh Paint 模式下用 Texture Color(Texture Color of Mesh Paint Mode)直接绘制。

Mesh Texture Color Paint 的设置与绘制面板

ID:16 | 更新:2026-06-11