mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +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;
|
||||
#if defined(FIXED_NORMALS_BACKFACE_RENDERING)
|
||||
float3 positionWS = TransformObjectToWorld(input.vertex.xyz);
|
||||
backFaceSign = calculateBackfacingSign(positionWS.xyz);
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user