Lines Matching defs:lightpos
55 static GLfloat lightpos[4]={2.3,0.0,3.0,1.0};
88 GLfloat lightpos[4])
93 dot = groundplane[X] * lightpos[X] +
94 groundplane[Y] * lightpos[Y] +
95 groundplane[Z] * lightpos[Z] +
96 groundplane[W] * lightpos[W];
98 shadowMat[0][0] = dot - lightpos[X] * groundplane[X];
99 shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y];
100 shadowMat[2][0] = 0.f - lightpos[X] * groundplane[Z];
101 shadowMat[3][0] = 0.f - lightpos[X] * groundplane[W];
103 shadowMat[X][1] = 0.f - lightpos[Y] * groundplane[X];
104 shadowMat[1][1] = dot - lightpos[Y] * groundplane[Y];
105 shadowMat[2][1] = 0.f - lightpos[Y] * groundplane[Z];
106 shadowMat[3][1] = 0.f - lightpos[Y] * groundplane[W];
108 shadowMat[X][2] = 0.f - lightpos[Z] * groundplane[X];
109 shadowMat[1][2] = 0.f - lightpos[Z] * groundplane[Y];
110 shadowMat[2][2] = dot - lightpos[Z] * groundplane[Z];
111 shadowMat[3][2] = 0.f - lightpos[Z] * groundplane[W];
113 shadowMat[X][3] = 0.f - lightpos[W] * groundplane[X];
114 shadowMat[1][3] = 0.f - lightpos[W] * groundplane[Y];
115 shadowMat[2][3] = 0.f - lightpos[W] * groundplane[Z];
116 shadowMat[3][3] = dot - lightpos[W] * groundplane[W];
361 glLightfv(GL_LIGHT0,GL_POSITION,lightpos);
371 glTranslatef(lightpos[0],lightpos[1],lightpos[2]);
586 shadowmatrix(baseshadow,plane,lightpos);