public class TerrainTexture
extends java.lang.Object
Constructor and Description |
---|
TerrainTexture(java.lang.String textureName) |
TerrainTexture(Texture texture) |
Modifier and Type | Method and Description |
---|---|
Texture |
getTexture() |
float |
getWeight(float height,
float slope)
Get how important this texture is for a specific height and slope
|
void |
setHeightWeight(float heightRegion,
float heightRange,
float heightWeight) |
void |
setSlopeWeight(float slopeRegion,
float slopeRange,
float slopeWeight) |
public TerrainTexture(Texture texture)
public TerrainTexture(java.lang.String textureName)
public void setHeightWeight(float heightRegion, float heightRange, float heightWeight)
public void setSlopeWeight(float slopeRegion, float slopeRange, float slopeWeight)
public Texture getTexture()
public float getWeight(float height, float slope)