Renderable |
public abstract class RenderablePrimitiveBase
The RenderablePrimitiveBase type exposes the following members.
Name | Description | |
---|---|---|
IsBackFaceMaterial | IsBackFaceMaterial specifies if the material is used to render front (IsBackFaceMaterial == false) or back (IsBackFaceMaterial == true) faces. This property gets or set the flag from RenderingFlags field. | |
IsCastingShadow | IsCastingShadow specifies if this object casts shadow. This property gets or set the flag from RenderingFlags field. | |
IsFrontCounterClockwise | IsFrontCounterClockwise specifies the orientation of the positions in the 3D geometry - if true than the positions are oriented in a counter clockwise manner. This property gets or set the flag from RenderingFlags field. | |
IsReceivingShadow | IsReceivingShadow specifies if this object receives shadow. This property gets or set the flag from RenderingFlags field. | |
IsVisible | When IsVisible property is false this prevents rendering the RenderablePrimitiveBase. This property gets or set the flag from RenderingFlags field. | |
IsWorldMatrixIdentity | Boolean that specifies if WorldMatrix is identity. This property gets or set the flag from RenderingFlags field. |
Name | Description | |
---|---|---|
CalculateWorldInverseTransposeMatrix | Calculates the WorldInverseTransposeMatrix from the World matrix | |
RenderGeometry | RenderGeometry renders the geometry (executes draw calls but does not apply material settings) |
Name | Description | |
---|---|---|
Material | Material | |
MaterialFlags | MaterialFlags can be used by Materials to add some values that could be used to improve performance. Currently they are used by StandardEffect (DirectionalLightShader and SuperShader) to mark which constant buffer values are the same as in the previous RenderablePrimitiveBase. | |
OriginalObject | The original object that was used to create this RenderablePrimitiveBase. | |
OverrideMaterial | OverrideMaterial can be set to override the Material when rendering but still preserve the original Material. It can be set by some other object that wanted to change the rendering behavior of this RenderablePrimitiveBase. | |
RelatedRenderablePrimitive | RenderablePrimitive objects that is related to this RenderablePrimitive. Usually this is link to back-face RenderablePrimitive or to front-face RenderablePrimitive (for RenderablePrimitive that renders back-face). This field is used in CameraDistanceSortedRenderingQueue to put back-face RenderablePrimitive before front-face RenderablePrimitive. | |
RenderingFlags | Flags that provide information on how this RenderablePrimitive is rendered. | |
WorldInverseTransposeMatrix | The world matrix that is inversed and transposed (normals are multiplied with this matrix) | |
WorldMatrix | The world matrix |