panda3d.core.AlphaTestAttrib

from panda3d.core import AlphaTestAttrib
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 make(mode: PandaCompareFunc, reference_alpha: float) → RenderAttrib

Constructs a new AlphaTestAttrib object.

Return type

RenderAttrib

static makeDefault() → RenderAttrib

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

Return type

RenderAttrib

getReferenceAlpha() → float

Returns the alpha reference value.

getMode() → PandaCompareFunc

Returns the alpha write mode.

Return type

PandaCompareFunc

static getClassSlot() → int
static getClassType() → TypeHandle
Return type

TypeHandle

property reference_alpha

Returns the alpha reference value.

Return type

float

property mode

Returns the alpha write mode.

Return type

PandaCompareFunc

property class_slot
Return type

int