panda3d.core.FogAttrib

class FogAttrib

Bases: RenderAttrib

Applies a Fog to the geometry at and below this node.

Inheritance diagram

Inheritance diagram of FogAttrib

property class_slot
Return type

int

property fog

If the FogAttrib is not an ‘off’ FogAttrib, returns the fog that is associated. Otherwise, return NULL.

Return type

Fog

static getClassSlot() → int
static getClassType() → TypeHandle
Return type

TypeHandle

getFog() → Fog

If the FogAttrib is not an ‘off’ FogAttrib, returns the fog that is associated. Otherwise, return NULL.

Return type

Fog

isOff() → bool

Returns true if the FogAttrib is an ‘off’ FogAttrib, indicating that it should disable fog.

static make(fog: Fog) → RenderAttrib

Constructs a new FogAttrib object suitable for rendering the indicated fog onto geometry.

Return type

RenderAttrib

static makeDefault() → RenderAttrib

Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.

Return type

RenderAttrib

static makeOff() → RenderAttrib

Constructs a new FogAttrib object suitable for rendering unfogd geometry.

Return type

RenderAttrib