A LOD (level of detail) level. More...
Public Member Functions | |
LODLevel (float screenRelativeTransitionHeight, float quality) | |
Creates a new LOD level. | |
LODLevel (float screenRelativeTransitionHeight, float fadeTransitionWidth, float quality, bool combineMeshes, bool combineSubMeshes) | |
Creates a new LOD level. | |
LODLevel (float screenRelativeTransitionHeight, float fadeTransitionWidth, float quality, bool combineMeshes, bool combineSubMeshes, Renderer[] renderers) | |
Creates a new LOD level. | |
Properties | |
float | ScreenRelativeTransitionHeight [get, set] |
Gets or sets the screen relative height to use for the transition [0-1]. | |
float | FadeTransitionWidth [get, set] |
Gets or sets the width of the cross-fade transition zone (proportion to the current LOD's whole length) [0-1]. | |
float | Quality [get, set] |
Gets or sets the quality of this level [0-1]. | |
bool | CombineMeshes [get, set] |
Gets or sets if all renderers and meshes under this level should be combined into one, where possible. | |
bool | CombineSubMeshes [get, set] |
Gets or sets if all sub-meshes should be combined into one, where possible. | |
Renderer[] | Renderers [get, set] |
Gets or sets the renderers used in this level. | |
SkinQuality | SkinQuality [get, set] |
Gets or sets the skin quality to use for renderers on this level. | |
ShadowCastingMode | ShadowCastingMode [get, set] |
Gets or sets the shadow casting mode for renderers on this level. | |
bool | ReceiveShadows [get, set] |
Gets or sets if renderers on this level should receive shadows. | |
MotionVectorGenerationMode | MotionVectorGenerationMode [get, set] |
Gets or sets the motion vector generation mode for renderers on this level. | |
bool | SkinnedMotionVectors [get, set] |
Gets or sets if renderers on this level should use skinned motion vectors. | |
LightProbeUsage | LightProbeUsage [get, set] |
Gets or sets the light probe usage for renderers on this level. | |
ReflectionProbeUsage | ReflectionProbeUsage [get, set] |
Gets or sets the reflection probe usage for renderers on this level. | |
Detailed Description
A LOD (level of detail) level.
Constructor & Destructor Documentation
◆ LODLevel() [1/3]
realvirtual.LODLevel.LODLevel | ( | float | screenRelativeTransitionHeight, |
float | quality | ||
) |
Creates a new LOD level.
- Parameters
-
screenRelativeTransitionHeight The screen relative height to use for the transition [0-1]. quality The quality of this level [0-1].
◆ LODLevel() [2/3]
realvirtual.LODLevel.LODLevel | ( | float | screenRelativeTransitionHeight, |
float | fadeTransitionWidth, | ||
float | quality, | ||
bool | combineMeshes, | ||
bool | combineSubMeshes | ||
) |
Creates a new LOD level.
- Parameters
-
screenRelativeTransitionHeight The screen relative height to use for the transition [0-1]. fadeTransitionWidth The width of the cross-fade transition zone (proportion to the current LOD's whole length) [0-1]. Only used if it's not animated. quality The quality of this level [0-1]. combineMeshes If all renderers and meshes under this level should be combined into one, where possible. combineSubMeshes If all sub-meshes should be combined into one, where possible.
◆ LODLevel() [3/3]
realvirtual.LODLevel.LODLevel | ( | float | screenRelativeTransitionHeight, |
float | fadeTransitionWidth, | ||
float | quality, | ||
bool | combineMeshes, | ||
bool | combineSubMeshes, | ||
Renderer[] | renderers | ||
) |
Creates a new LOD level.
- Parameters
-
screenRelativeTransitionHeight The screen relative height to use for the transition [0-1]. fadeTransitionWidth The width of the cross-fade transition zone (proportion to the current LOD's whole length) [0-1]. Only used if it's not animated. quality The quality of this level [0-1]. combineMeshes If all renderers and meshes under this level should be combined into one, where possible. combineSubMeshes If all sub-meshes should be combined into one, where possible. renderers The renderers used in this level.
Property Documentation
◆ CombineMeshes
|
getset |
Gets or sets if all renderers and meshes under this level should be combined into one, where possible.
◆ CombineSubMeshes
|
getset |
Gets or sets if all sub-meshes should be combined into one, where possible.
NOTE: This is only used if CombineMeshes is true.
◆ FadeTransitionWidth
|
getset |
Gets or sets the width of the cross-fade transition zone (proportion to the current LOD's whole length) [0-1].
Only used if it's not animated.
◆ LightProbeUsage
|
getset |
Gets or sets the light probe usage for renderers on this level.
◆ MotionVectorGenerationMode
|
getset |
Gets or sets the motion vector generation mode for renderers on this level.
◆ Quality
|
getset |
Gets or sets the quality of this level [0-1].
◆ ReceiveShadows
|
getset |
Gets or sets if renderers on this level should receive shadows.
◆ ReflectionProbeUsage
|
getset |
Gets or sets the reflection probe usage for renderers on this level.
◆ Renderers
|
getset |
Gets or sets the renderers used in this level.
These will have no purpose if automatic collection is used for the LOD generator.
◆ ScreenRelativeTransitionHeight
|
getset |
Gets or sets the screen relative height to use for the transition [0-1].
◆ ShadowCastingMode
|
getset |
Gets or sets the shadow casting mode for renderers on this level.
◆ SkinnedMotionVectors
|
getset |
Gets or sets if renderers on this level should use skinned motion vectors.
◆ SkinQuality
|
getset |
Gets or sets the skin quality to use for renderers on this level.