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

Method TestLights

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

Source from the content-addressed store, hash-verified

236 * ================
237 */
238 private static void TestLights() {
239 int i, j;
240 float f, r;
241 dlight_t dl;
242
243 r_numdlights = 32;
244 //memset (r_dlights, 0, sizeof(r_dlights));
245 for (i = 0; i < r_dlights.length; i++)
246 r_dlights[i] = new dlight_t();
247
248 for (i = 0; i < r_numdlights; i++) {
249 dl = r_dlights[i];
250
251 r = 64 * ((i % 4) - 1.5f);
252 f = 64 * (i / 4) + 128;
253
254 for (j = 0; j < 3; j++)
255 dl.origin[j] = ClientGlobals.cl.refdef.vieworg[j] + ClientGlobals.cl.v_forward[j] * f
256 + ClientGlobals.cl.v_right[j] * r;
257 dl.color[0] = ((i % 6) + 1) & 1;
258 dl.color[1] = (((i % 6) + 1) & 2) >> 1;
259 dl.color[2] = (((i % 6) + 1) & 4) >> 2;
260 dl.intensity = 200;
261 }
262 }
263
264 private static void FlashLight() {
265

Callers 1

RenderViewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected