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
FieldsModifier and TypeFieldDescriptionbooleanAdd also color even if texture is presentstatic StringGenerated height keywordfloat[][]com.badlogic.gdx.math.Vector2protected static PFMTextureLoader.PFMTextureParameterfloat[]floatbooleanbooleanprotected static com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameterDefault texture parametersprotected static com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameterDefault texture parameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisposeTextures(com.badlogic.gdx.assets.AssetManager manager)Disposes and unloads all currently loaded textures immediatelybooleanvoidvoidinitialize(com.badlogic.gdx.assets.AssetManager manager)com.badlogic.gdx.graphics.g3d.MaterialinitMaterial(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.MaterialinitMaterial(com.badlogic.gdx.assets.AssetManager manager, IntModelInstance instance, float[] cc, boolean culling)booleanisFinishedLoading(com.badlogic.gdx.assets.AssetManager manager)booleanvoidEvent notification call.voidvoidsetColoriftex(Boolean coloriftex)voidvoidvoidsetHeightScale(Double heightScale)voidvoidvoidsetReflection(double[] reflection)voidsetReflection(Double reflection)voidvoidsetRingnormal(String ringnormal)voidsetSpecular(Double specular)voidsetSpecular(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:IObserverEvent notification call. -
getTexturesString
-
toString
-