Improved particles and trajectory rendering #430

Merged
Xenosas1337 merged 19 commits from SP3-1-Rendering into main 2023-03-20 16:55:29 +08:00
3 changed files with 6 additions and 6 deletions
Showing only changes of commit 0bfe350477 - Show all commits

View File

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

View File

@ -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.