diff --git a/shaders/vertex.glsl b/shaders/vertex.glsl index 7c1d95c..3d44a5a 100644 --- a/shaders/vertex.glsl +++ b/shaders/vertex.glsl @@ -10,7 +10,7 @@ varying vec3 fragPosition; void main() { vec4 worldPosition = model * vec4(position, 1.0); worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0); - gl_Position = projection * view * worldPosition; + gl_Position = projection * (view * worldPosition); fragColor = color; fragPosition = position; } \ No newline at end of file