panda3d.core.FadeLODNode

from panda3d.core import FadeLODNode
class FadeLODNode

Bases: LODNode

A Level-of-Detail node with alpha based switching.

Inheritance diagram

Inheritance diagram of FadeLODNode

__init__(name: str) → None
setFadeTime(t: float) → None

set the time taken to complete an LOD switch

getFadeTime() → float

get the time taken to complete an LOD switch

setFadeBin(name: str, draw_order: int) → None

Specifies the cull bin and draw order that is assigned to the fading part of the geometry during a transition.

getFadeBinName() → str

Returns the cull bin that is assigned to the fading part of the geometry during a transition.

getFadeBinDrawOrder() → int

Returns the draw order that is assigned (along with the bin name) to the fading part of the geometry during a transition.

setFadeStateOverride(override: int) → None

Specifies the override value that is applied to the state changes necessary to apply the fade effect. This should be larger than any attrib overrides on the fading geometry.

getFadeStateOverride() → int

Returns the override value that is applied to the state changes necessary to apply the fade effect. This should be larger than any attrib overrides on the fading geometry.

static getClassType() → TypeHandle
Return type

TypeHandle

property fade_time
Getter

get the time taken to complete an LOD switch

Setter

set the time taken to complete an LOD switch

Return type

float

property fade_bin_name

Returns the cull bin that is assigned to the fading part of the geometry during a transition.

Return type

string

property fade_bin_draw_order

Returns the draw order that is assigned (along with the bin name) to the fading part of the geometry during a transition.

Return type

int

property fade_state_override
Getter

Returns the override value that is applied to the state changes necessary to apply the fade effect. This should be larger than any attrib overrides on the fading geometry.

Setter

Specifies the override value that is applied to the state changes necessary to apply the fade effect. This should be larger than any attrib overrides on the fading geometry.

Return type

int