vertex_shader_v3.glsl Diff#

vertex_shader_v3.glsl#
--- /home/docs/checkouts/readthedocs.org/user_builds/arcade-library/checkouts/latest/doc/tutorials/gpu_particle_burst/vertex_shader_v2.glsl
+++ /home/docs/checkouts/readthedocs.org/user_builds/arcade-library/checkouts/latest/doc/tutorials/gpu_particle_burst/vertex_shader_v3.glsl
@@ -9,13 +9,16 @@
 // Velocity of particle
 in vec2 in_vel;
 
+// Color of particle
+in vec3 in_color;
+
 // Output the color to the fragment shader
 out vec4 color;
 
 void main() {
 
     // Set the RGBA color
-    color = vec4(1, 1, 1, 1);
+    color = vec4(in_color[0], in_color[1], in_color[2], 1);
 
     // Calculate a new position
     vec2 new_pos = in_pos + (time * in_vel);