Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Material

Index

Constructors

constructor

Properties

Private _attributeLayoutByteStride

_attributeLayoutByteStride: number = 0

Private _attributes

_attributes: IMaterialAttributeOptions[] = []

Private _colorOutputs

_colorOutputs: IMaterialOutputColorOptions[] = []

Private _cullMode

_cullMode: MATERIAL_CULL_MODE = MATERIAL_CULL_MODE.NONE

Private _depthOutput

_depthOutput: IMaterialOutputDepthOptions = null

Private _destroyedState

_destroyedState: boolean = false

Private _fragmentShader

_fragmentShader: Shader = null

Private _name

_name: string = null

Private _needsRebuildState

_needsRebuildState: boolean = false

Private _renderPipeline

_renderPipeline: IRenderPipeline = null

Private _sharedUniformResources

_sharedUniformResources: IBindGroupResource[] = []

Private _uniformUpdateQueue

_uniformUpdateQueue: IUniformUpdateEntry[] = []

Private _uniforms

_uniforms: IMaterialUniformOptions[] = []

Private _vertexShader

_vertexShader: Shader = null

Methods

Private _generateUniforms

Private _needsRebuild

  • _needsRebuild(): boolean

Private _resetRebuild

  • _resetRebuild(): void

Private _triggerRebuild

  • _triggerRebuild(): void

build

destroy

  • destroy(): void

enqueueUniformUpdate

  • enqueueUniformUpdate(id: number, data: any): void
  • Add a new data update to the uniform update queue

    Parameters

    • id: number

      The uniform id

    • data: any

      The data to update with

    Returns void

getAttributeLayoutByteStride

  • getAttributeLayoutByteStride(): number

getAttributes

getColorOutputs

getCullMode

getDepthOutput

getFragmentShader

getName

  • getName(): string

getRenderPipeline

getSharedUniformResourceById

getUniformByName

getUniforms

getVertexShader

isDestroyed

  • isDestroyed(): boolean

setName

  • setName(value: string): void

update

  • Update this material Used to e.g. process pending uniform resource updates

    Parameters

    Returns void

updateUniform

  • updateUniform(name: string, data: any): void
  • Updates a shader uniform

    Parameters

    • name: string

      The name of the shader uniform

    • data: any

      The data to update with

    Returns void

Generated using TypeDoc