+10

LIGHT_ATTENUATION macro is empty in some cases for 2018.1 beta 8

John Cannon 6 years ago 0

Unity 2018.1b8 fails to compile ShaderForge shaders because of a syntax error caused by lines like


float atten = LIGHT_ATTENUATION(i);


getting converted to 


float atten = ;