Particles WIP

This commit is contained in:
Brandon Mak 2023-03-14 19:37:34 +08:00
parent 69fc997361
commit 0bfe350477
3 changed files with 6 additions and 6 deletions

View File

@ -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: ~

View File

@ -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);

Binary file not shown.