PrePassConfiguration

Configuration needed for prepass-capable materials

Hierarchy

  • PrePassConfiguration

Index

Properties

previousBones

Find examples in Playground
previousBones: object

Previous bones of meshes carrying this material Used for computing velocity

Type declaration

  • [index: number]: Float32Array

previousViewProjection

Find examples in Playground
previousViewProjection: Matrix

Previous view project matrix Used for computing velocity

previousWorldMatrices

Find examples in Playground
previousWorldMatrices: object

Previous world matrices of meshes carrying this material Used for computing velocity

Type declaration

Methods

bindForSubMesh

Find examples in Playground
  • Binds the material data.

    Parameters

    • effect: Effect

      defines the effect to update

    • scene: Scene

      defines the scene the material belongs to.

    • mesh: Mesh

      The mesh

    • world: Matrix

      World matrix of this mesh

    • isFrozen: boolean

      Is the material frozen

    Returns void

Static AddSamplers

Find examples in Playground
  • AddSamplers(samplers: string[]): void
  • Add the required samplers to the current list.

    Parameters

    • samplers: string[]

      defines the current sampler list.

    Returns void

Static AddUniforms

Find examples in Playground
  • AddUniforms(uniforms: string[]): void
  • Add the required uniforms to the current list.

    Parameters

    • uniforms: string[]

      defines the current uniform list.

    Returns void

Generated using TypeDoc