Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualMedo3337

Posted 23 July 2013 - 12:48 PM

@belfegor: Damn, I have been thinking that the specular shininess is the specular level! angry.png

 

I notice that it's set to 10 in 3Ds Max while in the shader it's "uniform float SpecularLevel = 1,000000;", why is that?

 

I will get the specular level from the .x file so I can pass the value to the shader, is the following correct?

float power = pow(nDotH, materialPower);
power *= specularLevel;

Remember that If I set specular level to 80 in 3Ds Max I want it to appear the same in my own program.


#1Medo3337

Posted 23 July 2013 - 12:47 PM

@belfegor: Damn, I have been thinking that the specular shininess is the specular level! angry.png

 

I notice that it's set to 10 in 3Ds Max while in the shader it's "uniform float SpecularLevel = 1,000000;", why is that?

 

In my .x file I will get the specular level so I can pass the value to the shader, is this correct?

float power = pow(nDotH, materialPower);
power *= specularLevel;

Remember that If I set specular level to 80 in 3Ds Max I want it to appear the same in my own program.


PARTNERS