Lib.render.basic.Layer2d - tixl3d/tixl GitHub Wiki
Creates a 2D plane in 3D space onto which the incoming image is rendered. This op automatically adjusts to the correct aspect ratio.
A possible alternative [QuadMesh] -> [DrawMesh] -> [SetMaterial] in combination with [RenderTarget].
Name (Relevancy & Type) | Description |
---|---|
Texture (Texture2DRequired) | Texture Input for any 2D Op. e.g. [RenderTarget], [Loadimage] etc. |
Position (Vector2) | The horizontal and vertical position of the layer in world space. \nWith the default camera the viewport at that distance is precisely two units high. So setting y to 1 will align the lower layer border to the screen center. |
PositionZ (Single) | Distance to the viewport. Positive values reduce the distance. Negative values increase it. |
Rotate (Single) | Positive values turn the plane counterclockwise, negative values turn it clockwise. |
Stretch (Vector2) | Non-Uniform scaling of the plane. X = Width Y = Height |
Scale (Single) | Uniformly scales the Plane. |
ScaleMode (Int32) | Selects the mode in which the Plane should dynamically adapt to the aspect ratio of the viewport. |
Color (Vector4) | Selects a color which will be multiplied with the incoming image. |
BlendMode (Int32) | Selects the Blendmode. |
EnableDepthTest (Boolean) | This defines whether the mesh / plane covers itself or is covered by or covers other meshes. |
EnableDepthWrite (Boolean) | This defines whether the mesh / plane covers itself or is covered by or covers other meshes. |
Name | Type |
---|---|
Output | T3.Core.DataTypes.Command |
Please help use to improve this documentation. Feel free to improve the description.
⚠ Everything else is automatically generated and will be overwritten regularly.