Description
This pull request implements a shader for drawing grid lines on the map editor and the tilemap.
The lines have a light outline and a dark fill to offer enhanced contrast in a variety of environments. They also scale in thickness with the screen resolution which is important for people with very large screens.
Testing
The shader has been tested to work with Vulkan, WebGL and WebGPU by opening a map and observing that no crashes occur.
Connections
Description This pull request implements a shader for drawing grid lines on the map editor and the tilemap.
The lines have a light outline and a dark fill to offer enhanced contrast in a variety of environments. They also scale in thickness with the screen resolution which is important for people with very large screens.
Testing The shader has been tested to work with Vulkan, WebGL and WebGPU by opening a map and observing that no crashes occur.
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
cargo build --release
trunk build --release