mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-25 03:35:18 +01:00
Updated Defining custom shaders (markdown)
parent
c8eb2c5c41
commit
a0899092c0
@ -8,6 +8,8 @@ There are currently three basic classes of shaders, any of which can be used to
|
|||||||
|
|
||||||
- **org.dynmap.hdmap.TexturePackHDShader** - this shader allows the use of Minecraft Texture Packs, including the default texture pack for the Minecraft client
|
- **org.dynmap.hdmap.TexturePackHDShader** - this shader allows the use of Minecraft Texture Packs, including the default texture pack for the Minecraft client
|
||||||
|
|
||||||
|
- **org.dynmap.hdmap.TopoHDShader** - this shader colors the map to present a topographical map view, based on altitude of the blocks rendered.
|
||||||
|
|
||||||
## Defining a custom DefaultHDShader shader
|
## Defining a custom DefaultHDShader shader
|
||||||
The DefaultHDShader class supports the following configuration settings:
|
The DefaultHDShader class supports the following configuration settings:
|
||||||
|
|
||||||
@ -54,3 +56,31 @@ The settings for the TexturePackHDShader include:
|
|||||||
- _swampshaded_ : This setting controls whether the darkening of the biome shaded colors for water, leaves and grass in swamp biomes should be applied. The default is based on the _swampshaded_ attribute in **configuration.txt** (which defaults to true for 1.9.0 and later, false for 1.8.x).
|
- _swampshaded_ : This setting controls whether the darkening of the biome shaded colors for water, leaves and grass in swamp biomes should be applied. The default is based on the _swampshaded_ attribute in **configuration.txt** (which defaults to true for 1.9.0 and later, false for 1.8.x).
|
||||||
|
|
||||||
- _waterbiomeshaded_ : This setting controls whether water is toned based on biome temperature and rainfall data. The default is based on the _waterbiomeshaded_ attribute in **configuration.txt** (which defaults to true for 1.9.0 and later, false for 1.8.x).
|
- _waterbiomeshaded_ : This setting controls whether water is toned based on biome temperature and rainfall data. The default is based on the _waterbiomeshaded_ attribute in **configuration.txt** (which defaults to true for 1.9.0 and later, false for 1.8.x).
|
||||||
|
|
||||||
|
An example of a typical topological shader configuration is shown below:
|
||||||
|
|
||||||
|
shaders:
|
||||||
|
- class: org.dynmap.hdmap.TopoHDShader
|
||||||
|
name: topo
|
||||||
|
color127: "#FFFFFF"
|
||||||
|
color111: "#8B4513"
|
||||||
|
color95: "#D2B48C"
|
||||||
|
color79: "#FFFF00"
|
||||||
|
color63: "#008000"
|
||||||
|
color47: "#228B22"
|
||||||
|
color31: "#104010"
|
||||||
|
color15: "#6B8E23"
|
||||||
|
color0: "#696969"
|
||||||
|
linecolor: "#000000"
|
||||||
|
watercolor: "#0000FF"
|
||||||
|
|
||||||
|
The settings for the TopoHDShader include:
|
||||||
|
|
||||||
|
- _name_ : the unique name of the shader
|
||||||
|
|
||||||
|
- _linecolor_ : The #RRGGBB color of the line used to draw the border of areas with common altitides (Y coordinate). If not defined, no border outline is drawn.
|
||||||
|
|
||||||
|
- _watercolor_ : The #RRGGBB color to be used for any water blocks. If defined, this color overrides the color that would otherwise be shown for blocks at the altitude (Y coordinate). If not defined, water is rendered in the same way as any other block.
|
||||||
|
|
||||||
|
- _colorN_ : For N is from 0 to 127, and corresponds to the Y coordinate. Each value provided is an #RRGGBB color to be used for blocks with an altitude of N (Y=N). By default, _color0_ is #000000 and _color255_ is #FFFFFF. Any values not provided will be interpolated based on the two nearest values that are defined.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user