Since the computer I'm using does not support shaders (VS 1.0), I'm looking into learning some FFP. I can't seem to find any good material though.
Can anyone explain to how the dotproduct3 stage works? Does it just assume a light direction? I couldn't get much out of the shader in the manual or the wiki...
This is what the DirectX documentation says about it:
Quote:
D3DTOP_DOTPRODUCT3 Modulate the components of each argument as signed components, add their products; then replicate the sum to all color channels, including alpha. This operation is supported for color and alpha operations. S_rgba = (Arg1_r*Arg2_r+Arg1_g*Arg2_g+Arg1_b*Arg2_b)
You can find all parameters for ColorOp if you look for this keyword: D3DTEXTUREOP