Microsoft DirectX 8.0 (Visual Basic) |
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 Direct3DDevice8.SetTexture method. Set the first parameter to the index for the desired texture stage, and set the second parameter to the address of the Direct3DCubeTexture8 object 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.