Lines Matching defs:ppos
342 colorcheckmap(float ppos[3], float c[3])
348 x = (int) ((ppos[0] + BASESIZE / 2) * (10.0f / BASESIZE));
352 y = (int) ((ppos[1] + BASESIZE / 2) * (10.0f / BASESIZE));
371 vsub(ldir, lightpos, ppos);
374 if (seelight(ppos, ldir)) {
386 vsub(vdir, obs, ppos);
408 float c[3], ppos[3];
413 ppos[2] = 0.0f;
416 ppos[1] = (y / (float) TEX_CHECK_HEIGHT) * BASESIZE - BASESIZE / 2;
419 ppos[0] = (x / (float) TEX_CHECK_WIDTH) * BASESIZE - BASESIZE / 2;
421 colorcheckmap(ppos, c);
439 float rcol[3], ppos[3], norm[3], ldir[3], h[3], vdir[3], planepos[3];
447 ppos[0] = sphere_pos[y][x][0] + objpos[0];
448 ppos[1] = sphere_pos[y][x][1] + objpos[1];
449 ppos[2] = sphere_pos[y][x][2] + objpos[2];
451 vsub(norm, ppos, objpos);
454 vsub(ldir, lightpos, ppos);
456 vsub(vdir, obs, ppos);