OccluderEffect

from panda3d.core import OccluderEffect
class OccluderEffect

Bases:

Bases: RenderEffect

This functions similarly to a LightAttrib or ClipPlaneAttrib. It indicates the set of occluders that modify the geometry at this level and below. Unlike a ClipPlaneAttrib, an OccluderEffect takes effect immediately when it is encountered during traversal, and thus can only add occluders; it may not remove them.

Inheritance diagram

Inheritance diagram of OccluderEffect

add_on_occluder(occluder: NodePath) RenderEffect

Returns a new OccluderEffect, just like this one, but with the indicated occluder added to the list of occluders enabled by this effect.

static get_class_type() TypeHandle
get_num_on_occluders() int

Returns the number of occluders that are enabled by the effectute.

get_on_occluder(n: int) NodePath

Returns the nth occluder enabled by the effectute, sorted in render order.

get_on_occluders() list
has_on_occluder(occluder: NodePath) bool

Returns true if the indicated occluder is enabled by the effect, false otherwise.

is_identity() bool

Returns true if this is an identity effect: it does not change the set of occluders in use.

static make() RenderEffect

Constructs a new OccluderEffect object that does nothing.

remove_on_occluder(occluder: NodePath) RenderEffect

Returns a new OccluderEffect, just like this one, but with the indicated occluder removed from the list of occluders enabled by this effect.