Skip to content

Commit 658f4c6

Browse files
authored
Fix duplicate variable definition in ParticlesLit shader (Unity-Technologies#14)
Not consequential to our use cases, but produces distracting shader errors.
1 parent 4b56572 commit 658f4c6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

com.unity.render-pipelines.universal/Shaders/Particles/ParticlesEditorPass.hlsl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
#include "Packages/com.unity.render-pipelines.universal/Shaders/Particles/ParticlesInput.hlsl"
55
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Particles.hlsl"
66

7-
#ifdef _ALPHATEST_ON
8-
half _Cutoff;
9-
#endif
7+
// (ASG) Removed to prevent redefinition of _Cutoff. Original definition in ParticlesLit.shader:10
8+
// #ifdef _ALPHATEST_ON
9+
// half _Cutoff;
10+
// #endif
1011

1112
float _ObjectId;
1213
float _PassValue;

0 commit comments

Comments
 (0)