- Home /
change light attenuation calculation
Hey,
I'm trying to change the attenuation calculation inside the UnityCG.cginc to achive a different falloff for my pointslights, as I am not satisfied with the default one.
What I do is changing the atten value inside the Shade4PointLights function. However after all my shaders are recomplied, there isn't a difference visible (even seting atten = 0.0).
Has anyone a hint? Do I tackle the problem in the wrong spot, should I change the light falloff elsewhere?
Comment
Your answer
Follow this Question
Related Questions
point light custom falloff 2 Answers
How to make projector/light shader "alpha enabled"? 2 Answers
Multiple Light Shader 'Light Box' Bug 0 Answers
Block/Obscure light without shadows 0 Answers
How do I keep an object lit when a light moves past it? 0 Answers