Skip to content

Commit 9447218

Browse files
committed
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
1 parent aa42d06 commit 9447218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bundles/graphics/src/vertexShader.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ uniform mat4 view_matrix; // Map scene coordinates to camera coordinates
4747
#endif
4848

4949
#if defined(USE_VOLUME_RAYCASTING)
50-
uniform vec3 step_size;
50+
uniform float step_size;
5151
uniform vec3 camera_pos;
5252
uniform float camera_fov;
5353
uniform vec2 window_size;

0 commit comments

Comments
 (0)