Jump to content

  • Log In with Google      Sign In   
  • Create Account


why vertex's specular color is added to the texture


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
2 replies to this topic

#1 tcige   Members   -  Reputation: 206

Like
0Likes
Like

Posted 19 June 2013 - 12:18 PM

now the vertex's color is white, it is odd and unlike D3DFVF_DIFFUSE



Sponsor:

#2 Tom KQT   Members   -  Reputation: 1344

Like
1Likes
Like

Posted 20 June 2013 - 12:07 AM

I'm sorry but I have no idea what are you asking about. Could you please explain it a little bit more? Or rather much more :)



#3 Hodgman   Moderators   -  Reputation: 23957

Like
3Likes
Like

Posted 20 June 2013 - 12:54 AM

According to physics, when light hits a surface, some percentage of it is reflected off the surface, and some percentage is refracted into the surface.

 

Specular lighting simulates the reflected percentage of the input light. This light skims right off the surface without really touching it, so it's colour is usually unchanged (with the only exception being coloured metals, which behave differently).

 

Diffuse lighting simulates the refracted percentage of the input light. This light penetrates into the surface and some of it is absorbed (as heat, etc) into the surface. Different surfaces absorb different wavelengths (colours). After bouncing around inside the surface, some of the light is lucky enough to bounce back out of the surface, with it's colour changed.

 

What you see is the combination of both this reflected light and the refracted light, which is specular + diffuse.






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