API

Class MaterialHelperGeometryRendering

Helper class to manage geometry rendering.

Index
GeometryTextureDescriptions: {
    clearType: GeometryRenderingTextureClearType;
    define: string;
    defineIndex: string;
    name: string;
    type: any;
}[] = ...

Descriptions of the geometry textures.

  • Binds geometry rendering data for a mesh.

    Parameters

    • renderPassId: number

      The render pass id the geometry rendering data is bound for.

    • effect: Effect

      The effect to bind the geometry rendering data to.

    • mesh: Mesh

      The mesh to bind the geometry rendering data for.

    • world: Matrix

      The world matrix of the mesh.

    • material: Material

      The material of the mesh.

    Returns void

  • Marks a list of meshes as dirty for geometry rendering.

    Parameters

    • renderPassId: number

      The render pass id the meshes are marked as dirty for.

    • meshes: AbstractMesh[]

      The list of meshes to mark as dirty.

    Returns void

  • Prepares defines for geometry rendering.

    Parameters

    • renderPassId: number

      The render pass id the defines are prepared for.

    • mesh: AbstractMesh

      The mesh the defines are prepared for.

    • defines: MaterialDefines

      The defines to update according to the geometry rendering configuration.

    Returns void