Class TextureAttribute
java.lang.Object
gaiasky.util.gdx.shader.attribute.Attribute
gaiasky.util.gdx.shader.attribute.TextureAttribute
- All Implemented Interfaces:
Comparable<Attribute>
- Direct Known Subclasses:
PBRTextureAttribute
-
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
static final int
static final String
float
float
static final int
static final String
float
float
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
static final int
static final String
static final int
static final String
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
(com.badlogic.gdx.graphics.g3d.attributes.TextureAttribute other) TextureAttribute
(TextureAttribute copyFrom) -
Method Summary
Modifier and TypeMethodDescriptionint
protected static int
convertType
(long oldType) 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, getIndex, 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 -
OcclusionMetallicRoughnessAlias
- See Also:
-
OcclusionMetallicRoughness
public static final int OcclusionMetallicRoughness -
HeightAlias
- See Also:
-
Height
public static final int Height -
SvtCacheAlias
- See Also:
-
SvtCache
public static final int SvtCache -
SvtIndirectionDiffuseAlias
- See Also:
-
SvtIndirectionDiffuse
public static final int SvtIndirectionDiffuse -
SvtIndirectionHeightAlias
- See Also:
-
SvtIndirectionHeight
public static final int SvtIndirectionHeight -
SvtIndirectionNormalAlias
- See Also:
-
SvtIndirectionNormal
public static final int SvtIndirectionNormal -
SvtIndirectionSpecularAlias
- See Also:
-
SvtIndirectionSpecular
public static final int SvtIndirectionSpecular -
SvtIndirectionRoughnessAlias
- See Also:
-
SvtIndirectionRoughness
public static final int SvtIndirectionRoughness -
SvtIndirectionEmissiveAlias
- See Also:
-
SvtIndirectionEmissive
public static final int SvtIndirectionEmissive -
SvtIndirectionMetallicAlias
- See Also:
-
SvtIndirectionMetallic
public static final int SvtIndirectionMetallic -
SvtIndirectionAmbientOcclusionAlias
- See Also:
-
SvtIndirectionAmbientOcclusion
public static final int SvtIndirectionAmbientOcclusion -
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(com.badlogic.gdx.graphics.g3d.attributes.TextureAttribute other) -
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
-
convertType
protected static int convertType(long oldType) -
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
-