Package gaiasky.scenegraph.component
Class CloudComponent
java.lang.Object
gaiasky.scenegraph.component.NamedComponent
gaiasky.scenegraph.component.CloudComponent
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IObserver,IComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat[]RGB color of generated cloudscom.badlogic.gdx.math.Matrix4intfloatprotected static final com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameterDefault texture parametersFields inherited from class gaiasky.scenegraph.component.NamedComponent
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(CloudComponent other) voiddispose()voiddisposeCubemap(com.badlogic.gdx.assets.AssetManager manager, Material mat, int attributeIndex, CubemapComponent cubemap) voiddisposeTexture(com.badlogic.gdx.assets.AssetManager manager, Material material, String name, String nameUnpacked, int texAttributeIndex, com.badlogic.gdx.graphics.Texture tex) voiddisposeTextures(com.badlogic.gdx.assets.AssetManager manager) Disposes and unloads all currently loaded textures immediatelyvoiddoneLoading(com.badlogic.gdx.assets.AssetManager manager) voidinitialize(String name, boolean force) voidbooleanisFinishedLoading(com.badlogic.gdx.assets.AssetManager manager) voidEvent notification call.voidprint(Logger.Log log) voidrandomizeAll(long seed, double size) Creates a random cloud component using the given seed and the base body size.voidvoidvoidsetDiffuse(String diffuse) voidsetDiffuseCubemap(String diffuseCubemap) voidsetGenerated(boolean generated) voidsetLocalTransform(com.badlogic.gdx.math.Matrix4 localTransform) voidsetMc(ModelComponent mc) voidsetNoise(NoiseComponent noise) voidvoidsetQuality(Long quality) voidvoidtouch()voidMethods inherited from class gaiasky.scenegraph.component.NamedComponent
createModelParameters, gaussian, gaussian, gaussian, initialize
-
Field Details
-
textureParams
protected static final com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParamsDefault texture parameters -
quality
public int quality -
size
public float size -
nc
-
mc
-
localTransform
public com.badlogic.gdx.math.Matrix4 localTransform -
color
public float[] colorRGB color of generated clouds -
diffuse
-
diffuseUnpacked
-
diffuseCubemap
-
params
-
-
Constructor Details
-
CloudComponent
public CloudComponent()
-
-
Method Details
-
initialize
-
isFinishedLoading
public boolean isFinishedLoading(com.badlogic.gdx.assets.AssetManager manager) -
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager) -
touch
public void touch() -
update
-
initMaterial
public void initMaterial() -
setGenerated
public void setGenerated(boolean generated) -
disposeTexture
-
disposeCubemap
public void disposeCubemap(com.badlogic.gdx.assets.AssetManager manager, Material mat, int attributeIndex, CubemapComponent cubemap) -
disposeTextures
public void disposeTextures(com.badlogic.gdx.assets.AssetManager manager) Disposes and unloads all currently loaded textures immediately- Parameters:
manager- The asset manager
-
removeAtmosphericScattering
-
setQuality
-
setSize
-
setMc
-
setLocalTransform
public void setLocalTransform(com.badlogic.gdx.math.Matrix4 localTransform) -
setParams
-
setCloud
-
setDiffuse
-
setNoise
-
setDiffuseCubemap
-
notify
Description copied from interface:IObserverEvent notification call. -
randomizeAll
public void randomizeAll(long seed, double size) Creates a random cloud component using the given seed and the base body size. Generates a random cloud texture.- Parameters:
seed- The seed to use.size- The body size in internal units.
-
copyFrom
-
print
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-