Extends BBMOD_BaseMaterial
constructor
new BBMOD_DefaultMaterial([_shader])
A material that can be used when rendering models.
Name | Type | Description |
---|---|---|
_shader | Struct.BBMOD_DefaultShader |
A shader that the material uses in the BBMOD_ERenderPass.Forward pass. Leave undefined if you would like to use BBMOD_Material.set_shader to specify shaders used in specific render passes. |
Name | Description |
---|---|
Emissive | RGBM encoded emissive texture. |
MetallicAO | A texture with metallic in the red channel and ambient occlusion in the green channel or undefined . |
NormalRoughness | A texture with tangent-space normals in the RGB channels and roughness in the alpha channel or undefined . |
NormalSmoothness | A texture with tangent-space normals in the RGB channels and smoothness in the alpha channel or undefined . |
SpecularColor | A texture specular color in the RGB channels or undefined . |
Subsurface | A texture with subsurface color in the RGB channels and subsurface effect intensity in the alpha channel. |
Name | Description |
---|---|
set_emissive | Changes the emissive color to a uniform value for the entire material. |
set_metallic_ao | Changes the metalness and ambient occlusion to a uniform value for the entire material. |
set_normal_roughness | Changes the normal vector and roughness to a uniform value for the entire material. |
set_normal_smoothness | Changes the normal vector and smoothness to a uniform value for the entire material. |
set_specular_color | Changes the specular color to a uniform value for the entire material. |
set_subsurface | Changes the subsurface color to a uniform value for the entire material. |
Copyright © 2023, BlueBurn. Built on February 04, 2023 using GMDoc.