data texture controls
LD edited this page May 7, 2019
·
1 revision
Detail map or textures control uses the value of the heightmap to select and combine the textures (or colors) to apply on the object. The control is done on the current height or slope of each point of the object.
The texture control is a control that assign a detail texture depending on the height or the slope of the current point of the object.
- type: textures
- texture|height|slope|biome: List of control entries, see below
- texture name : Name of the texture in the texture dictionary
- height: Height of the top of the layer, optional, default value is 0
- height-units: Units of the height parameter, optional, default value is Metres.
- blend: Blend factor with the previous layer, optional, default value is 0.
- entry: Texture control entry for the layer.
- slope: Maximum slope of the layer in degrees, optional, default value is 0
- blend: Blend factor with the previous layer, optional, default value is 0.
- entry: Texture control entry for the layer.
todo
control:
slope:
- entry: dirt
- entry:
height:
- entry: soil
height: -2000
blend: 10
- entry: grass
height: 0
blend: 10
- entry: rock
height: 1000
blend: 10
- entry: snow
height: 3000
angle: 5
blend: 5
- entry: rock
angle: 35
blend: 10
The colormap control is a simple control that assign a color for a height layer, color between each layer is interpolated linearly.
- type: colormap
- entries: List of colormap layer, mandatory
- percentage: true if the height parameter in the layers is a percentage, false if it's an actual height, optional, default value is false.
- float: true if the color components are float color (range between 0 and 1), false if the color components are integer (range between 0 and 255). Optional, default value is false
- height: Height of the top of the layer, mandatory.
- height-units: .Units of the height, optional, default value is Metres
- bottom: Color of the bottom of the layer, optional, default value is top value of the previous layer.
- top: Color of the top of the layer, mandatory.
control:
type: colormap
percentage: true
entries:
- height: 0
bottom: [0, 0, 0] #black
top: [255, 120, 255] #Purple
- height: .2
top: [120, 120, 255] #Blue
- height: .4
top: [120, 255, 255] #Aqua
- height: .6
top: [120, 255, 1201] #Green
- height: .7
top: [255, 255, 120] #Yellow
- height: .9
top: [255, 120, 120] #Red
- height: 1.0
top: [255, 255, 255] #White
- height: 1.0
top: [0, 0, 0] #black