Home | History | Annotate | Download | only in libagl

Lines Matching defs:light

1 /* libs/opengles/light.cpp
21 #include "light.h"
27 #warning "light.cpp should not be compiled in thumb on ARM."
340 // now we can light our vertex as usual
381 // compute vertex-to-light vector
469 light_t& light = c->lighting.lights[i-GL_LIGHT0];
477 light.spotExp = param;
484 light.spotCutoff = param;
485 light.spotCutoffCosine =
493 light.attenuation[0] = param;
500 light.attenuation[1] = param;
507 light.attenuation[2] = param;
524 light_t& light = c->lighting.lights[i-GL_LIGHT0];
527 what = light.ambient.v;
530 what = light.diffuse.v;
533 what = light.specular.v;
538 mv.point4(&mv, &light.position, reinterpret_cast<vec4_t const*>(params));
546 mvui.point3(&mvui, &light.spotDir, reinterpret_cast<vec4_t const*>(params));
548 light.spotDir = *reinterpret_cast<vec4_t const*>(params);
550 vnorm3(light.normalizedSpotDir.v, light.spotDir.v);