SET VERTEX SHADER MATRIX
This command will select the matrix to be used by the specified vertex shader.
SYNTAX
SET VERTEX SHADER MATRIX VertexShader Number, Constant, Matrix4, ConstantCount
SET VERTEX SHADER STREAM
This command will set a vertex shader stream for the specified vertex shader. The stream index must start
from one, being the first stream into the shader. The Data is specified using one of the following values,
which relate to the FVF Format code you would use to convert your object prior to using a
shader:VSDE_POSITION=FVF_XYZ=0, VSDE_BLENDWEIGHT=FVF_XYZRHW=1,
VSDE_BLENDINDICES=FVF_XYZB1=2, VSDE_NORMAL=FVF_NORMAL=3, VSDE_PSIZE=FVF_PSIZE=4,
VSDE_DIFFUSE=FVF_DIFFUSE=5, VSDE_SPECULAR=FVF_SPECULAR=6, VSDE_TEXCOORD0=FVF_TEX0=7,
VSDE_TEXCOORD1=FVF_TEX0=8, VSDE_TEXCOORD2=FVF_TEX0=9, VSDE_TEXCOORD3=FVF_TEX0=10,
VSDE_TEXCOORD4=FVF_TEX0=11, VSDE_TEXCOORD5=FVF_TEX0=12, VSDE_TEXCOORD6=FVF_TEX0=13,
VSDE_TEXCOORD7=FVF_TEX0=14. The Datatype is specified using one of the following values:
SYNTAX
SET VERTEX SHADER STREAM VertexShader Number, Position, Data, Datatype
SET VERTEX SHADER STREAMCOUNT
This command will set the vertex shader stream count for the specified vertex shader.
SYNTAX
SET VERTEX SHADER STREAMCOUNT VertexShader Number, Count
SET VERTEX SHADER VECTOR
This command will select the vector to be used by the specified vertex shader.
SYNTAX
SET VERTEX SHADER VECTOR VertexShader Number, Constant, Vector3, ConstantCount
If you are looking to develop either vertex or pixel shaders for your DBPro projects, you may be interested in the 'Shader Programming' series by Wolfgan Engel which you can find on GameDev (
http://www.gamedev.net - look under 'previously featured articles' ).