]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/blob - Textures.textile
5079b4c4cffd309305e87b65c96b191f08a12607
[xonotic/xonotic.wiki.git] / Textures.textile
1 h1. Textures in Xonotic
2
3 {{>toc}}
4
5 There are 2 material systems in Xonotic that can work together.
6
7 h2. System one
8
9 First is based by texture name, it reads texture suffix
10
11 *Diffuse texture*
12 * *filename*: texturename.tga
13 * The diffuse texture, not much to say.
14
15 *Normal map* 
16 * *filename*: texturename_norm.tga
17 * Xonotic uses OpenGL style tangent space normal map. (Inverted Y/green channel)
18 * You can put height map in normal maps alpha channel and it will be used when offset or relief mapping is on.
19
20 *Alpha channel*
21 * *filename*: texturename / texturename_norm in 32bit (tga). Alpha channel is loaded from image file.
22 * *filename*: texturename_alpha.jpg *note ONLY works with jpg at the moment*
23
24
25 *Bump map*
26 * *filename*: texturename_bump.tga
27 * Normal map have higher priority and it will overwrite bump map
28 * Its wise to convert your bump map to a normal map, because that way you can have higher roughness since height of all bump map is limited by cvar
29
30 *Specular, shininess strength*
31 * *filename*: texturename_gloss
32 * Can use colour 
33
34 *Fullbright map / self-illumination map*
35 * *filename*: texturename_glow
36 * This textures specify areas that will always render shadeless, they will be very bright and will glow in the dark.
37
38 *Custom / Team colour*
39 * *filename*: texturename_pants
40 * Primary colour 
41 * This one tells what part of texture will use custom colour. 
42 * Make it grayscale and leave same area 100% black in diffuse texture.
43
44 * *filename*: texturename_shirt
45 * Same as texturename_pants, for secondary colour.
46
47 h2. System two
48
49 Second material system is simplified Quake 3™ shader system.
50 The main difference is that you can use only 1 pass, with a few exceptions:
51 * Lightmap pass is allowed 
52 * Blend shaders are allowed (blending two diffuse textures + lightmap). Same syntax as in quake3.