vk-book/data/shaders/GridParameters.h

15 lines
405 B
C
Raw Permalink Normal View History

2025-05-23 21:13:53 -04:00
// extents of grid in world coordinates
float gridSize = 100.0;
// size of one cell
float gridCellSize = 0.025;
// color of thin lines
vec4 gridColorThin = vec4(0.5, 0.5, 0.5, 1.0);
// color of thick lines (every tenth line)
vec4 gridColorThick = vec4(0.0, 0.0, 0.0, 1.0);
// minimum number of pixels between cell lines before LOD switch should occur.
const float gridMinPixelsBetweenCells = 2.0;