Class RectangleProceduralModel
- Namespace
- Stride.CommunityToolkit.Rendering.ProceduralModels
- Assembly
- Stride.CommunityToolkit.dll
Generates a textured rectangle (quad) in the XY plane.
public class RectangleProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
- Inheritance
-
RectangleProceduralModel
- Implements
- Inherited Members
Properties
Size
Gets or sets the size of the object as a two-dimensional vector.
public Vector2 Size { get; set; }
Property Value
Methods
CreateMesh(Vector2, float, float, bool)
Builds a new rectangle mesh (no caching).
public static GeometricMeshData<VertexPositionNormalTexture> CreateMesh(Vector2 size, float uScale = 1, float vScale = 1, bool toLeftHanded = false)
Parameters
Returns
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()
Returns
New(Vector2, float, float, bool)
Creates (or retrieves from cache) a rectangle mesh of the given size and UV scale.
public static GeometricMeshData<VertexPositionNormalTexture> New(Vector2 size, float uScale = 1, float vScale = 1, bool toLeftHanded = false)