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