Class BlendingAttribute
java.lang.Object
gaiasky.render.gdx.shader.attribute.Attribute
gaiasky.render.gdx.shader.attribute.BlendingAttribute
- All Implemented Interfaces:
Comparable<Attribute>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringbooleanWhether this material should be considered blended (default: true).intSpecifies how the (existing) red, green, blue, and alpha destination blending factors are computed (default: GL_ONE_MINUS_SRC_ALPHA)floatIntrinsic opacity of the material.floatThe opacity used as source alpha value, ranging from 0 (fully transparent) to 1 (fully opaque), (default: 1).intSpecifies how the (incoming) red, green, blue, and alpha source blending factors are computed (default: GL_SRC_ALPHA)static final int -
Constructor Summary
ConstructorsConstructorDescriptionBlendingAttribute(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(com.badlogic.gdx.graphics.g3d.attributes.BlendingAttribute other) BlendingAttribute(BlendingAttribute copyFrom) -
Method Summary
Methods inherited from class Attribute
equals, equals, getAttributeAlias, getAttributeIndex, getAttributeIndex, getAttributeType, getIndex, getNumAttributes, getTypes, has, register, toStringModifier and TypeMethodDescriptionprotected booleanbooleanstatic StringgetAttributeAlias(Bits type) static intgetAttributeIndex(Bits type) static intgetAttributeIndex(String alias) static BitsgetAttributeType(String alias) protected static intgetIndex(long oldType) static intstatic com.badlogic.gdx.utils.Array<String> getTypes()booleanhas(int index) protected static intCall this method to register a custom attribute type, see the wiki for an example.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). This contains the final opacity. -
intrinsicOpacity
public float intrinsicOpacityIntrinsic opacity of the material.
-
-
Constructor Details
-
BlendingAttribute
public BlendingAttribute() -
BlendingAttribute
public BlendingAttribute(com.badlogic.gdx.graphics.g3d.attributes.BlendingAttribute other) -
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