How to write a Material File
From Iris2
(→Defining the Template and Texture) |
(→Import the materia-templates.material) |
||
Line 8: | Line 8: | ||
- | < | + | <pre>import * from "material-templates.material"</pre> |
Line 14: | Line 14: | ||
==Defining the Template and Texture== | ==Defining the Template and Texture== | ||
- | |||
Then type this and replace the "diffuse_template" with your chosen template and "tex_basefloortile.png" with the texture which you want to use. | Then type this and replace the "diffuse_template" with your chosen template and "tex_basefloortile.png" with the texture which you want to use. | ||
- | |||
<pre> | <pre> | ||
material basefloortile : diffuse_template | material basefloortile : diffuse_template | ||
- | |||
{ | { | ||
- | + | set_texture_alias ambient_tex tex_basefloortile.png | |
- | set_texture_alias ambient_tex tex_basefloortile.png | + | set_texture_alias diffuse_tex tex_basefloortile.png |
- | + | ||
- | set_texture_alias diffuse_tex tex_basefloortile.png | + | |
- | + | ||
} | } | ||
- | |||
</pre> | </pre> | ||