D3D Specular coordinate Lighting??

Started by
1 comment, last by Void 23 years, 10 months ago
Hi, Does any one explain how the specular coordinates in the flexible vertex format works? The diffuse vertex will "absorb" all light and "diffuse" only the RGB light in the vertex.. That I can understand but for the specular component, how does the RGB components affect the specular light??.. Eg.. When I set a green diffuse with red specular point light, there is no specular reflectance at all when I set the vertex coordinate to (1,0,0).. shouldn''t I see a red specular reflection??..
Advertisement
Did you set D3DRENDERSTATE_SPECULARENABLE to TRUE?

Greets Tobias
Yes..

I can see the specular reflection when I modify the specular color in the flexible format..

What I like to know is how that color I specify affects the specular reflection, (Cause it''s doesn''t look the same as the specular reflection calculation in materials. The material uses the half vector * normal calculation.)

Thanks..

This topic is closed to new replies.

Advertisement