Particles WIP
This commit is contained in:
parent
69fc997361
commit
0bfe350477
|
@ -164,9 +164,9 @@
|
||||||
Max Life: 20
|
Max Life: 20
|
||||||
Angular Min: {x: 2.29999995, y: 1.70000005, z: 2.9000001}
|
Angular Min: {x: 2.29999995, y: 1.70000005, z: 2.9000001}
|
||||||
Angular Max: {x: 0, y: 0, z: 0}
|
Angular Max: {x: 0, y: 0, z: 0}
|
||||||
Minimum Velocity: {x: 2, y: 3, z: 4}
|
Minimum Velocity: {x: 1, y: 1, z: 0}
|
||||||
Maximum Velocity: {x: 0, y: 0, z: 0}
|
Maximum Velocity: {x: 2, y: 2, z: 0}
|
||||||
Minimum Size: 5
|
Minimum Size: 1
|
||||||
Maximum Size: 10
|
Maximum Size: 3
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
|
@ -78,8 +78,8 @@ void main()
|
||||||
vec2 particleScaleData = particle.scaleAndDecay.xz; // x and y
|
vec2 particleScaleData = particle.scaleAndDecay.xz; // x and y
|
||||||
|
|
||||||
mat4 localModel = mat4 (1.0f);
|
mat4 localModel = mat4 (1.0f);
|
||||||
localModel[0][0] = 1.0f;
|
localModel[0][0] = particleScaleData.x;
|
||||||
localModel[1][1] = 1.0f;
|
localModel[1][1] = particleScaleData.y;
|
||||||
|
|
||||||
mat4 rotate = mat4(1.0f);
|
mat4 rotate = mat4(1.0f);
|
||||||
rotate[0][0] = cos(angle);
|
rotate[0][0] = cos(angle);
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue