[unity] Fixed remaining shader compile error occurring during build on Unity URP versions 12.x and 13.x. See related commit 2f1b0b8.

This commit is contained in:
Harald Csaszar 2023-04-17 17:38:02 +02:00
parent f0ad8e2024
commit 01e457a8af

View File

@ -180,7 +180,7 @@ half4 frag(VertexOutput i
i.color.rgb = lerp(i.shadowedColor, i.color.rgb, shadowAttenuation); i.color.rgb = lerp(i.shadowedColor, i.color.rgb, shadowAttenuation);
#endif #endif
#ifdef _WRITE_RENDERING_LAYERS #ifdef USE_WRITE_RENDERING_LAYERS
uint renderingLayers = GetMeshRenderingLayerBackwardsCompatible(); uint renderingLayers = GetMeshRenderingLayerBackwardsCompatible();
outRenderingLayers = float4(EncodeMeshRenderingLayer(renderingLayers), 0, 0, 0); outRenderingLayers = float4(EncodeMeshRenderingLayer(renderingLayers), 0, 0, 0);
#endif #endif