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
Multiplier 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 componentsint
State flag; whether to render the shadow (number of times left)Shadow map propertiesdouble[]
Array with shadow camera distance, camera near and camera far as a function of the radius of the object.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
isShadow()
Whether shadows should be rendered for this objectvoid
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
setShadowvalues
(double[] shadowMapValues) void
setShadowValues
(double[] shadowMapValues) Sets the shadow mapping values for this objectvoid
setSizescalefactor
(Double sizescalefactor) void
setSizeScaleFactor
(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
-
shadowMapValues
public double[] shadowMapValuesArray with shadow camera distance, camera near and camera far as a function of the radius of the 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.
-
-
Constructor Details
-
ModelScaffolding
public ModelScaffolding()
-
-
Method Details
-
isShadow
public boolean isShadow()Whether shadows should be rendered for this object- Returns:
- Whether shadows should be rendered for this object
-
setShadowValues
public void setShadowValues(double[] shadowMapValues) Sets the shadow mapping values for this object- Parameters:
shadowMapValues
- The values
-
setShadowvalues
public void setShadowvalues(double[] shadowMapValues) -
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.
-