Class LODGroup
Sets up the LOD levels of an entity.
Inheritance
LODGroup
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class LODGroup : Component, IDependencyObject
Properties
CurrentLOD
Gets the current LOD.
Declaration
public int CurrentLOD { get; }
Property Value
Type | Description |
---|---|
int |
CurrentScreenCoverage
Gets the current screen coverage.
Declaration
public float CurrentScreenCoverage { get; }
Property Value
Type | Description |
---|---|
float |
LOD
Gets or sets the list of LOD screen coverage values.
Declaration
public List<float> LOD { get; set; }
Property Value
Type | Description |
---|---|
List<float> |
LODBias
Gets or sets the LOD Bias. This is a factor applied to the screen coverage value. A value greater than 1 increases the LOD quality.
Declaration
public float LODBias { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
MarkLODGroupDirty()
Marks this LOD group as dirty, ensuring that the next render will be refreshed.
Declaration
public void MarkLODGroupDirty()
OnActivated()
Invoked when the object is activated once it is attached.
Declaration
protected override void OnActivated()
Overrides
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if everything is OK. |
Overrides
OnDeactivated()
Invoked when the object is deactivated.
Declaration
protected override void OnDeactivated()