Searched refs:ldir (Results 1 – 5 of 5) sorted by relevance
| /RvlSDK-3.2/build/demos/gxdemo/src/Lighting/ |
| D | lit-spot.c | 636 Vec ldir; in DrawLightMark() local 640 ldir.x = sinf(theta); in DrawLightMark() 641 ldir.y = sinf(phi) * cosf(theta); in DrawLightMark() 642 ldir.z = cosf(phi) * cosf(theta); in DrawLightMark() 644 len = fabsf(light->pos.z / ldir.z); in DrawLightMark() 645 ldir.x = light->pos.x + ldir.x * len; in DrawLightMark() 646 ldir.y = light->pos.y + ldir.y * len; in DrawLightMark() 647 ldir.z = 0; in DrawLightMark() 675 GXPosition3f32(ldir.x, ldir.y, ldir.z); in DrawLightMark() 721 Vec ldir, lpos; in SetLight() local [all …]
|
| D | lit-specular.c | 524 Vec ldir; in SetLight() local 536 ldir.x = - 1.0F * cosf(phi) * sinf(theta); in SetLight() 537 ldir.y = - 1.0F * sinf(phi); in SetLight() 538 ldir.z = - 1.0F * cosf(phi) * cosf(theta); in SetLight() 541 MTXMultVecSR(view, &ldir, &ldir); in SetLight() 547 GXInitSpecularDirv(&le->lobj, &ldir); in SetLight()
|
| D | lit-prelit.c | 444 Vec ldir = { 0.0F, 0.0F, -1.0F }; in SetLight() local 450 MTXMultVec(mr, &ldir, &ldir); in SetLight() 452 MTXMultVecSR(sc->cam.view, &ldir, &ldir); in SetLight() 461 GXInitLightDirv(&sc->lightCtrl[i].lobj, &ldir); in SetLight()
|
| /RvlSDK-3.2/build/demos/gddemo/src/ |
| D | gd-tev-gc.c | 403 Vec lpos, ldir; in SetLight() local 410 ldir.x = - cosf(phi) * sinf(theta); in SetLight() 411 ldir.y = - sinf(phi); in SetLight() 412 ldir.z = - cosf(phi) * cosf(theta); in SetLight() 414 VECScale(&ldir, &lpos, -1000.0F); in SetLight() 423 MTXMultVecSR(view, &ldir, &ldir); in SetLight() 424 GXInitSpecularDirv(&lo1, &ldir); in SetLight()
|
| /RvlSDK-3.2/build/demos/gxdemo/src/Tev/ |
| D | tev-complex.c | 663 Vec lpos, ldir; in SetLight() local 670 ldir.x = - cosf(phi) * sinf(theta); in SetLight() 671 ldir.y = - sinf(phi); in SetLight() 672 ldir.z = - cosf(phi) * cosf(theta); in SetLight() 674 VECScale(&ldir, &lpos, -1000.0F); in SetLight() 683 MTXMultVecSR(view, &ldir, &ldir); in SetLight() 684 GXInitSpecularDirv(&lo1, &ldir); in SetLight()
|