FogAttrib

from panda3d.core import FogAttrib
class FogAttrib

Bases: RenderAttrib

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

Inheritance diagram

Inheritance diagram of FogAttrib

property class_slotint
property fogFog

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

static getClassSlot()int
static getClassType()TypeHandle
getFog()Fog

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

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.

static makeDefault()RenderAttrib

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

static makeOff()RenderAttrib

Constructs a new FogAttrib object suitable for rendering unfogd geometry.