BBMOD_PBRShader

Extends BBMOD_BaseShader

constructor

new BBMOD_PBRShader(_shader, _vertexFormat)

Description

A wrapper for a raw GameMaker shader resource using PBR.

Arguments

Name Type Description
_shader Resource.GMShader The shader resource.
_vertexFormat Struct.BBMOD_VertexFormat The vertex format required by the shader.

Methods

Name Description
set_emissive Sets the bbmod_Emissive uniform.
set_ibl Sets a fragment shader uniform bbmod_IBLTexel and samplers bbmod_IBL and bbmod_BRDF. These are required for image based lighting.
set_metallic_ao Sets the bbmod_MetallicAO uniform.
set_normal_roughness Sets the bbmod_NormalRoughness uniform.
set_subsurface Sets the bbmod_Subsurface uniform.
Do you find this page helpful?

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