Microsoft DirectX 8.1 (pixel shader version 1.4) |
Apply a fake bump environment-map transform.
bem dest.rg, src0, src1
Argument | Description | Registers | Version | |||
---|---|---|---|---|---|---|
vn | cn | tn | rn | |||
dest | Destination register | x | 1.4 phase 1 | |||
src0 | Source register | x | x | 1.4 phase 1 | ||
src1 | x | 1.4 phase 1 |
To learn more about registers, see Registers.
This instruction performs the following calculation.
(Given n == dest register #) dest.r = src0.r + D3DTSS_BUMPENVMAT00(stage n) * src1.r + D3DTSS_BUMPENVMAT10(stage n) * src1.g dest.g = src0.g + D3DTSS_BUMPENVMAT01(stage n) * src1.r + D3DTSS_BUMPENVMAT11(stage n) * src1.g
Rules for using bem: