Class CloudComponent

java.lang.Object
gaiasky.scene.record.NamedComponent
gaiasky.scene.record.CloudComponent
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IUpdatable<CloudComponent>, IComponent, IMaterialProvider

public class CloudComponent extends NamedComponent implements IMaterialProvider, IUpdatable<CloudComponent>
  • Field Details

  • 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(Model model)
    • update

      public void update(Vector3b transform)
    • updateCullFace

      public void updateCullFace(double distToCamera)
      Updates the cull face strategy depending on the distance to the camera.
      Parameters:
      distToCamera - The distance to the camera in internal units.
    • initMaterial

      public void initMaterial(Model model)
    • 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)
    • setDiffuseSVT

      public void setDiffuseSVT(VirtualTextureComponent virtualTextureComponent)
    • setDiffuseSVT

      public void setDiffuseSVT(Map<Object,Object> virtualTexture)
    • getMaterial

      public Material getMaterial()
      Specified by:
      getMaterial in interface IMaterialProvider
    • hasSVT

      public boolean hasSVT()
    • 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
    • updateWith

      public void updateWith(CloudComponent object)
      Specified by:
      updateWith in interface IUpdatable<CloudComponent>