MCPcopy Create free account
hub / github.com/demoth/jake2 / TestParticles

Method TestParticles

client/src/main/java/jake2/client/V.java:181–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 * ================
180 */
181 private static void TestParticles() {
182 int i, j;
183 float d, r, u;
184
185 r_numparticles = 0;
186 for (i = 0; i < MAX_PARTICLES; i++) {
187 d = i * 0.25f;
188 r = 4 * ((i & 7) - 3.5f);
189 u = 4 * (((i >> 3) & 7) - 3.5f);
190
191 for (j = 0; j < 3; j++)
192 origin[j] = ClientGlobals.cl.refdef.vieworg[j] + ClientGlobals.cl.v_forward[j] * d
193 + ClientGlobals.cl.v_right[j] * r + ClientGlobals.cl.v_up[j] * u;
194
195 AddParticle(origin, 8, cl_testparticles.value);
196 }
197 }
198
199 /*
200 * ================

Callers 1

RenderViewMethod · 0.95

Calls 1

AddParticleMethod · 0.95

Tested by

no test coverage detected