• Advertisement


This topic is now archived and is closed to further replies.

Per vertex diffuse and specular?

This topic is 5392 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m coding the data structure to partiotion my models right now, I got to the part where I need to decide what kind of vertices to use. I''m trying to figure out whether I should include diffuse and specular color in the vertex data. I figure that in a textured scene the only use I can ever get from per vertex coloring is to give polygons sharing the same texture different tints, but I can get that from materials. On the other hand.. A) if later I want to use vertex and pixel shaders, will I be able to declare the shader''s output vertices to include per vertex colors even though they''re not in the original vertex format (calculate them in the shader)? and B) What kind of other effects that I''m not thinking of can I get from per vertex coloring. RL

Share this post

Link to post
Share on other sites

  • Advertisement