AlphaTestAttrib

from panda3d.core import AlphaTestAttrib
class AlphaTestAttrib

Bases:

Bases: RenderAttrib

Enables or disables writing of pixel to framebuffer based on its alpha value relative to a reference alpha value

Inheritance diagram

Inheritance diagram of AlphaTestAttrib

property class_slot int
static get_class_slot() int
static get_class_type() TypeHandle
get_mode() PandaCompareFunc

Returns the alpha write mode.

get_reference_alpha() float

Returns the alpha reference value.

static make(mode: PandaCompareFunc, reference_alpha: float) RenderAttrib

Constructs a new AlphaTestAttrib object.

static make_default() RenderAttrib

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

property mode PandaCompareFunc

Returns the alpha write mode.

property reference_alpha float

Returns the alpha reference value.