Class ModelScaffolding

java.lang.Object
gaiasky.scene.component.ModelScaffolding
All Implemented Interfaces:
com.badlogic.ashley.core.Component

public class ModelScaffolding extends Object implements com.badlogic.ashley.core.Component
  • Field Details

    • locVaMultiplier

      public float locVaMultiplier
      Solid angle factor for the locations of this object. Effectively multiplies the solid angle of locations.
    • locThresholdLabel

      public float locThresholdLabel
      ThresholdLabel for children locations.
    • sizeScaleFactor

      public float sizeScaleFactor
      Size factor, which can be set to scale model objects up or down
    • fadeOpacity

      public float fadeOpacity
      Fade opacity, special to model bodies
    • shadowMap

      public ShadowMapImpl shadowMap
      Shadow map properties
    • shadow

      public int shadow
      State flag; whether to render the shadow (number of times left)
    • refPlane

      public String refPlane
      Name of the reference plane for this object. Defaults to equator
    • refPlaneTransform

      public String refPlaneTransform
      Name of the transformation to the reference plane
    • inverseRefPlaneTransform

      public String inverseRefPlaneTransform
    • selfShadow

      public boolean selfShadow
      Whether we should render self-shadows for this object.
    • seed

      public List<Long> seed
      The seed for random components
    • randomize

      public List<String> randomize
      The components to randomize---possible values are ["model", "surface", "cloud", "atmosphere"]
    • billboardSizeFactor

      public float billboardSizeFactor
      The factor to apply to the size when rendered as billboard.
    • shadowMapFb

      public com.badlogic.gdx.graphics.glutils.FrameBuffer shadowMapFb
    • shadowMapFbGlobal

      public com.badlogic.gdx.graphics.glutils.FrameBuffer shadowMapFbGlobal
    • shadowMapCombined

      public com.badlogic.gdx.math.Matrix4 shadowMapCombined
    • shadowMapCombinedGlobal

      public com.badlogic.gdx.math.Matrix4 shadowMapCombinedGlobal
  • Constructor Details

    • ModelScaffolding

      public ModelScaffolding()
  • Method Details

    • isSelfShadow

      public boolean isSelfShadow()
      Whether self-shadows should be rendered for this object.
      Returns:
      Whether self-shadows should be rendered for this object.
    • setSelfShadow

      public void setSelfShadow(boolean selfShadow)
    • setShadowValues

      @Deprecated public void setShadowValues(double[] shadowMapValues)
      Deprecated.
      We determine the shadow values automatically now.
      Sets the shadow mapping values for this object
      Parameters:
      shadowMapValues - The values
    • setShadowvalues

      @Deprecated public void setShadowvalues(double[] shadowMapValues)
      Deprecated.
    • setSizeScaleFactor

      public void setSizeScaleFactor(Double sizescalefactor)
    • setSizescalefactor

      public void setSizescalefactor(Double sizescalefactor)
    • setRandomize

      public void setRandomize(String[] randomize)
    • setSeed

      public void setSeed(Long seed)
    • setSeed

      public void setSeed(int[] seed)
    • setRandomize

      public void setRandomize(String randomize)
    • setRefPlane

      public void setRefPlane(String refplane)
    • setReferencePlane

      public void setReferencePlane(String refplane)
    • setRefplane

      public void setRefplane(String refplane)
    • setLocVaMultiplier

      public void setLocVaMultiplier(Double locvamultiplier)
    • setLocvamultiplier

      public void setLocvamultiplier(Double locvamultiplier)
    • setLocThOverFactor

      public void setLocThOverFactor(Double locthoverfactor)
    • setLocthoverfactor

      public void setLocthoverfactor(Double locthoverfactor)
    • setLocThresholdLabel

      public void setLocThresholdLabel(Double val)
    • getSeed

      public long getSeed(String component)
      Gets the seed corresponding to the given component by matching it using the position in the randomize vector.
      Parameters:
      component - The component name.
      Returns:
      The seed.