Differences From Artifact [8491151e32]:
- File
src/renderparticles.m
— part of check-in
[6b85eefc85]
at
2025-03-23 02:47:40
on branch trunk
— Remove loop[ijkl]
They confused clang-format a lot. (user: js, size: 4004) [annotate] [blame] [check-ins using]
To Artifact [e9255a3806]:
- File src/renderparticles.m — part of check-in [0c8fc2f148] at 2025-03-23 14:49:15 on branch trunk — Remove vadd/vsub/vmul/vdiv (user: js, size: 4095) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
117 118 119 120 121 122 123 | *pp = p->next; p->next = parempty; parempty = p; } else { if (pt->gr) p->o.z -= ((lastmillis - p->millis) / 3.0f) * curtime / (pt->gr * 10000); | | < | | | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | *pp = p->next; p->next = parempty; parempty = p; } else { if (pt->gr) p->o.z -= ((lastmillis - p->millis) / 3.0f) * curtime / (pt->gr * 10000); OFVector3D a = OFMultiplyVector3D(p->d, time); a = OFMultiplyVector3D(a, 1.0f / 20000.0f); p->o = OFAddVectors3D(p->o, a); pp = &p->next; } } glEnable(GL_FOG); glDisable(GL_BLEND); glDepthMask(GL_TRUE); |
︙ | ︙ | |||
150 151 152 153 154 155 156 | } } void particle_trail(int type, int fade, const OFVector3D *s, const OFVector3D *e) { vdist(d, v, *s, *e); | | | | 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | } } void particle_trail(int type, int fade, const OFVector3D *s, const OFVector3D *e) { vdist(d, v, *s, *e); v = OFMultiplyVector3D(v, 1.0f / (d * 2 + 0.1f)); OFVector3D p = *s; for (int i = 0; i < ((int)d * 2); i++) { p = OFAddVectors3D(p, v); OFVector3D d = OFMakeVector3D(rnd(11) - 5, rnd(11) - 5, rnd(11) - 5); newparticle(&p, &d, rnd(fade) + fade, type); } } |