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

__init__(*args, **kwargs)
class_slot = 1
getClassSlot()

C++ Interface: get_class_slot()

getClassType()

C++ Interface: get_class_type()

getMode()

C++ Interface: get_mode(AlphaTestAttrib self)

/**
  • Returns the alpha write mode.

*/

getReferenceAlpha()

C++ Interface: get_reference_alpha(AlphaTestAttrib self)

/**
  • Returns the alpha reference value.

*/

get_class_slot()

C++ Interface: get_class_slot()

get_class_type()

C++ Interface: get_class_type()

get_mode()

C++ Interface: get_mode(AlphaTestAttrib self)

/**
  • Returns the alpha write mode.

*/

get_reference_alpha()

C++ Interface: get_reference_alpha(AlphaTestAttrib self)

/**
  • Returns the alpha reference value.

*/

make()

C++ Interface: make(int mode, float reference_alpha)

/**
  • Constructs a new AlphaTestAttrib object.

*/

makeDefault()

C++ Interface: make_default()

/**
  • Returns a RenderAttrib that corresponds to whatever the standard default

  • properties for render attributes of this type ought to be.

*/

make_default()

C++ Interface: make_default()

/**
  • Returns a RenderAttrib that corresponds to whatever the standard default

  • properties for render attributes of this type ought to be.

*/

mode
reference_alpha