Package gaiasky.scene.component
Class ModelScaffolding
java.lang.Object
gaiasky.scene.component.ModelScaffolding
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
-
Field Summary
Modifier and TypeFieldDescriptionfloat
The factor to apply to the size when rendered as billboard.float
Fade opacity, special to model bodiesfloat
ThresholdLabel for children locations.float
Solid angle factor for the locations of this object.The components to randomize---possible values are ["model", "surface", "cloud", "atmosphere"]Name of the reference plane for this object.Name of the transformation to the reference planeThe seed for random componentsboolean
Whether we should render self-shadows for this object.int
State flag; whether to render the shadow (number of times left)Shadow map propertiescom.badlogic.gdx.math.Matrix4
com.badlogic.gdx.math.Matrix4
com.badlogic.gdx.graphics.glutils.FrameBuffer
com.badlogic.gdx.graphics.glutils.FrameBuffer
float
Size factor, which can be set to scale model objects up or down -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the seed corresponding to the given component by matching it using the position in the randomize vector.boolean
Whether self-shadows should be rendered for this object.void
setLocthoverfactor
(Double locthoverfactor) void
setLocThOverFactor
(Double locthoverfactor) void
void
setLocvamultiplier
(Double locvamultiplier) void
setLocVaMultiplier
(Double locvamultiplier) void
setRandomize
(String randomize) void
setRandomize
(String[] randomize) void
setReferencePlane
(String refplane) void
setRefplane
(String refplane) void
setRefPlane
(String refplane) void
setSeed
(int[] seed) void
void
setSelfShadow
(boolean selfShadow) void
setShadowvalues
(double[] shadowMapValues) Deprecated.void
setShadowValues
(double[] shadowMapValues) Deprecated.We determine the shadow values automatically now.void
setSizescalefactor
(Double sizescalefactor) void
setSizeScaleFactor
(Double sizescalefactor)
-
Field Details
-
locVaMultiplier
public float locVaMultiplierSolid angle factor for the locations of this object. Effectively multiplies the solid angle of locations. -
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", "surface", "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.
-