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 componentsintState flag; whether to render the shadow (number of times left)Shadow map propertiesdouble[]Array with shadow camera distance, cam near and cam far as a function of the radius of the objectfloatSize 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.booleanisShadow()Whether shadows should be rendered for this objectvoidsetLocthoverfactor(Double locthoverfactor) voidsetLocThOverFactor(Double locthoverfactor) voidvoidsetLocvamultiplier(Double locvamultiplier) voidsetLocVaMultiplier(Double locvamultiplier) voidsetRandomize(String randomize) voidsetRandomize(String[] randomize) voidsetRefplane(String refplane) voidsetRefPlane(String refplane) voidsetSeed(int[] seed) voidvoidsetShadowvalues(double[] shadowMapValues) voidsetShadowValues(double[] shadowMapValues) Sets the shadow mapping values for this objectvoidsetSizescalefactor(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
-
shadowMapValues
public double[] shadowMapValuesArray with shadow camera distance, cam near and cam 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
-
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.
-