Package gaiasky.scenegraph.component
Class MaterialComponent
- java.lang.Object
-
- gaiasky.scenegraph.component.MaterialComponent
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
base
java.lang.String
baseUnpacked
boolean
coloriftex
Add also color even if texture is presentElevationComponent
ec
static java.lang.String
GEN_HEIGHT_KEYWORD
Generated height keywordjava.lang.String
height
float[][]
heightMap
java.lang.Float
heightScale
com.badlogic.gdx.math.Vector2
heightSize
java.lang.String
heightUnpacked
java.lang.String
night
java.lang.String
nightUnpacked
java.lang.String
normal
java.lang.String
normalUnpacked
protected static PFMTextureLoader.PFMTextureParameter
pfmTextureParams
float[]
reflection
java.lang.String
ring
java.lang.String
ringnormal
java.lang.String
ringnormalUnpacked
java.lang.String
ringUnpacked
java.lang.String
specular
float
specularIndex
java.lang.String
specularUnpacked
boolean
texInitialised
boolean
texLoading
protected static com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter
textureParams
Default texture parametersprotected static com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter
textureParamsMipMap
Default texture parameters
-
Constructor Summary
Constructors Constructor Description MaterialComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disposeTextures(com.badlogic.gdx.assets.AssetManager manager)
Disposes and unloads all currently loaded textures immediatelyjava.lang.String
getTexturesString()
boolean
hasHeight()
void
initialize()
void
initialize(com.badlogic.gdx.assets.AssetManager manager)
com.badlogic.gdx.graphics.g3d.Material
initMaterial(com.badlogic.gdx.assets.AssetManager manager, com.badlogic.gdx.graphics.g3d.Material mat, com.badlogic.gdx.graphics.g3d.Material ring, float[] cc, boolean culling)
com.badlogic.gdx.graphics.g3d.Material
initMaterial(com.badlogic.gdx.assets.AssetManager manager, IntModelInstance instance, float[] cc, boolean culling)
boolean
isFinishedLoading(com.badlogic.gdx.assets.AssetManager manager)
boolean
isFL(java.lang.String tex, com.badlogic.gdx.assets.AssetManager manager)
void
notify(Events event, java.lang.Object... data)
void
setBase(java.lang.String base)
void
setColoriftex(java.lang.Boolean coloriftex)
void
setElevation(ElevationComponent ec)
void
setHeight(java.lang.String height)
void
setHeightScale(java.lang.Double heightScale)
void
setNight(java.lang.String night)
void
setNormal(java.lang.String normal)
void
setReflection(double[] reflection)
void
setReflection(java.lang.Double reflection)
void
setRing(java.lang.String ring)
void
setRingnormal(java.lang.String ringnormal)
void
setSpecular(java.lang.Double specular)
void
setSpecular(java.lang.String specular)
-
-
-
Field Detail
-
GEN_HEIGHT_KEYWORD
public static final java.lang.String GEN_HEIGHT_KEYWORD
Generated height keyword- See Also:
- Constant Field Values
-
textureParamsMipMap
protected static final com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParamsMipMap
Default texture parameters
-
textureParams
protected static final com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParams
Default texture parameters
-
pfmTextureParams
protected static final PFMTextureLoader.PFMTextureParameter pfmTextureParams
-
texInitialised
public boolean texInitialised
-
texLoading
public boolean texLoading
-
base
public java.lang.String base
-
specular
public java.lang.String specular
-
normal
public java.lang.String normal
-
night
public java.lang.String night
-
ring
public java.lang.String ring
-
height
public java.lang.String height
-
ringnormal
public java.lang.String ringnormal
-
baseUnpacked
public java.lang.String baseUnpacked
-
specularUnpacked
public java.lang.String specularUnpacked
-
normalUnpacked
public java.lang.String normalUnpacked
-
nightUnpacked
public java.lang.String nightUnpacked
-
ringUnpacked
public java.lang.String ringUnpacked
-
heightUnpacked
public java.lang.String heightUnpacked
-
ringnormalUnpacked
public java.lang.String ringnormalUnpacked
-
specularIndex
public float specularIndex
-
reflection
public float[] reflection
-
heightScale
public java.lang.Float heightScale
-
heightSize
public com.badlogic.gdx.math.Vector2 heightSize
-
heightMap
public float[][] heightMap
-
ec
public ElevationComponent ec
-
coloriftex
public boolean coloriftex
Add also color even if texture is present
-
-
Method Detail
-
initialize
public void initialize(com.badlogic.gdx.assets.AssetManager manager)
-
initialize
public void initialize()
-
isFinishedLoading
public boolean isFinishedLoading(com.badlogic.gdx.assets.AssetManager manager)
-
isFL
public boolean isFL(java.lang.String tex, com.badlogic.gdx.assets.AssetManager manager)
-
initMaterial
public com.badlogic.gdx.graphics.g3d.Material initMaterial(com.badlogic.gdx.assets.AssetManager manager, IntModelInstance instance, float[] cc, boolean culling)
-
initMaterial
public com.badlogic.gdx.graphics.g3d.Material initMaterial(com.badlogic.gdx.assets.AssetManager manager, com.badlogic.gdx.graphics.g3d.Material mat, com.badlogic.gdx.graphics.g3d.Material ring, float[] cc, boolean culling)
-
setBase
public void setBase(java.lang.String base)
-
setSpecular
public void setSpecular(java.lang.String specular)
-
setSpecular
public void setSpecular(java.lang.Double specular)
-
setNormal
public void setNormal(java.lang.String normal)
-
setNight
public void setNight(java.lang.String night)
-
setRing
public void setRing(java.lang.String ring)
-
setRingnormal
public void setRingnormal(java.lang.String ringnormal)
-
setHeight
public void setHeight(java.lang.String height)
-
setHeightScale
public void setHeightScale(java.lang.Double heightScale)
-
setColoriftex
public void setColoriftex(java.lang.Boolean coloriftex)
-
setElevation
public void setElevation(ElevationComponent ec)
-
setReflection
public void setReflection(java.lang.Double reflection)
-
setReflection
public void setReflection(double[] reflection)
-
hasHeight
public boolean hasHeight()
-
disposeTextures
public void disposeTextures(com.badlogic.gdx.assets.AssetManager manager)
Disposes and unloads all currently loaded textures immediately- Parameters:
manager
- The asset manager
-
notify
public void notify(Events event, java.lang.Object... data)
-
getTexturesString
public java.lang.String getTexturesString()
-
-