API Docs for:
Show:

LS.Components.Canvas3D Class

Module: LS

Allows to render 2d canvas primitives, but they are rendered into a plane that can be positioned in 3D space. It also supports to store the texture so it can be used in another material.

The CANVAS2D mode renders busing a native Canvas2D, which has all the features but it could be slower because it has to upload the full canvas every frame. The WEBGL mode renders the canvas using WebGL calls, it is faster but the quality is worse and some features are not available (but you can render other textures as images) To fill the canvas you must have a Script in the same node, that contains a method called OnRenderCanvas

Constructor

LS.Components.Canvas3D

(
  • object
)

Parameters:

  • object String

    to configure from

Item Index