Class ColorAttribute

java.lang.Object
gaiasky.util.gdx.shader.attribute.Attribute
gaiasky.util.gdx.shader.attribute.ColorAttribute
All Implemented Interfaces:
Comparable<Attribute>
Direct Known Subclasses:
PBRColorAttribute

public class ColorAttribute extends Attribute
  • Field Details

    • DiffuseAlias

      public static final String DiffuseAlias
      See Also:
    • Diffuse

      public static final int Diffuse
    • SpecularAlias

      public static final String SpecularAlias
      See Also:
    • Specular

      public static final int Specular
    • AmbientAlias

      public static final String AmbientAlias
      See Also:
    • Ambient

      public static final int Ambient
    • EmissiveAlias

      public static final String EmissiveAlias
      See Also:
    • Emissive

      public static final int Emissive
    • MetallicAlias

      public static final String MetallicAlias
      See Also:
    • Metallic

      public static final int Metallic
    • RoughnessAlias

      public static final String RoughnessAlias
      See Also:
    • Roughness

      public static final int Roughness
    • AmbientLightAlias

      public static final String AmbientLightAlias
      See Also:
    • AmbientLight

      public static final int AmbientLight
    • FogAlias

      public static final String FogAlias
      See Also:
    • Fog

      public static final int Fog
    • DiffuseScatteringAlias

      public static final String DiffuseScatteringAlias
      See Also:
    • DiffuseScattering

      public static final int DiffuseScattering
    • color

      public final com.badlogic.gdx.graphics.Color color
  • Constructor Details

    • ColorAttribute

      public ColorAttribute(int index)
    • ColorAttribute

      public ColorAttribute(com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute other)
    • ColorAttribute

      public ColorAttribute(int index, com.badlogic.gdx.graphics.Color color)
    • ColorAttribute

      public ColorAttribute(int index, float r, float g, float b, float a)
    • ColorAttribute

      public ColorAttribute(int index, float l)
    • ColorAttribute

      public ColorAttribute(ColorAttribute copyFrom)
  • Method Details

    • createAmbient

      public static final ColorAttribute createAmbient(com.badlogic.gdx.graphics.Color color)
    • createAmbient

      public static final ColorAttribute createAmbient(float r, float g, float b, float a)
    • createDiffuse

      public static final ColorAttribute createDiffuse(com.badlogic.gdx.graphics.Color color)
    • createDiffuse

      public static final ColorAttribute createDiffuse(float r, float g, float b, float a)
    • createSpecular

      public static final ColorAttribute createSpecular(com.badlogic.gdx.graphics.Color color)
    • createSpecular

      public static final ColorAttribute createSpecular(float r, float g, float b, float a)
    • createMetallic

      public static final ColorAttribute createMetallic(com.badlogic.gdx.graphics.Color color)
    • createMetallic

      public static final ColorAttribute createMetallic(float r, float g, float b, float a)
    • createRoughness

      public static final ColorAttribute createRoughness(com.badlogic.gdx.graphics.Color color)
    • createRoughness

      public static final ColorAttribute createRoughness(float r, float g, float b, float a)
    • createEmissive

      public static final ColorAttribute createEmissive(com.badlogic.gdx.graphics.Color color)
    • createEmissive

      public static final ColorAttribute createEmissive(float r, float g, float b, float a)
    • createAmbientLight

      public static final ColorAttribute createAmbientLight(com.badlogic.gdx.graphics.Color color)
    • createAmbientLight

      public static final ColorAttribute createAmbientLight(float r, float g, float b, float a)
    • createFog

      public static final ColorAttribute createFog(com.badlogic.gdx.graphics.Color color)
    • createFog

      public static final ColorAttribute createFog(float r, float g, float b, float a)
    • copy

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

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

      public int compareTo(Attribute o)