Textures
BeginnerArtistProgrammer Textures are images mainly used in materials. Xenko maps textures to the surfaces the material covers. texels) can also be used for other calculations, such as in specular maps, metalness maps, or normal maps. Materials typically contain multiple textures; for example, a material might contain a color texture, a normal map texture, and a roughness texture. sprites.
Supported file types
You can use the following file types as textures:
.dds.jpg.jpeg.png.gif.bmp.tga.psd.tif.tiffNote
- -
Add a texture
Asset View, click Add asset > Texture, then select a template for the texture (color, grayscale or normal map):Note
camera. For more information, see Render targets. Alternatively, drag the texture file from Explorer to the Asset View: color, grayscale or normal map): Game Studio adds the texture to the Asset View:Texture properties
The following properties are common to all textures.Color texture properties
type to color.Normal map properties
type to normal map. Normal maps page.Grayscale textures
Grayscale texture use only the R channel of the image (finalRGBA = originalRRRR).Note
If you add a texture to a scene (as a sprite component), and set the texture type to grayscale, it appears red, not monochrome. This is because the image uses the R (red) channel. Sprite component properties, set the Type as Grayscale. For more information about the sprite component properties, see Use sprites. material maps. For example, you can use a texture as a blend map to blend two material layers: Note how the blend map texture corresponds to the patterning on the result. Material maps.Global texture settings
Game Settings page.See also
- Normal maps
- Texture compression
- Texture streaming
- Materials
- Sprites
- Render textures
- Skyboxes and backgrounds
