TextureHelper Class |
Namespace: DigitalRune.Graphics
The TextureHelper type exposes the following members.
Name | Description | |
---|---|---|
GetDefaultNormalTexture |
Gets a 1x1 normal map. The normal vector is (0, 0, 1).
| |
GetDefaultTexture2DBlack |
Gets a black 2D texture with 1x1 pixels.
| |
GetDefaultTexture2DWhite |
Gets a white 2D texture with 1x1 pixels.
| |
GetDefaultTexture3DBlack |
Gets a black 3D texture with 1x1 pixels.
| |
GetDefaultTexture3DWhite |
Gets a white 3D texture with 1x1 pixels.
| |
GetDefaultTextureCubeBlack |
Gets a cubemap texture where each face consists of 1 black pixel.
| |
GetDefaultTextureCubeWhite |
Gets a cubemap texture where each face consists of 1 white pixel.
| |
GetNormalsFittingTexture |
Gets the normals fitting texture for calculating "best fit" normals.
| |
IsFloatingPointFormat |
Determines whether the specified surface format is a floating-point format.
|
This class provides several default textures (e.g. GetDefaultTexture2DWhite(IGraphicsService)). These default textures are only created once per graphics device and are reused. These textures must not be modified.