From 9447218e9cd7eafcfd2c7e7f00d6e52f09b98fc1 Mon Sep 17 00:00:00 2001 From: Zach Pearson Date: Mon, 3 Feb 2025 13:31:36 -0800 Subject: [PATCH] fix(graphics): Make step_size a float in the vertex shader Some OpenGL implementations are stricter than others it seems. On my Mac, the previous shader happily compiles. On my Ubuntu machine, GL complains that the same uniform has a different data type in the two shaders. Fixes Trac#16772 --- src/bundles/graphics/src/vertexShader.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundles/graphics/src/vertexShader.txt b/src/bundles/graphics/src/vertexShader.txt index ffd8f43042..1f96c10d55 100644 --- a/src/bundles/graphics/src/vertexShader.txt +++ b/src/bundles/graphics/src/vertexShader.txt @@ -47,7 +47,7 @@ uniform mat4 view_matrix; // Map scene coordinates to camera coordinates #endif #if defined(USE_VOLUME_RAYCASTING) -uniform vec3 step_size; +uniform float step_size; uniform vec3 camera_pos; uniform float camera_fov; uniform vec2 window_size;