Archived

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

Pixel_Sticks

What is per pixel shading?

Recommended Posts

Ya i am confused about this whole thing. What exactly is meant by per pixel shading like used in doom 3 as well as other games. Also who originally developed this technique? Does this mean that the actual pixel can be two different colors? Also, how does per pixel shading differ from other ways of shading textures? Thanks.

Share this post


Link to post
Share on other sites
Most shading is done based on the vertices and the normal of the poly in relation to the light source. This means that a light towards the vertex of a very big poly will seem to diffuse out, as it effects the other vertices less. That is vertex sahding. The problem with this, is that if you have a light in the middle of a poly the entire poly looks evenly affected by the poly, even if it isn''t; per pixel shading calculates each pixel''s shading based on light individually.

Share this post


Link to post
Share on other sites