From 0bfe350477b95483b48516fbec71d95f6bec3e7a Mon Sep 17 00:00:00 2001 From: Brandon Mak Date: Tue, 14 Mar 2023 19:37:34 +0800 Subject: [PATCH] Particles WIP --- Assets/Scenes/Scene2.shade | 8 ++++---- Assets/Shaders/Particle_VS.glsl | 4 ++-- Assets/Shaders/Particle_VS.shshaderb | Bin 5869 -> 5941 bytes 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Scenes/Scene2.shade b/Assets/Scenes/Scene2.shade index 96d2e525..2cfa3fb7 100644 --- a/Assets/Scenes/Scene2.shade +++ b/Assets/Scenes/Scene2.shade @@ -164,9 +164,9 @@ Max Life: 20 Angular Min: {x: 2.29999995, y: 1.70000005, z: 2.9000001} Angular Max: {x: 0, y: 0, z: 0} - Minimum Velocity: {x: 2, y: 3, z: 4} - Maximum Velocity: {x: 0, y: 0, z: 0} - Minimum Size: 5 - Maximum Size: 10 + Minimum Velocity: {x: 1, y: 1, z: 0} + Maximum Velocity: {x: 2, y: 2, z: 0} + Minimum Size: 1 + Maximum Size: 3 IsActive: true Scripts: ~ \ No newline at end of file diff --git a/Assets/Shaders/Particle_VS.glsl b/Assets/Shaders/Particle_VS.glsl index d5703c82..e6f73eb2 100644 --- a/Assets/Shaders/Particle_VS.glsl +++ b/Assets/Shaders/Particle_VS.glsl @@ -78,8 +78,8 @@ void main() vec2 particleScaleData = particle.scaleAndDecay.xz; // x and y mat4 localModel = mat4 (1.0f); - localModel[0][0] = 1.0f; - localModel[1][1] = 1.0f; + localModel[0][0] = particleScaleData.x; + localModel[1][1] = particleScaleData.y; mat4 rotate = mat4(1.0f); rotate[0][0] = cos(angle); diff --git a/Assets/Shaders/Particle_VS.shshaderb b/Assets/Shaders/Particle_VS.shshaderb index 82cb32311ab8fc2a4094ab06865219819200ad59..7afc020263359dad7b8472dd42cf88966eaeb831 100644 GIT binary patch delta 1939 zcmZ9MNlz3}6op^eG&n&>jIbav0x{7)gQmYP+ySWALI+c31VyEiybx18}WLvA{!1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