Home Reference Source
import PBRMetallicRoughnessMaterial from 'glboost/src/low_level/materials/PBRMetallicRoughnessMaterial.js'
public class | source

PBRMetallicRoughnessMaterial

Extends:

GLBoostObjectL_AbstractMaterial → PBRMetallicRoughnessMaterial

Constructor Summary

Public Constructor
public

constructor(glBoostSystem: glBoostSystem)

Member Summary

Public Members
public set
public get
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
Private Members
private
private
private
private
private
private
private
private
private
private
private
private

Inherited Summary

From class GLBoostObject
public static
private static
private static
public get
public get
public get

Return the simple class-specific number.

public get
public get
public get
public get
public get
public get
public set
private
private
private
private
private
private
private
private
private
private
public
public
public
public

Return instance name.

public
private

_copy(instance: *)

private
From class L_AbstractMaterial
public get
public set
public get
public set
public get
public set
public get
public set
public get

name: *

public set

name: *

public get
public set
public get
public set
public get
public set
public get

states: *

public set

states: *

private
private
private

_gl: *

private
private
private
private
private
private
private
private
private
private

_stateFunctionsToReset: {"blendColor": *, "blendEquationSeparate": *, "blendFuncSeparate": *, "colorMask": *, "cullFace": *, "depthFunc": *, "depthMask": *, "depthRange": *, "frontFace": *, "lineWidth": *, "polygonOffset": *}

private

_states: {"enable": *, "functions": *}

private
private
private
private
private
public

addSemanticsDic(uniform: *, uniformName: *)

public

clone(): *

public
public

getTexture(userFlavorName: *): *

public

getTextureContributionRate(textureUserFlavorName: *): *

public

getTextureFromPurpose(purpose: *): *

public
public
public

getTexturePurpose(userFlavorNameOfTexture: *): *

public
public

getUniform(glslProgram: *, uniformLocationName: *): *

public
public

getVertexN(geom: *): *

public
public
public
public

registerTextureUnitToUniform(texturePurpose: *, shaderProgram: *, uniformName: *)

public

removeSemanticsDic(uniform: *)

public

removeTexture(userFlavorName: *, discardTexture: *)

public
public
public

setTexture(texture: *, purpose: *)

public

setTextureContributionRate(textureUserFlavorName: *, rateVec4: *)

public

setTexturePurpose(userFlavorNameOfTexture: *, purpose: *)

public

setUniform(glslProgram: *, uniformLocationName: *, uniformLocation: *)

public

setUpStates(mesh: *)

public

setUpTexture(textureName: *, textureUnitIndex: *): *

bind the texture.

public

setVertexN(geom: *, num: *)

public
public

tearDownTexture(textureName: *, textureUnitIndex: *)

public

updateTextureInfo(texturePurpose: *, uniformName: *)

private
private

Public Constructors

public constructor(glBoostSystem: glBoostSystem) source

Override:

L_AbstractMaterial#constructor

Params:

NameTypeAttributeDescription
glBoostSystem glBoostSystem

Public Members

public set IBLDiffuseContribution: number source

public get IBLDiffuseContribution: * source

public get IBLSpecularContribution: * source

public set IBLSpecularContribution: number source

public get IBLSpecularTextureMipmapCount: * source

public set IBLSpecularTextureMipmapCount: number source

public get baseColor: * source

public set baseColor: Vector3 source

public get emissive: * source

public set emissive: Vector3 source

public get metallic: * source

public set metallic: number source

public get occlusion: * source

public set occlusion: number source

public get occlusionRateForDirectionalLight: * source

public set occlusionRateForDirectionalLight: number source

public get roughness: * source

public set roughness: number source

public get wireframeWidthRelativeScale: * source

Private Members

private _IBLDiffuseContribution: number source

private _IBLSpecularContribution: number source

private _IBLSpecularTextureMipmapCount: number source

private _alphaCutoff: number source

Override:

L_AbstractMaterial#_alphaCutoff

private _baseColorFactor: Vector3 source

private _emissiveFactor: Vector3 source

private _isAlphaTestEnable: boolean source

Override:

L_AbstractMaterial#_isAlphaTestEnable

private _metallicRoughnessFactors: Vector2 source

private _occlusionFactor: number source

private _occlusionRateForDirectionalLight: number source

private _wireframeWidthRelativeScale: number source