Class TextureClipmap
java.lang.Object
com.ardor3d.extension.terrain.client.TextureClipmap
An implementation of texture clipmapping
-
Constructor Summary
ConstructorDescriptionTextureClipmap
(List<TextureCache> cacheList, int textureSize, TextureConfiguration textureConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
clamp
(int x, int low, int high) int
float
getScale()
int
int
int
boolean
void
regenerate
(Renderer renderer) void
void
setMinVisibleLevel
(int level) set the minimum (highest resolution) clipmap level visiblevoid
setScale
(float scale) void
setShaderState
(GLSLShaderObjectsState textureClipmapShader) void
setShowDebug
(boolean showDebug) void
shutdown()
void
update
(Renderer renderer, ReadOnlyVector3 position)
-
Constructor Details
-
TextureClipmap
public TextureClipmap(List<TextureCache> cacheList, int textureSize, TextureConfiguration textureConfiguration)
-
-
Method Details
-
update
-
regenerate
-
getTexture
-
reloadShader
public void reloadShader() -
getShaderState
-
setShaderState
-
clamp
public static int clamp(int x, int low, int high) -
getScale
public float getScale() -
setScale
public void setScale(float scale) -
isShowDebug
public boolean isShowDebug() -
setShowDebug
public void setShowDebug(boolean showDebug) -
getTextureSize
public int getTextureSize() -
getTextureLevels
public int getTextureLevels() -
getValidLevels
public int getValidLevels() -
setMinVisibleLevel
public void setMinVisibleLevel(int level) set the minimum (highest resolution) clipmap level visible- Parameters:
level
- clamped to valid range
-
getMinVisibleLevel
public int getMinVisibleLevel() -
shutdown
public void shutdown()
-