Skip to content

Commit bb518a9

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.4] Fix material debug not working
1 parent cf181bd commit bb518a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Packages/com.unity.shadergraph/Samples~/CustomLighting/Components/Debug/DebugMaterials.shadersubgraph

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2048,7 +2048,7 @@
20482048
"m_FunctionName": "DebugMaterialSwitch",
20492049
"m_FunctionSource": "",
20502050
"m_FunctionSourceUsePragmas": true,
2051-
"m_FunctionBody": "Out = None;\n#if !defined(SHADERGRAPH_PREVIEW) && defined(DEBUG_DISPLAY)\n[branch] switch(int(_DebugMaterialMode))\r\n{\r\n case 0:\r\n Out = None; break;\r\n case 1:\r\n Out = Albedo; break;\r\n case 2:\r\n Out = Specular; break;\n case 3:\r\n Out = Alpha; break;\n case 4:\r\n Out = Smoothness; break;\n case 5:\r\n Out = AmbientOcclusion; break;\n case 6:\r\n Out = Emission; break;\n case 7:\r\n Out = NormalWS * 0.5 + 0.5; break;\n case 8:\r\n Out = NormalTS * 0.5 + 0.5; break;\n case 9:\r\n Out = LightComplexity; break;\n case 10:\r\n Out = Metallic; break;\n case 11:\r\n Out = SpriteMask; break;\n case 12:\r\n Out = RenderingLayerMasks; break;\r\n default:\r\n Out = None; break;\r\n}\n#endif"
2051+
"m_FunctionBody": "Out = None;\n#if !defined(SHADERGRAPH_PREVIEW) && defined(DEBUG_DISPLAY)\n[branch] switch(int(_DebugMaterialMode))\r\n{\r\n case 0:\r\n Out = None; break;\r\n case 1:\r\n Out = Albedo; break;\r\n case 2:\r\n Out = Specular; break;\n case 3:\r\n Out = Alpha; break;\n case 4:\r\n Out = Smoothness; break;\n case 5:\r\n Out = AmbientOcclusion; break;\n case 6:\r\n Out = Emission; break;\n case 7:\r\n Out = NormalWS * 0.5 + 0.5; break;\n case 8:\r\n Out = NormalTS * 0.5 + 0.5; break;\n case 9:\r\n Out = LightComplexity; break;\n case 10:\r\n Out = Metallic; break;\n case 11:\r\n Out = SpriteMask; break;\n case 12:\r\n Out = RenderingLayerMasks; break;\r\n default:\r\n Out = None; break;\r\n}\n#endif\n\n// Disable this define to prevent the global unlit\n// fragment pass to override the color output again.\n#undef DEBUG_DISPLAY"
20522052
}
20532053

20542054
{

0 commit comments

Comments
 (0)