Class PBRColorAttribute
java.lang.Object
gaiasky.util.gdx.shader.attribute.Attribute
gaiasky.util.gdx.shader.attribute.ColorAttribute
gaiasky.util.gdx.model.gltf.scene3d.attributes.PBRColorAttribute
- All Implemented Interfaces:
Comparable<Attribute>
-
Field Summary
FieldsFields inherited from class ColorAttribute
Ambient, AmbientAlias, AmbientLight, AmbientLightAlias, color, Diffuse, DiffuseAlias, DiffuseScattering, DiffuseScatteringAlias, Emissive, EmissiveAlias, Fog, FogAlias, Metallic, MetallicAlias, Roughness, RoughnessAlias, Specular, SpecularAliasModifier and TypeFieldDescriptionstatic final intstatic final Stringstatic final intstatic final Stringfinal com.badlogic.gdx.graphics.Colorstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()static PBRColorAttributecreateBaseColorFactor(com.badlogic.gdx.graphics.Color color) Methods inherited from class ColorAttribute
compareTo, createAmbient, createAmbient, createAmbientLight, createAmbientLight, createDiffuse, createDiffuse, createEmissive, createEmissive, createFog, createFog, createMetallic, createMetallic, createRoughness, createRoughness, createSpecular, createSpecular, hashCodeModifier and TypeMethodDescriptionintstatic final ColorAttributecreateAmbient(float r, float g, float b, float a) static final ColorAttributecreateAmbient(com.badlogic.gdx.graphics.Color color) static final ColorAttributecreateAmbientLight(float r, float g, float b, float a) static final ColorAttributecreateAmbientLight(com.badlogic.gdx.graphics.Color color) static final ColorAttributecreateDiffuse(float r, float g, float b, float a) static final ColorAttributecreateDiffuse(com.badlogic.gdx.graphics.Color color) static final ColorAttributecreateEmissive(float r, float g, float b, float a) static final ColorAttributecreateEmissive(com.badlogic.gdx.graphics.Color color) static final ColorAttributecreateFog(float r, float g, float b, float a) static final ColorAttributecreateFog(com.badlogic.gdx.graphics.Color color) static final ColorAttributecreateMetallic(float r, float g, float b, float a) static final ColorAttributecreateMetallic(com.badlogic.gdx.graphics.Color color) static final ColorAttributecreateRoughness(float r, float g, float b, float a) static final ColorAttributecreateRoughness(com.badlogic.gdx.graphics.Color color) static final ColorAttributecreateSpecular(float r, float g, float b, float a) static final ColorAttributecreateSpecular(com.badlogic.gdx.graphics.Color color) inthashCode()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
-
BaseColorFactorAlias
- See Also:
-
BaseColorFactor
public static final int BaseColorFactor
-
-
Constructor Details
-
PBRColorAttribute
public PBRColorAttribute(int index, com.badlogic.gdx.graphics.Color color)
-
-
Method Details
-
createBaseColorFactor
-
copy
- Overrides:
copyin classColorAttribute- Returns:
- An exact copy of this attribute
-