Raster shader index
This page details the different shaders that can be applied to raster geometry, how to select them, and how to create new ones.
Selecting
To select which shader a raster layer uses change the layer_raster_material property for the layer in the config file (either directly or through the editor) under meta. Setting this value to the name of one of the entries in the table below will display the raster with that shader. If no name is given the game will pick a default shader.
RasterBathymetry | The default bathymetry shader | 2 |
RasterMELNew | The MEL shader created by Kevin & Carlos with visibility improvements and optional range of detail | 5 |
RasterMELOld | The original MEL shader created by Tino | 5 |
RasterMELCustomizable | New customizable shader (uses colors we set up in the types)
Notes:
|
>1 |
Creating
To use a new shader for rasters in the Unity client, take the following steps:
- Create a new shader (anywhere).
- Create a new material, using the shader (anywhere).
- Create a new object with a spriterenderer, using the material.
- Place the object in the "Data Visualization/Resources/RasterPrefabs" folder as a prefab.
- Add it to the table above.
This page was last edited on 12 April 2024, at 08:09. Content is available under GPLv3 unless otherwise noted.