Class CloudComponent

java.lang.Object
gaiasky.scenegraph.component.NamedComponent
gaiasky.scenegraph.component.CloudComponent
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, IComponent

public class CloudComponent extends NamedComponent implements IObserver
  • Field Details

    • textureParams

      protected static final com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParams
      Default texture parameters
    • quality

      public int quality
    • size

      public float size
    • nc

      public NoiseComponent nc
    • mc

      public ModelComponent mc
    • localTransform

      public com.badlogic.gdx.math.Matrix4 localTransform
    • color

      public float[] color
      RGB color of generated clouds
    • diffuse

      public String diffuse
    • diffuseUnpacked

      public String diffuseUnpacked
    • diffuseCubemap

      public CubemapComponent diffuseCubemap
    • params

      public Map<String,Object> params
  • Constructor Details

    • CloudComponent

      public CloudComponent()
  • Method Details

    • initialize

      public void initialize(String name, boolean force)
    • 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

      public void update(Vector3b transform)
    • initMaterial

      public void initMaterial()
    • setGenerated

      public void setGenerated(boolean generated)
    • disposeTexture

      public void disposeTexture(com.badlogic.gdx.assets.AssetManager manager, Material material, String name, String nameUnpacked, int texAttributeIndex, com.badlogic.gdx.graphics.Texture tex)
    • 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

      public void removeAtmosphericScattering(Material mat)
    • setQuality

      public void setQuality(Long quality)
    • setSize

      public void setSize(Double size)
    • setMc

      public void setMc(ModelComponent mc)
    • setLocalTransform

      public void setLocalTransform(com.badlogic.gdx.math.Matrix4 localTransform)
    • setParams

      public void setParams(Map<String,Object> params)
    • setCloud

      public void setCloud(String diffuse)
    • setDiffuse

      public void setDiffuse(String diffuse)
    • setNoise

      public void setNoise(NoiseComponent noise)
    • setDiffuseCubemap

      public void setDiffuseCubemap(String diffuseCubemap)
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.
    • 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

      public void copyFrom(CloudComponent other)
    • print

      public void print(Logger.Log log)
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable