Package gaiasky.scenegraph.component
Class MaterialComponent
java.lang.Object
gaiasky.scenegraph.component.MaterialComponent
- All Implemented Interfaces:
IObserver
A basic component that contains the info on a material
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Add also color even if texture is presentstatic String
Generated height keywordfloat[][]
com.badlogic.gdx.math.Vector2
protected static PFMTextureLoader.PFMTextureParameter
float[]
float
boolean
boolean
protected static com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter
Default texture parametersprotected static com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter
Default texture parameters -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disposeTextures(com.badlogic.gdx.assets.AssetManager manager)
Disposes and unloads all currently loaded textures immediatelyboolean
void
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
void
Event notification call.void
void
setColoriftex(Boolean coloriftex)
void
void
void
setHeightScale(Double heightScale)
void
void
void
setReflection(double[] reflection)
void
setReflection(Double reflection)
void
void
setRingnormal(String ringnormal)
void
setSpecular(Double specular)
void
setSpecular(String specular)
toString()
-
Field Details
-
GEN_HEIGHT_KEYWORD
Generated height keyword- See Also:
- Constant Field Values
-
textureParamsMipMap
protected static final com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParamsMipMapDefault texture parameters -
textureParams
protected static final com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParamsDefault texture parameters -
pfmTextureParams
-
texInitialised
public boolean texInitialised -
texLoading
public boolean texLoading -
base
-
specular
-
normal
-
night
-
ring
-
height
-
ringnormal
-
baseUnpacked
-
specularUnpacked
-
normalUnpacked
-
nightUnpacked
-
ringUnpacked
-
heightUnpacked
-
ringnormalUnpacked
-
specularIndex
public float specularIndex -
reflection
public float[] reflection -
heightScale
-
heightSize
public com.badlogic.gdx.math.Vector2 heightSize -
heightMap
public float[][] heightMap -
ec
-
coloriftex
public boolean coloriftexAdd also color even if texture is present
-
-
Constructor Details
-
MaterialComponent
public MaterialComponent()
-
-
Method Details
-
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
-
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
-
setSpecular
-
setSpecular
-
setNormal
-
setNight
-
setRing
-
setRingnormal
-
setHeight
-
setHeightScale
-
setColoriftex
-
setElevation
-
setReflection
-
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
Description copied from interface:IObserver
Event notification call. -
getTexturesString
-
toString
-