Class LODGroup
Setup 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.
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 increase the LOD quality.
Declaration
public float LODBias { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
MarkLODGroupDirty()
Set this LOD group dirty, so the next render will be refreshed.
Declaration
public void MarkLODGroupDirty()
OnActivated()
Invoked when the object is activated once 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 all is OK. |
Overrides
OnDeactivated()
Invoked when the object is deactivated.
Declaration
protected override void OnDeactivated()