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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final String
static final int
static final String
final com.badlogic.gdx.graphics.Color
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
-
Constructor Summary
ConstructorDescriptionColorAttribute
(int index) ColorAttribute
(int index, float l) ColorAttribute
(int index, float r, float g, float b, float a) ColorAttribute
(int index, com.badlogic.gdx.graphics.Color color) ColorAttribute
(com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute other) ColorAttribute
(ColorAttribute copyFrom) -
Method Summary
Modifier and TypeMethodDescriptionint
copy()
static final ColorAttribute
createAmbient
(float r, float g, float b, float a) static final ColorAttribute
createAmbient
(com.badlogic.gdx.graphics.Color color) static final ColorAttribute
createAmbientLight
(float r, float g, float b, float a) static final ColorAttribute
createAmbientLight
(com.badlogic.gdx.graphics.Color color) static final ColorAttribute
createDiffuse
(float r, float g, float b, float a) static final ColorAttribute
createDiffuse
(com.badlogic.gdx.graphics.Color color) static final ColorAttribute
createEmissive
(float r, float g, float b, float a) static final ColorAttribute
createEmissive
(com.badlogic.gdx.graphics.Color color) static final ColorAttribute
createFog
(float r, float g, float b, float a) static final ColorAttribute
createFog
(com.badlogic.gdx.graphics.Color color) static final ColorAttribute
createMetallic
(float r, float g, float b, float a) static final ColorAttribute
createMetallic
(com.badlogic.gdx.graphics.Color color) static final ColorAttribute
createRoughness
(float r, float g, float b, float a) static final ColorAttribute
createRoughness
(com.badlogic.gdx.graphics.Color color) static final ColorAttribute
createSpecular
(float r, float g, float b, float a) static final ColorAttribute
createSpecular
(com.badlogic.gdx.graphics.Color color) int
hashCode()
Methods inherited from class gaiasky.util.gdx.shader.attribute.Attribute
equals, equals, getAttributeAlias, getAttributeIndex, getAttributeIndex, getAttributeType, getIndex, getNumAttributes, getTypes, has, register, toString
-
Field Details
-
DiffuseAlias
- See Also:
-
Diffuse
public static final int Diffuse -
SpecularAlias
- See Also:
-
Specular
public static final int Specular -
AmbientAlias
- See Also:
-
Ambient
public static final int Ambient -
EmissiveAlias
- See Also:
-
Emissive
public static final int Emissive -
MetallicAlias
- See Also:
-
Metallic
public static final int Metallic -
RoughnessAlias
- See Also:
-
Roughness
public static final int Roughness -
AmbientLightAlias
- See Also:
-
AmbientLight
public static final int AmbientLight -
FogAlias
- See Also:
-
Fog
public static final int Fog -
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
-
-
Method Details
-
createAmbient
-
createAmbient
-
createDiffuse
-
createDiffuse
-
createSpecular
-
createSpecular
-
createMetallic
-
createMetallic
-
createRoughness
-
createRoughness
-
createEmissive
-
createEmissive
-
createAmbientLight
-
createAmbientLight
-
createFog
-
createFog
-
copy
-
hashCode
public int hashCode() -
compareTo
-