Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualBacterius

Posted 26 September 2012 - 06:12 AM

@Ashaman73 - I tried, but that doesn't change anything. As a matter of fact if you look at the code you pasted ( the original one ), you can see that I'm actually maxin' it to 1.0,
before I pass it to the 'pow' function:

Actually, by doing that you minimized it. Look at what you wrote: take the maximum of the specular value and 1.0. This means the input to pow will always be >= 1, which is probably not what you wanted. You are probably looking for saturate() or clamp().

#2Bacterius

Posted 26 September 2012 - 06:07 AM

@Ashaman73 - I tried, but that doesn't change anything. As a matter of fact if you look at the code you pasted ( the original one ), you can see that I'm actually maxin' it to 1.0,
before I pass it to the 'pow' function:

Actually, by doing that you minimized it. Look at what you wrote: take the maximum of the specular value and 1.0. This means the input to pow will always be >= 1, which is probably not what you wanted.

#1Bacterius

Posted 26 September 2012 - 06:06 AM

@Ashaman73 - I tried, but that doesn't change anything. As a matter of fact if you look at the code you pasted ( the original one ), you can see that I'm actually maxin' it to 1.0,
before I pass it to the 'pow' function:

Actually, by doing that you minimized it. Look at what you wrote: take the maximum of the specular value and 1.0f. This means the input will always be >= 1, which is probably not what you wanted.

PARTNERS