Lines Matching defs:lightpos
171 GLfloat lightpos[4])
176 dot = groundplane[X] * lightpos[X] +
177 groundplane[Y] * lightpos[Y] +
178 groundplane[Z] * lightpos[Z] +
179 groundplane[W] * lightpos[W];
181 shadowMat[0][0] = dot - lightpos[X] * groundplane[X];
182 shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y];
183 shadowMat[2][0] = 0.f - lightpos[X] * groundplane[Z];
184 shadowMat[3][0] = 0.f - lightpos[X] * groundplane[W];
186 shadowMat[X][1] = 0.f - lightpos[Y] * groundplane[X];
187 shadowMat[1][1] = dot - lightpos[Y] * groundplane[Y];
188 shadowMat[2][1] = 0.f - lightpos[Y] * groundplane[Z];
189 shadowMat[3][1] = 0.f - lightpos[Y] * groundplane[W];
191 shadowMat[X][2] = 0.f - lightpos[Z] * groundplane[X];
192 shadowMat[1][2] = 0.f - lightpos[Z] * groundplane[Y];
193 shadowMat[2][2] = dot - lightpos[Z] * groundplane[Z];
194 shadowMat[3][2] = 0.f - lightpos[Z] * groundplane[W];
196 shadowMat[X][3] = 0.f - lightpos[W] * groundplane[X];
197 shadowMat[1][3] = 0.f - lightpos[W] * groundplane[Y];
198 shadowMat[2][3] = 0.f - lightpos[W] * groundplane[Z];
199 shadowMat[3][3] = dot - lightpos[W] * groundplane[W];