Class SimpleLodThreshold
java.lang.Object
com.jme3.terrain.geomipmap.lodcalc.SimpleLodThreshold
- All Implemented Interfaces:
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.
-
Constructor Summary
ConstructorDescriptionSimpleLodThreshold
(int patchSize, float lodMultiplier) SimpleLodThreshold
(Terrain terrain) -
Method Summary
Modifier and TypeMethodDescriptionclone()
float
A distance of how far between each LOD threshold.float
int
getSize()
void
read
(JmeImporter im) void
setLodMultiplier
(float lodMultiplier) void
setSize
(int size) toString()
void
write
(JmeExporter ex)
-
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:LodThreshold
A distance of how far between each LOD threshold.- Specified by:
getLodDistanceThreshold
in interfaceLodThreshold
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-
clone
- Specified by:
clone
in interfaceLodThreshold
- Overrides:
clone
in classObject
-
toString
-