Class BlendingAttribute
java.lang.Object
gaiasky.util.gdx.shader.attribute.Attribute
gaiasky.util.gdx.shader.attribute.BlendingAttribute
- All Implemented Interfaces:
Comparable<Attribute>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
boolean
Whether this material should be considered blended (default: true).int
Specifies how the (existing) red, green, blue, and alpha destination blending factors are computed (default: GL_ONE_MINUS_SRC_ALPHA)float
The opacity used as source alpha value, ranging from 0 (fully transparent) to 1 (fully opaque), (default: 1).int
Specifies how the (incoming) red, green, blue, and alpha source blending factors are computed (default: GL_SRC_ALPHA)static final int
-
Constructor Summary
ConstructorDescriptionBlendingAttribute
(boolean blended, float opacity) BlendingAttribute
(boolean blended, int sourceFunc, int destFunc, float opacity) BlendingAttribute
(float opacity) BlendingAttribute
(int sourceFunc, int destFunc) BlendingAttribute
(int sourceFunc, int destFunc, float opacity) BlendingAttribute
(BlendingAttribute copyFrom) -
Method Summary
Methods inherited from class gaiasky.util.gdx.shader.attribute.Attribute
equals, equals, getAttributeAlias, getAttributeIndex, getAttributeIndex, getAttributeType, getNumAttributes, getTypes, has, register, toString
-
Field Details
-
Alias
- See Also:
-
Type
public static final int Type -
blended
public boolean blendedWhether this material should be considered blended (default: true). This is used for sorting (back to front instead of front to back). -
sourceFunction
public int sourceFunctionSpecifies how the (incoming) red, green, blue, and alpha source blending factors are computed (default: GL_SRC_ALPHA) -
destFunction
public int destFunctionSpecifies how the (existing) red, green, blue, and alpha destination blending factors are computed (default: GL_ONE_MINUS_SRC_ALPHA) -
opacity
public float opacityThe opacity used as source alpha value, ranging from 0 (fully transparent) to 1 (fully opaque), (default: 1).
-
-
Constructor Details
-
BlendingAttribute
public BlendingAttribute() -
BlendingAttribute
public BlendingAttribute(boolean blended, int sourceFunc, int destFunc, float opacity) -
BlendingAttribute
public BlendingAttribute(int sourceFunc, int destFunc, float opacity) -
BlendingAttribute
public BlendingAttribute(int sourceFunc, int destFunc) -
BlendingAttribute
public BlendingAttribute(boolean blended, float opacity) -
BlendingAttribute
public BlendingAttribute(float opacity) -
BlendingAttribute
-
-
Method Details