Obi Official Forum

Full Version: invalid subscript '_ShadowCoord' in ParticleShader.shader
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?