Class BlendingAttribute

java.lang.Object
gaiasky.util.gdx.shader.attribute.Attribute
gaiasky.util.gdx.shader.attribute.BlendingAttribute
All Implemented Interfaces:
Comparable<Attribute>

public class BlendingAttribute extends Attribute
  • Field Details Link icon

    • Alias Link icon

      public static final String Alias
      See Also:
    • Type Link icon

      public static final int Type
    • blended Link icon

      public boolean blended
      Whether this material should be considered blended (default: true). This is used for sorting (back to front instead of front to back).
    • sourceFunction Link icon

      public int sourceFunction
      Specifies how the (incoming) red, green, blue, and alpha source blending factors are computed (default: GL_SRC_ALPHA)
    • destFunction Link icon

      public int destFunction
      Specifies how the (existing) red, green, blue, and alpha destination blending factors are computed (default: GL_ONE_MINUS_SRC_ALPHA)
    • opacity Link icon

      public float opacity
      The opacity used as source alpha value, ranging from 0 (fully transparent) to 1 (fully opaque), (default: 1).
  • Constructor Details Link icon

    • BlendingAttribute Link icon

      public BlendingAttribute()
    • BlendingAttribute Link icon

      public BlendingAttribute(com.badlogic.gdx.graphics.g3d.attributes.BlendingAttribute other)
    • BlendingAttribute Link icon

      public BlendingAttribute(boolean blended, int sourceFunc, int destFunc, float opacity)
    • BlendingAttribute Link icon

      public BlendingAttribute(int sourceFunc, int destFunc, float opacity)
    • BlendingAttribute Link icon

      public BlendingAttribute(int sourceFunc, int destFunc)
    • BlendingAttribute Link icon

      public BlendingAttribute(boolean blended, float opacity)
    • BlendingAttribute Link icon

      public BlendingAttribute(float opacity)
    • BlendingAttribute Link icon

      public BlendingAttribute(BlendingAttribute copyFrom)
  • Method Details Link icon

    • is Link icon

      public static final boolean is(int index)
    • copy Link icon

      public BlendingAttribute copy()
      Specified by:
      copy in class Attribute
      Returns:
      An exact copy of this attribute
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Attribute
    • compareTo Link icon

      public int compareTo(Attribute o)