Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MeshGeometry3D

Geometry with mesh data (i.e. positions, normals, uvs).

Hierarchy

  • MeshGeometry3D

Index

Properties

Private _shaderGeometry

_shaderGeometry: {}

Type declaration

  • [id: string]: Geometry

Optional indices

indices: MeshGeometryAttribute

Optional joints

joints: MeshGeometryAttribute

Optional normals

normals: MeshGeometryAttribute

Optional positions

positions: MeshGeometryAttribute

Optional tangents

tangents: MeshGeometryAttribute

Optional targets

targets: MeshGeometryTarget[]

Optional uvs

uvs: MeshGeometryAttribute[]

Optional weights

weights: MeshGeometryAttribute

Methods

addShaderGeometry

  • addShaderGeometry(shader: MeshShader, instanced: boolean): void
  • Creates geometry with attributes required by the specified shader.

    Parameters

    • shader: MeshShader

      The shader to use.

    • instanced: boolean

      Value indicating if the geometry will be instanced.

    Returns void

destroy

  • destroy(): void

getShaderGeometry

hasShaderGeometry

  • hasShaderGeometry(shader: MeshShader, instanced: boolean): boolean
  • Returns a value indicating if geometry with required attributes has been created the specified shader.

    Parameters

    • shader: MeshShader

      The shader to test.

    • instanced: boolean

      Value indicating if the geometry is instanced.

    Returns boolean

Generated using TypeDoc