浏览代码

Specular setup does not have _Metallic

/system-shock-transitional-shader
Paul Melamed 7 年前
当前提交
1165cc74
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 7
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Editor/StandardSpecularToHDLitTransitionalMaterialUpgrader.cs

7
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Editor/StandardSpecularToHDLitTransitionalMaterialUpgrader.cs


// mapping the detail normal map, if any, to the detail map, should do the right thing if
// there is no detail albedo.
RenameTexture("_DetailAlbedoMap", "_DetailMapLegacy");
RenameTexture("_DetailMask", "_DetailMaskMapLegacy");
// Metallic uses [Gamma] attribute in standard shader but not in Lit.
// @Seb: Should we convert?
RenameFloat("_Metallic", "_Metallic");
RenameTexture("_DetailMask", "_DetailMaskMapLegacy");
}
public override void Convert(Material srcMaterial, Material dstMaterial)

正在加载...
取消
保存