[unity] Fixed one more URP shader compile error related to depth normal pass on latest Unity 2022.3. See #2957.

This commit is contained in:
Harald Csaszar 2025-10-22 21:05:26 +02:00
parent e79c7acc00
commit 990ff34747

View File

@ -36,6 +36,7 @@ VaryingsSprite DepthNormalsVertexSprite(VertexInput input)
float backFaceSign = 1;
#if defined(FIXED_NORMALS_BACKFACE_RENDERING)
float3 positionWS = TransformObjectToWorld(input.vertex.xyz);
backFaceSign = calculateBackfacingSign(positionWS.xyz);
#endif