TransparencyAttrib
from panda3d.core import TransparencyAttrib
- class TransparencyAttrib
Bases:
RenderAttrib
This controls the enabling of transparency. Simply setting an alpha component to non-1 does not in itself make an object transparent; you must also enable transparency mode with a suitable TransparencyAttrib. Similarly, it is wasteful to render an object with a TransparencyAttrib in effect unless you actually want it to be at least partially transparent (and it has alpha components less than 1).
Inheritance diagram
- MAlpha = 1
- MBinary = 5
- MDual = 6
- MMultisample = 3
- MMultisampleMask = 4
- MNone = 0
- MPremultipliedAlpha = 2
- M_alpha = 1
- M_binary = 5
- M_dual = 6
- M_multisample = 3
- M_multisample_mask = 4
- M_none = 0
- M_premultiplied_alpha = 2
- __init__(*args, **kwargs)
- class_slot = 30
- getClassSlot()
C++ Interface: get_class_slot()
- getClassType()
C++ Interface: get_class_type()
- get_class_slot()
C++ Interface: get_class_slot()
- get_class_type()
C++ Interface: get_class_type()
- 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