How to write a Material File

From Iris2

Jump to: navigation, search
Line 5: Line 5:
Begin the file with the following file without the slashes. The slashes are normally for comments.
Begin the file with the following file without the slashes. The slashes are normally for comments.
-
 
+
<code>import * from "material-templates.material"</code>
-
----
+
-
 
+
-
import * from "material-templates.material"
+
-
 
+
-
----
+
This will import the templates and the artist does not have to type very much.
This will import the templates and the artist does not have to type very much.
Line 16: Line 11:
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.
-
 
-
----
 
<code>
<code>
material basefloortile : diffuse_template
material basefloortile : diffuse_template
 +
{  
{  
Line 30: Line 24:
</code>
</code>
-
----
 

Revision as of 10:16, 3 December 2011

Personal tools