Class SimpleLodThreshold
java.lang.Object
com.jme3.terrain.geomipmap.lodcalc.SimpleLodThreshold
- All Implemented Interfaces:
com.jme3.export.Savable,LodThreshold,Cloneable
Just multiplies the terrain patch size by 2. So every two
patches away the camera is, the LOD changes.
Set it higher to have the LOD change less frequently.
- Author:
- bowens
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleLodThreshold(int patchSize, float lodMultiplier) SimpleLodThreshold(Terrain terrain) -
Method Summary
-
Constructor Details
-
SimpleLodThreshold
public SimpleLodThreshold() -
SimpleLodThreshold
-
SimpleLodThreshold
public SimpleLodThreshold(int patchSize, float lodMultiplier)
-
-
Method Details
-
getLodMultiplier
public float getLodMultiplier() -
setLodMultiplier
public void setLodMultiplier(float lodMultiplier) -
getSize
public int getSize() -
setSize
public void setSize(int size) -
getLodDistanceThreshold
public float getLodDistanceThreshold()Description copied from interface:LodThresholdA distance of how far between each LOD threshold.- Specified by:
getLodDistanceThresholdin interfaceLodThreshold
-
write
- Specified by:
writein interfacecom.jme3.export.Savable- Throws:
IOException
-
read
- Specified by:
readin interfacecom.jme3.export.Savable- Throws:
IOException
-
clone
- Specified by:
clonein interfaceLodThreshold- Overrides:
clonein classObject
-
toString
-