From d4165b4b62cccd2b43fc8615aa80fb4027285bd1 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Fri, 10 Jun 2022 14:38:14 +0200 Subject: [PATCH] :wrench: Fix GLSL compiler issue --- resources/shaders/hexagon.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/shaders/hexagon.frag b/resources/shaders/hexagon.frag index 3319ef3..ff5ad85 100644 --- a/resources/shaders/hexagon.frag +++ b/resources/shaders/hexagon.frag @@ -31,10 +31,10 @@ uniform vec4 uLineColor; vec4 getHexagons(vec2 p) { // Length of a cell's edge. - const float edgeLength = sqrt(4.0 / 3.0); + float edgeLength = sqrt(4.0 / 3.0); // The hexgrid repeats after this distance. - const vec2 scale = vec2(3.0 * edgeLength, 2.0); + vec2 scale = vec2(3.0 * edgeLength, 2.0); // This is a repeating grid of scale-sized cells. Y-values are in the // interval [-1...1], X-value in [-1.5*edgeLength...1.5*edgeLength].