From b3cf152b2dc19abbc23c3cbe24a691190d459513 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Mon, 5 Nov 2018 16:54:18 +0100 Subject: [PATCH] Fix vs indexing --- exercise1/glsl/shader.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercise1/glsl/shader.vert b/exercise1/glsl/shader.vert index 4e76036..46f6d96 100644 --- a/exercise1/glsl/shader.vert +++ b/exercise1/glsl/shader.vert @@ -22,5 +22,5 @@ void main() fragment_color = in_color; - julia_position = julia_positions[gl_VertexID]; + julia_position = julia_positions[gl_VertexID % 3]; } \ No newline at end of file