Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
invalid subscript '_ShadowCoord' in ParticleShader.shader
#1
Error in line 100, build error "invalid subscript '_ShadowCoord' in ParticleShader.shader"

Code:
UNITY_LIGHT_ATTENUATION(atten,i,0);


Per https://forum.unity.com/threads/invalid-...er.982245/, the below change in line 49 fixed it:

Code:
struct v2f
{
float4 pos  : SV_POSITION;
fixed4 color    : COLOR;
float4 mapping  : TEXCOORD0;
float3 viewRay : TEXCOORD1;
float3 lightDir : TEXCOORD2;
float3 a2 : TEXCOORD3;
float3 a3 : TEXCOORD4;
UNITY_LIGHTING_COORDS(5, 6) // Fix. This was: LIGHTING_COORDS(5, 6)
};


Failing project is Android OpenGLES3. Can't reproduce in a blank but similar project. Any clues?
Reply


Messages In This Thread
invalid subscript '_ShadowCoord' in ParticleShader.shader - by riesvriend - 14-03-2023, 02:17 PM