mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[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:
parent
e79c7acc00
commit
990ff34747
@ -36,6 +36,7 @@ VaryingsSprite DepthNormalsVertexSprite(VertexInput input)
|
|||||||
|
|
||||||
float backFaceSign = 1;
|
float backFaceSign = 1;
|
||||||
#if defined(FIXED_NORMALS_BACKFACE_RENDERING)
|
#if defined(FIXED_NORMALS_BACKFACE_RENDERING)
|
||||||
|
float3 positionWS = TransformObjectToWorld(input.vertex.xyz);
|
||||||
backFaceSign = calculateBackfacingSign(positionWS.xyz);
|
backFaceSign = calculateBackfacingSign(positionWS.xyz);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user