ColorScaleAttrib
from panda3d.core import ColorScaleAttrib
- class ColorScaleAttrib
Bases:
Bases:
RenderAttribApplies a scale to colors in the scene graph and on vertices.
Inheritance diagram
- static getClassType() TypeHandle
- hasAlphaScale() bool
Returns true if the
ColorScaleAttribhas a non-identity scale in the alpha component (ignoring RGB), or false otherwise.
- hasRgbScale() bool
Returns true if the
ColorScaleAttribhas a non-identity scale in the RGB components (ignoring alpha), or false otherwise.
- hasScale() bool
Returns true if the
ColorScaleAttribhas a non-identity scale, false otherwise (in which case it might be an off attrib or an identity attrib).
- isIdentity() bool
Returns true if the
ColorScaleAttribis an identity attrib, false if it is either an off attrib or it has a scale.
- isOff() bool
Returns true if the
ColorScaleAttribwill ignore any color scales inherited from above, false otherwise. This is not the same thing as !has_scale(); aColorScaleAttribmay have the “off” flag set and also have another scale specified.
- static make(scale: LVecBase4) RenderAttrib
Constructs a new
ColorScaleAttribobject that indicates geometry should be scaled by the indicated factor.
- static makeDefault() RenderAttrib
Returns a
RenderAttribthat corresponds to whatever the standard default properties for render attributes of this type ought to be.
- static makeIdentity() RenderAttrib
Constructs an identity scale attrib.
- static makeOff() RenderAttrib
Constructs a new
ColorScaleAttribobject that ignores anyColorScaleAttribinherited from above. You may also specify an additional color scale to apply to geometry below (usingsetScale()).
- setScale(scale: LVecBase4) RenderAttrib
Returns a new
ColorScaleAttrib, just like this one, but with the scale changed to the indicated value.
