class AlphaTestAttrib

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

static int get_class_slot(void)
static TypeHandle get_class_type(void)
RenderAttrib::PandaCompareFunc get_mode(void) const

Returns the alpha write mode.

PN_stdfloat get_reference_alpha(void) const

Returns the alpha reference value.

static ConstPointerTo<RenderAttrib> make(RenderAttrib::PandaCompareFunc mode, PN_stdfloat reference_alpha)

Constructs a new AlphaTestAttrib object.

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.