Class TextureAttribute

  • All Implemented Interfaces:
    java.lang.Comparable<Attribute>

    public class TextureAttribute
    extends Attribute
    • Field Detail

      • Diffuse

        public static final long Diffuse
      • Specular

        public static final long Specular
      • Bump

        public static final long Bump
      • Normal

        public static final long Normal
      • Ambient

        public static final long Ambient
      • Emissive

        public static final long Emissive
      • Reflection

        public static final long Reflection
      • Mask

        protected static long Mask
      • 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 Detail

      • TextureAttribute

        public TextureAttribute​(long type)
      • TextureAttribute

        public TextureAttribute​(long type,
                                TextureDescriptor<T> textureDescription)
      • TextureAttribute

        public TextureAttribute​(long type,
                                TextureDescriptor<T> textureDescription,
                                float offsetU,
                                float offsetV,
                                float scaleU,
                                float scaleV,
                                int uvIndex)
      • TextureAttribute

        public TextureAttribute​(long type,
                                TextureDescriptor<T> textureDescription,
                                float offsetU,
                                float offsetV,
                                float scaleU,
                                float scaleV)
      • TextureAttribute

        public TextureAttribute​(long type,
                                Texture texture)
      • TextureAttribute

        public TextureAttribute​(long type,
                                TextureRegion region)