Jump to content

  • Log In with Google      Sign In   
  • Create Account


question about lambert lighting model


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 noname01   Members   -  Reputation: 102

Like
0Likes
Like

Posted 27 March 2012 - 07:02 AM

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?


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS