From 4284ce0411295d559255dc14283c7da03cc1e48b Mon Sep 17 00:00:00 2001 From: Sarra Date: Fri, 5 Mar 2021 01:22:29 -0500 Subject: [PATCH] made firework explosions colorful --- assets/voxygen/shaders/particle-vert.glsl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/voxygen/shaders/particle-vert.glsl b/assets/voxygen/shaders/particle-vert.glsl index f33ece8ede..7bf80b19c5 100644 --- a/assets/voxygen/shaders/particle-vert.glsl +++ b/assets/voxygen/shaders/particle-vert.glsl @@ -221,7 +221,7 @@ void main() { normalize(vec3(rand1, rand2, rand3)) * 40.0 + grav_vel(earth_gravity) ), vec3(3.0 + rand0), - vec4(0.15, 0.4, 1, 1), + vec4(vec3(0, 0, 2), 1), identity() ); } else if (inst_mode == FIREWORK_GREEN) { @@ -232,7 +232,7 @@ void main() { normalize(vec3(rand1, rand2, rand3)) * 40.0 + grav_vel(earth_gravity) ), vec3(3.0 + rand0), - vec4(0, 1, 0, 1), + vec4(vec3(0, 2, 0), 1), identity() ); } else if (inst_mode == FIREWORK_PURPLE) { @@ -243,7 +243,7 @@ void main() { normalize(vec3(rand1, rand2, rand3)) * 40.0 + grav_vel(earth_gravity) ), vec3(3.0 + rand0), - vec4(0.7, 0.0, 1.0, 1.0), + vec4(vec3(2, 0, 2), 1), identity() ); } else if (inst_mode == FIREWORK_RED) { @@ -254,7 +254,7 @@ void main() { normalize(vec3(rand1, rand2, rand3)) * 40.0 + grav_vel(earth_gravity) ), vec3(3.0 + rand0), - vec4(1, 0, 0, 1), + vec4(vec3(2, 0, 0), 1), identity() ); } else if (inst_mode == FIREWORK_YELLOW) { @@ -265,7 +265,7 @@ void main() { normalize(vec3(rand1, rand2, rand3)) * 40.0 + grav_vel(earth_gravity) ), vec3(3.0 + rand0), - vec4(1, 1, 0, 1), + vec4(vec3(2, 2, 0), 1), identity() ); } else if (inst_mode == LEAF) {