Package gaiasky.scene.component
Class ModelScaffolding
java.lang.Object
gaiasky.scene.component.ModelScaffolding
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatThe factor to apply to the size when rendered as billboard.floatFade opacity, special to model bodiesfloatThresholdLabel for children locations.floatMultiplier for Loc view angleThe components to randomize---possible values are ["model", "cloud", "atmosphere"]Name of the reference plane for this object.Name of the transformation to the reference planeThe seed for random componentsbooleanWhether we should render self-shadows for this object.intState flag; whether to render the shadow (number of times left)Shadow map propertiescom.badlogic.gdx.math.Matrix4com.badlogic.gdx.math.Matrix4com.badlogic.gdx.graphics.glutils.FrameBuffercom.badlogic.gdx.graphics.glutils.FrameBufferfloatSize factor, which can be set to scale model objects up or down -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the seed corresponding to the given component by matching it using the position in the randomize vector.booleanWhether self-shadows should be rendered for this object.voidsetLocthoverfactor(Double locthoverfactor) voidsetLocThOverFactor(Double locthoverfactor) voidvoidsetLocvamultiplier(Double locvamultiplier) voidsetLocVaMultiplier(Double locvamultiplier) voidsetRandomize(String randomize) voidsetRandomize(String[] randomize) voidsetReferencePlane(String refplane) voidsetRefplane(String refplane) voidsetRefPlane(String refplane) voidsetSeed(int[] seed) voidvoidsetSelfShadow(boolean selfShadow) voidsetShadowvalues(double[] shadowMapValues) Deprecated.voidsetShadowValues(double[] shadowMapValues) Deprecated.We determine the shadow values automatically now.voidsetSizescalefactor(Double sizescalefactor) voidsetSizeScaleFactor(Double sizescalefactor)
-
Field Details
-
locVaMultiplier
public float locVaMultiplierMultiplier for Loc view angle -
locThresholdLabel
public float locThresholdLabelThresholdLabel for children locations. -
sizeScaleFactor
public float sizeScaleFactorSize factor, which can be set to scale model objects up or down -
fadeOpacity
public float fadeOpacityFade opacity, special to model bodies -
shadowMap
Shadow map properties -
shadow
public int shadowState flag; whether to render the shadow (number of times left) -
refPlane
Name of the reference plane for this object. Defaults to equator -
refPlaneTransform
Name of the transformation to the reference plane -
inverseRefPlaneTransform
-
selfShadow
public boolean selfShadowWhether we should render self-shadows for this object. -
seed
The seed for random components -
randomize
The components to randomize---possible values are ["model", "cloud", "atmosphere"] -
billboardSizeFactor
public float billboardSizeFactorThe 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.We determine the shadow values automatically now.Sets the shadow mapping values for this object- Parameters:
shadowMapValues- The values
-
setShadowvalues
Deprecated. -
setSizeScaleFactor
-
setSizescalefactor
-
setRandomize
-
setSeed
-
setSeed
public void setSeed(int[] seed) -
setRandomize
-
setRefPlane
-
setReferencePlane
-
setRefplane
-
setLocVaMultiplier
-
setLocvamultiplier
-
setLocThOverFactor
-
setLocthoverfactor
-
setLocThresholdLabel
-
getSeed
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.
-