Recommended Posts

Hello, i have simple shader, that makes perpixel lighting from point light (lambert - max(dot(normal, light), 0), everything is normalized) and it works fine, but when i put the light very close to a surface - light area shrinks.
Mathmetically it seems to be correct, but this effect is ugly.
Attenuation factor helps on far distance, but not on close.
If needed, i can post the code, but i think it is about the lighting model. How to 'fix' this effect?