Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to render in the mesh UV space

since

5.49.1

Hierarchy

  • MeshUVSpaceRenderer

Index

Constructors

Properties

clearColor: Color4

Clear color of the texture

texture: Texture

Target texture used for rendering If you don't set the property, a RenderTargetTexture will be created internally given the options provided to the constructor. If you provide a RenderTargetTexture, it will be used directly.

Methods

  • clear(): void
  • Clears the texture map

    Returns void

  • dispose(): void
  • Disposes of the ressources

    Returns void

  • isReady(): boolean
  • Checks if the texture is ready to be used

    Returns boolean

    true if the texture is ready to be used

  • Projects and renders a texture in the mesh UV space

    Parameters

    • texture: BaseTexture

      The texture

    • position: Vector3

      The position of the center of projection (world space coordinates)

    • normal: Vector3

      The direction of the projection (world space coordinates)

    • size: Vector3

      The size of the projection

    • Optional angle: number

      The rotation angle around the direction of the projection

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme