DirectX SDK

Applying Spherical Environment Maps

[C++]

You apply an environment map to objects in the same manner you would any other texture, by setting the texture into the appropriate texture stage with the IDirect3DDevice7::SetTexture method. Set the first parameter to the index for the desired texture stage, and set the second parameter to the address of the IDirectDrawSurface7 interface returned when you created the 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.

[Visual Basic]

You apply an environment map to objects in the same manner you would any other texture, by setting the texture into the appropriate texture stage with the Direct3DDevice7.SetTexture method. Set the first parameter to the index for the desired texture stage, and set the second parameter to the DirectDrawSurface7 object returned when you created the 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.