Class PBRColorAttribute
java.lang.Object
gaiasky.render.gdx.shader.attribute.Attribute
gaiasky.render.gdx.shader.attribute.ColorAttribute
gaiasky.render.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 ColorAttributecreateAmbient(float r, float g, float b, float a) static ColorAttributecreateAmbient(com.badlogic.gdx.graphics.Color color) static ColorAttributecreateAmbientLight(float r, float g, float b, float a) static ColorAttributecreateAmbientLight(com.badlogic.gdx.graphics.Color color) static ColorAttributecreateDiffuse(float r, float g, float b, float a) static ColorAttributecreateDiffuse(com.badlogic.gdx.graphics.Color color) static ColorAttributecreateEmissive(float r, float g, float b, float a) static ColorAttributecreateEmissive(com.badlogic.gdx.graphics.Color color) static ColorAttributecreateFog(float r, float g, float b, float a) static ColorAttributecreateFog(com.badlogic.gdx.graphics.Color color) static ColorAttributecreateMetallic(float r, float g, float b, float a) static ColorAttributecreateMetallic(com.badlogic.gdx.graphics.Color color) static ColorAttributecreateRoughness(float r, float g, float b, float a) static ColorAttributecreateRoughness(com.badlogic.gdx.graphics.Color color) static ColorAttributecreateSpecular(float r, float g, float b, float a) static 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
-