14 lines
405 B
C
14 lines
405 B
C
// 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;
|