Class TextureAttribute
java.lang.Object
gaiasky.util.gdx.shader.attribute.Attribute
gaiasky.util.gdx.shader.attribute.TextureAttribute
- All Implemented Interfaces:
Comparable<Attribute>
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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
static final int
static final String
float
float
static final int
static final String
float
float
static final int
static final String
final com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<com.badlogic.gdx.graphics.Texture>
int
The index of the texture coordinate vertex attribute to use for this TextureAttribute. -
Constructor Summary
ConstructorDescriptionTextureAttribute
(int index) TextureAttribute
(int index, com.badlogic.gdx.graphics.g2d.TextureRegion region) TextureAttribute
(int index, com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<T> textureDescription) TextureAttribute
(int index, com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV) TextureAttribute
(int index, com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV, int uvIndex) TextureAttribute
(int index, com.badlogic.gdx.graphics.Texture texture) TextureAttribute
(TextureAttribute copyFrom) -
Method Summary
Modifier and TypeMethodDescriptionint
copy()
static TextureAttribute
createAmbient
(com.badlogic.gdx.graphics.g2d.TextureRegion region) static TextureAttribute
createAmbient
(com.badlogic.gdx.graphics.Texture texture) static TextureAttribute
createBump
(com.badlogic.gdx.graphics.g2d.TextureRegion region) static TextureAttribute
createBump
(com.badlogic.gdx.graphics.Texture texture) static TextureAttribute
createDiffuse
(com.badlogic.gdx.graphics.g2d.TextureRegion region) static TextureAttribute
createDiffuse
(com.badlogic.gdx.graphics.Texture texture) static TextureAttribute
createEmissive
(com.badlogic.gdx.graphics.g2d.TextureRegion region) static TextureAttribute
createEmissive
(com.badlogic.gdx.graphics.Texture texture) static TextureAttribute
createHeight
(com.badlogic.gdx.graphics.g2d.TextureRegion region) static TextureAttribute
createHeight
(com.badlogic.gdx.graphics.Texture texture) static TextureAttribute
createMetallic
(com.badlogic.gdx.graphics.g2d.TextureRegion region) static TextureAttribute
createMetallic
(com.badlogic.gdx.graphics.Texture texture) static TextureAttribute
createNormal
(com.badlogic.gdx.graphics.g2d.TextureRegion region) static TextureAttribute
createNormal
(com.badlogic.gdx.graphics.Texture texture) static TextureAttribute
createReflection
(com.badlogic.gdx.graphics.g2d.TextureRegion region) static TextureAttribute
createReflection
(com.badlogic.gdx.graphics.Texture texture) static TextureAttribute
createSpecular
(com.badlogic.gdx.graphics.g2d.TextureRegion region) static TextureAttribute
createSpecular
(com.badlogic.gdx.graphics.Texture texture) int
hashCode()
void
set
(com.badlogic.gdx.graphics.g2d.TextureRegion region) Methods inherited from class gaiasky.util.gdx.shader.attribute.Attribute
equals, equals, getAttributeAlias, getAttributeIndex, getAttributeIndex, getAttributeType, 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 -
BumpAlias
- See Also:
-
Bump
public static final int Bump -
NormalAlias
- See Also:
-
Normal
public static final int Normal -
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 -
AOAlias
- See Also:
-
AO
public static final int AO -
RoughnessAlias
- See Also:
-
Roughness
public static final int Roughness -
HeightAlias
- See Also:
-
Height
public static final int Height -
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 uvIndexThe index of the texture coordinate vertex attribute to use for this TextureAttribute. Whether this value is used, depends on the shader andAttribute.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
-
-
Method Details
-
createDiffuse
-
createDiffuse
-
createSpecular
-
createSpecular
-
createNormal
-
createNormal
-
createBump
-
createBump
-
createAmbient
-
createAmbient
-
createEmissive
-
createEmissive
-
createMetallic
-
createReflection
-
createMetallic
-
createReflection
-
createHeight
-
createHeight
-
set
public void set(com.badlogic.gdx.graphics.g2d.TextureRegion region) -
copy
-
hashCode
public int hashCode() -
compareTo
-