Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualmarcClintDion

Posted 30 June 2013 - 09:45 PM

same...


#4marcClintDion

Posted 30 June 2013 - 04:54 PM

 No, I'm wrong, I should have put that more tactfully.  

 

You wrote that you tried normalizing in the fragment shader and that this had no effect.

 

Could it be that you only normalized one of the two terms that are used in the diffuse lighting calculation.  As follows, 

 

//=====================================================================================================

  float3 N = normalize(normal);                   // It seems to me that if you do not normalize both of these in the fragment shader 
  float3 L = normalize(lightPosition - P);     // then you will not see any benefit,  it will still look like the image you posted.
 
  float diffuseLight = max(dot(L, N), 0.0);
//=====================================================================================================

#3marcClintDion

Posted 30 June 2013 - 03:57 PM

 No, I'm wrong, I should have put that more tactfully.


#2marcClintDion

Posted 30 June 2013 - 03:57 PM

 No, I'm wrong, I should have put that more tactfully.


#1marcClintDion

Posted 30 June 2013 - 03:56 PM

No, I'm wrong... I should have pussy-footed some more.  That was rude.


PARTNERS