FogAttrib

class FogAttrib

Bases: RenderAttrib

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

Inheritance diagram

Inheritance diagram of FogAttrib

static int get_class_slot(void)
static TypeHandle get_class_type(void)
Fog *get_fog(void) const

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

bool is_off(void) const

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

static ConstPointerTo<RenderAttrib> make(Fog *fog)

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

static ConstPointerTo<RenderAttrib> make_default(void)

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

static ConstPointerTo<RenderAttrib> make_off(void)

Constructs a new FogAttrib object suitable for rendering unfogd geometry.