Class RenderTools
Set of utilities for rendering.
Inheritance
System.Object
RenderTools
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public static class RenderTools : Object
Methods
ComputeModelLOD(Model, ref Float3, Single, ref RenderContext)
Computes the model LOD index to use during rendering.
Declaration
[Unmanaged]
public static int ComputeModelLOD(Model model, ref Float3 origin, float radius, ref RenderContext renderContext)
Parameters
Model
model
The model. |
Float3
origin
The bounds origin. |
System.Single
radius
The bounds radius. |
RenderContext
renderContext
The rendering context. |
Returns
System.Int32
The zero-based LOD index. Returns -1 if model should not be rendered. |
ComputeSkinnedModelLOD(SkinnedModel, ref Float3, Single, ref RenderContext)
Computes the skinned model LOD index to use during rendering.
Declaration
[Unmanaged]
public static int ComputeSkinnedModelLOD(SkinnedModel model, ref Float3 origin, float radius, ref RenderContext renderContext)
Parameters
SkinnedModel
model
The skinned model. |
Float3
origin
The bounds origin. |
System.Single
radius
The bounds radius. |
RenderContext
renderContext
The rendering context. |
Returns
System.Int32
The zero-based LOD index. Returns -1 if model should not be rendered. |