?/TD> |
Microsoft DirectX 9.0 |
This vertex shader output register contains a per-vertex diffuse or specular color value.
Syntax
Diffuse/Specular Register
Remarks
A register consists of properties that determine how each register behaves.
Property Description Name oD[n] - n is an optional register number. If the register number is omitted, 0 is the default value used. Count A maximum of two registers, oD0 and oD1. I/O permissions Write-only. oD0 is the diffuse color register. oD1 is the specular color register. The oD0 value is interpolated and is written to the pixel shader color register 0 (v0). The oD1 value is interpolated and written to the pixel shader color register 1 (v1). For more information about pixel shader color registers, see the pixel shader Color Register page.
Example
min oD0, r0, c1.xFor a more complete code sample, see the Vertex Blend Sample.
Instruction Information
Minimum operating system Windows 98