Skip to main content
gamedev.net
🔒 Locked

Phong

Started by Magos 2 replies 400+ views
Original Post
Magos
Magos
How come phong shading (D3DSHADE_PHONG) is not supported in DX? It's slow and perhaps not so useful, but still...
----------------------------------------MagosX.com
neneboricua19
neneboricua19
You can implement phong shading by using vertex and pixel shaders pretty easily. Do a search in the forum and you'll find lots of info on this.
Grizwald
Grizwald
The graphics industry is moving away from fixed function pipelines into programmable shaders. I doubt MS will be adding phong shading routines to DX. If anything, they'll start removing all the lighting models and just give you example shaders.
I love me and you love you.
circlesoft
circlesoft
Quote:
Original post by Grizwald
If anything, they'll start removing all the lighting models and just give you example shaders.

This is correct. If you have looked at the code to any of the D3D samples lately, you may notice that rendering is done entirely with vertex and pixel shaders. The FFP is undoubedtly being phased out, for good reason. Shaders are just so incredibly powerful. I'm not sure, but the FFP may be completely removed from D3D10. It definetly wouldn't surprise me.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.