Skip to content

Commit

Permalink
[unity] Fixed remaining shader compile error occurring during build o…
Browse files Browse the repository at this point in the history
…n Unity URP versions 12.x and 13.x. See related commit 2f1b0b8.
  • Loading branch information
HaraldCsaszar committed Apr 17, 2023
1 parent f0ad8e2 commit 01e457a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -180,7 +180,7 @@ half4 frag(VertexOutput i
i.color.rgb = lerp(i.shadowedColor, i.color.rgb, shadowAttenuation);
#endif

#ifdef _WRITE_RENDERING_LAYERS
#ifdef USE_WRITE_RENDERING_LAYERS
uint renderingLayers = GetMeshRenderingLayerBackwardsCompatible();
outRenderingLayers = float4(EncodeMeshRenderingLayer(renderingLayers), 0, 0, 0);
#endif
Expand Down

0 comments on commit 01e457a

Please sign in to comment.