Skip to main content

Material Template

Overview

The material template is a collection of material switches. It controls whether a specific material property is displayed in the Material Editor. The Engine provides built-in material template viewing and editing functions, and supports custom material template feature.

Viewing and Editing Material Templates

Open the Material Editor in the scene to view the material information of the model by referring to the method described in the Material Editor User Manual. The material template used by the current material can be viewed in the box on the right of the Shader property under Material Select of the Material Editor.

image-20221221145909280

NULL means no material template is used by the current material. Click the image-20221128161101904 button on the right of Shader to see the current material template list.

image-20221221150657280

Select the Standard template, then hold down the Ctrl key and click the image-20221128161316783button on the right of Shader to open the Material Template Edit window.

image-20221221150942404

You can see that the Standard template contains three material switches, Diffuse Map, Roughness and Normal Map. And the corresponding three material groups can be seen in the Material Editor.

image-20221221151235405

image-20221221151430111

Check Reflection and click the Apply button to see the newly added Reflection group in the Material Editor.

image-20221221151652115

image-20221221151858356

Click the image-20221221142223137 button on the right of the template to view the location of the storage file of the material template on the disk.

image-20221221152141800

image-20221221154421532

Creating New Material Templates

Click the button on the right of Shader to bring up the drop-down list of current material templates and select NULL. Then hold down the Ctrl key and click the **【图标!】** button on the right of Shader to open the Material Template Edit window, where you can see the Material Template Name box is empty.

image-20221221154825617

image-20221221155000236

Select the switch to be turned on(here we select Emission), then click the Save button, and enter the material template name in the input box of the pop-up Save Template window. Last, click the OK button to save the new material template.

image-20221221155905419

Material Switches

There are many types of materials in the Engine, and each material has a switch to control whether the material properties are displayed in the Material Editor. Here is a brief description of these material switches.

Material SwitchDescription
Diffuse MapDiffuse map
RoughnessRoughness
Normal MapNormal map
Glossiness MapGlossiness map
Specular ReflectionSpecular reflection
EmissionEmission
ReflectionAmbient reflection
Rim LightRim light
Ice EffectIce effect
Transmission EffectTransmission effect
Save Wind Data In Vertex ColorSave wind data in vertex color
Subsurface ScatteringSubsurface scattering
Skin EffectSkin effect
Hair EffectHair effect
Eyeball EffectEyeball effect
Eye OcclusionEye occlusion
Dirt MapDirt map
Detail Diffuse MapDetail diffuse map
Blend MapBlend map
Grass ShaderGrass shader
Sequence Frame AnimationSequence frame animation
Model DecalModel decal
Volumetric Water PropertyVolumetric water property
AnisotropyAnisotropy
FabricFabric