BBMOD_PBRMaterial

Extends BBMOD_BaseMaterial

constructor

new BBMOD_PBRMaterial([_shader])

Description

A PBR material using the metallic-rougness workflow.

Arguments

Name Type Description
_shader Struct.BBMOD_Shader/Undefined A shader that the material uses in the BBMOD_ERenderPass.Forward pass. Leave undefined if you would like to use BBMOD_BaseMaterial.set_shader to specify shaders used in specific render passes.

Properties

Name Description
Emissive RGBM encoded emissive texture.
MetallicAO A texture with metallic in the red channel and ambient occlusion in the green channel.
NormalRoughness A texture with tangent-space normals in the RGB channels and roughness in the alpha channel.
Subsurface A texture with subsurface color in the RGB channels and subsurface effect intensity in the alpha channel.

Methods

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_subsurface Changes the subsurface color to a uniform value for the entire material.
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 16, 2022 using GMDoc.