mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +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
d4f33e2c67
commit
aa9114d325
@ -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