Class TextureAttribute

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

public class TextureAttribute 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
    • BumpAlias

      public static final String BumpAlias
      See Also:
    • Bump

      public static final int Bump
    • NormalAlias

      public static final String NormalAlias
      See Also:
    • Normal

      public static final int Normal
    • 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
    • AOAlias

      public static final String AOAlias
      See Also:
    • AO

      public static final int AO
    • RoughnessAlias

      public static final String RoughnessAlias
      See Also:
    • Roughness

      public static final int Roughness
    • HeightAlias

      public static final String HeightAlias
      See Also:
    • Height

      public static final int Height
    • SvtCacheAlias

      public static final String SvtCacheAlias
      See Also:
    • SvtCache

      public static final int SvtCache
    • SvtIndirectionDiffuseAlias

      public static final String SvtIndirectionDiffuseAlias
      See Also:
    • SvtIndirectionDiffuse

      public static final int SvtIndirectionDiffuse
    • SvtIndirectionHeightAlias

      public static final String SvtIndirectionHeightAlias
      See Also:
    • SvtIndirectionHeight

      public static final int SvtIndirectionHeight
    • SvtIndirectionNormalAlias

      public static final String SvtIndirectionNormalAlias
      See Also:
    • SvtIndirectionNormal

      public static final int SvtIndirectionNormal
    • SvtIndirectionSpecularAlias

      public static final String SvtIndirectionSpecularAlias
      See Also:
    • SvtIndirectionSpecular

      public static final int SvtIndirectionSpecular
    • SvtIndirectionRoughnessAlias

      public static final String SvtIndirectionRoughnessAlias
      See Also:
    • SvtIndirectionRoughness

      public static final int SvtIndirectionRoughness
    • SvtIndirectionEmissiveAlias

      public static final String SvtIndirectionEmissiveAlias
      See Also:
    • SvtIndirectionEmissive

      public static final int SvtIndirectionEmissive
    • SvtIndirectionMetallicAlias

      public static final String SvtIndirectionMetallicAlias
      See Also:
    • SvtIndirectionMetallic

      public static final int SvtIndirectionMetallic
    • textureDescription

      public final com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<com.badlogic.gdx.graphics.Texture> textureDescription
    • offsetU

      public float offsetU
    • offsetV

      public float offsetV
    • scaleU

      public float scaleU
    • scaleV

      public float scaleV
    • uvIndex

      public int uvIndex
      The index of the texture coordinate vertex attribute to use for this TextureAttribute. Whether this value is used, depends on the shader and Attribute.type value. For basic (model specific) types (e.g. Diffuse, Normal, etc.), this value is usually ignored and the first texture coordinate vertex attribute is used.
  • Constructor Details

    • TextureAttribute

      public TextureAttribute(int index)
    • TextureAttribute

      public TextureAttribute(int index, com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<T> textureDescription)
    • TextureAttribute

      public TextureAttribute(int index, com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV, int uvIndex)
    • TextureAttribute

      public TextureAttribute(int index, com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV)
    • TextureAttribute

      public TextureAttribute(int index, com.badlogic.gdx.graphics.Texture texture)
    • TextureAttribute

      public TextureAttribute(int index, com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • TextureAttribute

      public TextureAttribute(TextureAttribute copyFrom)
  • Method Details

    • createDiffuse

      public static TextureAttribute createDiffuse(com.badlogic.gdx.graphics.Texture texture)
    • createDiffuse

      public static TextureAttribute createDiffuse(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • createSpecular

      public static TextureAttribute createSpecular(com.badlogic.gdx.graphics.Texture texture)
    • createSpecular

      public static TextureAttribute createSpecular(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • createNormal

      public static TextureAttribute createNormal(com.badlogic.gdx.graphics.Texture texture)
    • createNormal

      public static TextureAttribute createNormal(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • createBump

      public static TextureAttribute createBump(com.badlogic.gdx.graphics.Texture texture)
    • createBump

      public static TextureAttribute createBump(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • createAmbient

      public static TextureAttribute createAmbient(com.badlogic.gdx.graphics.Texture texture)
    • createAmbient

      public static TextureAttribute createAmbient(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • createEmissive

      public static TextureAttribute createEmissive(com.badlogic.gdx.graphics.Texture texture)
    • createEmissive

      public static TextureAttribute createEmissive(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • createMetallic

      public static TextureAttribute createMetallic(com.badlogic.gdx.graphics.Texture texture)
    • createReflection

      public static TextureAttribute createReflection(com.badlogic.gdx.graphics.Texture texture)
    • createMetallic

      public static TextureAttribute createMetallic(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • createReflection

      public static TextureAttribute createReflection(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • createHeight

      public static TextureAttribute createHeight(com.badlogic.gdx.graphics.Texture texture)
    • createHeight

      public static TextureAttribute createHeight(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • set

      public void set(com.badlogic.gdx.graphics.g2d.TextureRegion region)
    • 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)