Skip to content

Commit

Permalink
fix(graphics): Make step_size a float in the vertex shader
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zjp committed Feb 3, 2025
1 parent aa42d06 commit 9447218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundles/graphics/src/vertexShader.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9447218

Please sign in to comment.