Microsoft DirectX 8.0 (C++) |
You apply an environment map to objects in the same manner as for any other texture, by setting the texture to the appropriate texture stage with the IDirect3DDevice8::SetTexture method. Set the first parameter to the index for the desired texture stage, and set the second parameter to the address of the IDirect3DCubeTexture8 interface returned when you created the cube-map texture for the environment map. You can set the color and alpha blending operations and arguments as needed to achieve the desired texture blending effects.