Static Mesh Renderer is used for grouping static objects together to all be rendered as a group instead of rendering each mesh/object individually. Note that this must be an object which doesn't move and will use the same material for all objects.
More...
|
void | RegisterAsArchetype< T > () |
| Registeres this static mesh renderer for a given archetype.
|
|
override void | Draw (vxCamera Camera, string renderpass) |
| Draws this mesh renderer with it's mesh and it's materials.
|
|
vxMaterial | GetMaterial (int i) |
|
List< T > | GetMaterials< T > () |
|
void | DrawTempEntity (vxCamera Camera, Color wireColour) |
|
void | DrawWireFrame (Color wireColour) |
|
void | Dispose () |
| Called when disposed.
|
|
|
override void | OnMeshSet () |
|
virtual void | AddToSceneCollection () |
|
virtual void | RemoveFromSceneCollection () |
|
override void | Initialise () |
| Called once when created.
|
|
override void | OnDisposed () |
| When the component or owning entity is disposed.
|
|
|
bool | IsRenderedForUtilCamera = true |
| Should this renderer be run for a Util Camera.
|
|
vxMesh | Mesh [get, set] |
| The mesh reference rendererd by this component. A single mesh can be rendered multiple times by different entities using different materials.
|
|
bool | IsShadowCaster [get, set] |
| Does this renderer cast shadows.
|
|
BoundingSphere | BoundingShape [get] |
|
List< vxMaterial > | Materials [get] |
| The material to render the mesh with.
|
|
bool | IsCullable [get, set] |
| Is this entity cullable by the camera? Or should it always render?
|
|
bool | IsRenderedThisFrame [get, set] |
|
bool | IsEnabled [get, set] |
| Is this enabled.
|
|
string | Name [get, set] |
|
vxEntity | Entity [get] |
| The entitiy which owns this component.
|
|
bool | IsDisposed [get] |
|
Static Mesh Renderer is used for grouping static objects together to all be rendered as a group instead of rendering each mesh/object individually. Note that this must be an object which doesn't move and will use the same material for all objects.
◆ Draw()
override void VerticesEngine.Graphics.vxStaticMeshRenderer.Draw |
( |
vxCamera | Camera, |
|
|
string | renderpass ) |
|
virtual |
◆ OnMeshSet()
override void VerticesEngine.Graphics.vxStaticMeshRenderer.OnMeshSet |
( |
| ) |
|
|
protectedvirtual |
◆ RegisterAsArchetype< T >()
void VerticesEngine.Graphics.vxStaticMeshRenderer.RegisterAsArchetype< T > |
( |
| ) |
|
Registeres this static mesh renderer for a given archetype.
- Template Parameters
-
- Parameters
-
The documentation for this class was generated from the following file:
- /github/workspace/src/VerticesEngine/src.shared/Graphics/StaticMeshBatching/vxStaticMeshRenderer.cs