map

 

Tag: map
Parent tag: materialMaps
Attributes:

  • fromMaterial – specifies the name of a material to be replaced. This must be the name of a material from in the file(s) from which the model was loaded
  • toLibrary – specifies the name of a material library
  • toMaterial – specifies the name of a material in the defined material library which will be used instead of the material defined in fromMaterial

Child tags: none

Example:

	
<materialMaps>
	<map fromMaterial="Vidro" 
		 toLibrary="PL3D_Materials" toMaterial="Vidro" />
	<map fromMaterial="AguaComposer" 
		 toLibrary="PL3D_Materials" toMaterial="Aqua" />
	<map fromMaterial="skydome" 
		 toLibrary="PL3D_Materials" toMaterial="Sky" />
</materialMaps>

Example for replacing all materials:

	
<materialMaps>
	<map fromMaterial="*" toLibrary="Shadows" toMaterial="depthOnly" />
</materialMaps>