Class MeshUVSpaceRenderer
Hierarchy
- MeshUVSpaceRenderer
Index
Constructors
constructor
Creates a new MeshUVSpaceRenderer
Parameters
mesh: AbstractMesh
The mesh used for the source UV space
scene: Scene
The scene the mesh belongs to
Optional options: IMeshUVSpaceRendererOptions
The options to use when creating the texture
Returns MeshUVSpaceRenderer
Properties
clear ColorSearch playground for clearColor
Clear color of the texture
textureSearch playground for 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
clearSearch playground for clear
Clears the texture map
Returns void
disposeSearch playground for dispose
Disposes of the ressources
Returns void
is ReadySearch playground for isReady
Checks if the texture is ready to be used
Returns boolean
true if the texture is ready to be used
render TextureSearch playground for renderTexture
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
Static DisposeSearch playground for Dispose
Disposes of the global resources created by the MeshUVSpaceRenderer class
Returns void
Class used to render in the mesh UV space
5.49.1