hi
i am new in DX vertex shader , from my reading i understand that Vertex Shader control the rendering pipline ( transformation , lighting )
whats the major deference between a program work with VS and other with fixed function pipline ?
dose VS capable for things that FFP could not ?


Reply With Quote

i mean, with the fixed pipeline you already have working functions to apply multiple textures with several blend options, vertex world/view transformations, per vertex lighting with matyerials settings, etc...the basic stuff you need to render thousand triangles textured and lightened; but if you say "humm, i would like to add a wave effect...i am going to write a shader for that..." forget it, beside the wave effect you also have to code your self in the shader any function you was using from the fixed pipeline, you cant combine boths, when you switch to shaders, you have to code everithing needed for render a vertex: transformations, textures, blending effects, colors, lighting maths, etc. 
and none in cpu, 

