summaryrefslogtreecommitdiffstats
path: root/drivers/gles3/shaders
diff options
context:
space:
mode:
authorQbieShay <cislaghi.ilaria@gmail.com>2023-08-13 13:08:52 +0200
committerQbieShay <cislaghi.ilaria@gmail.com>2023-10-10 20:03:35 +0200
commitc228fe1a0d7cf9dc65404f63cddbc0dd85959f2e (patch)
tree84a3982c1f57246764cb997a61580f3605df051c /drivers/gles3/shaders
parent6916349697a4339216469e9bf5899b983d78db07 (diff)
downloadredot-engine-c228fe1a0d7cf9dc65404f63cddbc0dd85959f2e.tar.gz
Particle internal refactor and additions for more artistic control
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: Raul Santos <raulsntos@gmail.com> Co-authored-by: Mew Pur Pur <85438892+MewPurPur@users.noreply.github.com> Co-authored-by: Clay John <claynjohn@gmail.com>
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r--drivers/gles3/shaders/particles.glsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/particles.glsl b/drivers/gles3/shaders/particles.glsl
index 40881a1808..64ef26b075 100644
--- a/drivers/gles3/shaders/particles.glsl
+++ b/drivers/gles3/shaders/particles.glsl
@@ -78,7 +78,7 @@ layout(std140) uniform FrameData { //ubo:0
float delta;
float particle_size;
- float pad0;
+ float amount_ratio;
float pad1;
float pad2;
@@ -89,6 +89,9 @@ layout(std140) uniform FrameData { //ubo:0
mat4 emission_transform;
+ vec3 emitter_velocity;
+ float interp_to_end;
+
Attractor attractors[MAX_ATTRACTORS];
Collider colliders[MAX_COLLIDERS];
};