1<html> 2<head> 3<title>Defining Materials</title> 4<link rel="stylesheet" href="../css/mainpage.css" type="text/css"> 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6</head> 7 8<body> 9 10<h1>Defining Materials</h1> 11 12<h2>Overview</h2> 13<p> 14This page describes elements used to define materials. Materials largely include the following settings. 15</p> 16<ul> 17<li>Name, vertex/fragment lighting flags, and translucency settings, etc. <MaterialCtr></li> 18<li>Various color value settings referenced by the material <MaterialColor></li> 19<li>Culling and polygon offset settings <Rasterization></li> 20<li>Parameter settings related to how texture coordinates are defined <TextureCoordinators></li> 21<li>References to texture images and texture parameter settings <TextureMappers></li> 22<li>Shader assignments and shader parameter settings <ShaderMapper></li> 23<li>Fragment shader parameter settings <FragmentShader></li> 24<li>Blend, logical operation, and depth test settings <FragmentOperation></li> 25</ul> 26<p> 27The <MaterialCtr> element is used to define a single material. Materials have names. Names are referenced by <MaterialReference> attributes in order to reference materials. For details, see <a href="page_overview_show_mesh.html">Display Mesh</a>. 28</p> 29 30<h3>XML Hierarchical Structure</h3> 31<p> 32The <Materials> element appears inside the <SkeletalModel> element only once. It indicates the start of the definition of the <Materials> element. If a scene includes more than one material, multiple <MaterialCtr> elements can be defined. 33</p> 34 35<table> 36<tr><td> 37<pre> 38<NintendoWareIntermediateFile><br> 39 <GraphicsContentCtr><br> 40 <Models><br> 41 <SkeletalModel><br> 42 <Materials><br> 43 <MaterialCtr><br> 44</pre> 45</td></tr> 46</table> 47