This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
textures:myfirst [2005-09-12 20:16] Stormtrooper Added links & images |
textures:myfirst [2005-09-13 11:08] Carsten Fixed the links to zip and tar.gz files, and indendation in <code> blocks. |
||
---|---|---|---|
Line 16: | Line 16: | ||
<code>Textures/directory_name(in which the textures are palced)/texture name | <code>Textures/directory_name(in which the textures are palced)/texture name | ||
{ | { | ||
- | type_of_texture Textures/directory_name/texture_patch | + | type_of_texture Textures/directory_name/texture_patch |
} | } | ||
</code> | </code> | ||
Line 25: | Line 24: | ||
Textures/tutorial/texture1 | Textures/tutorial/texture1 | ||
{ | { | ||
- | diffusemap Textures/tutorial/texture1_diff.jpg | + | diffusemap Textures/tutorial/texture1_diff.jpg |
- | normalmap Textures/tutorial/texture1_norm.jpg | + | normalmap Textures/tutorial/texture1_norm.jpg |
- | specularmap Textures/tutorial/texture1_spec.jpg | + | specularmap Textures/tutorial/texture1_spec.jpg |
- | lightmap $lightmap | + | lightmap $lightmap |
} | } | ||
</code> | </code> | ||
Line 35: | Line 34: | ||
It's easy, isn't it? And that's already it! You can save it as yourshadername.cmat or within another shader and it will work. Start your mapping editor and you will be able to use the texture! | It's easy, isn't it? And that's already it! You can save it as yourshadername.cmat or within another shader and it will work. Start your mapping editor and you will be able to use the texture! | ||
- | **Download:** [[{{textures:tut-textures.zip}}|Tutorial example files (.zip file)]] | + | **Download:** {{textures:tut-textures.zip|Tutorial example files (.zip file)}} |
- | **Download:** [{{textures:tut-textures.tar.gz}}|Tutorial example files (.tar.gz file)]] | + | **Download:** {{textures:tut-textures.tar.gz|Tutorial example files (.tar.gz file)}} |
Line 47: | Line 46: | ||
Models/Static/mymodelname/a_name_for_my_skin | Models/Static/mymodelname/a_name_for_my_skin | ||
{ | { | ||
- | diffusemap Models/Static/a_name_of_my_skin_diff.png | + | diffusemap Models/Static/a_name_of_my_skin_diff.png |
- | normalmap Models/Static/a_name_of_my_skin_norm.png | + | normalmap Models/Static/a_name_of_my_skin_norm.png |
- | specularmap Models/Static/a_name_of_my_skin_spec.png | + | specularmap Models/Static/a_name_of_my_skin_spec.png |
- | red ambientLightRed | + | red ambientLightRed |
- | green ambientLightGreen | + | green ambientLightGreen |
- | blue ambientLightBlue | + | blue ambientLightBlue |
} | } | ||
</code> | </code> |