ok
This commit is contained in:
parent
e11978554b
commit
3a332f6c2f
1 changed files with 5 additions and 2 deletions
|
|
@ -76,9 +76,12 @@ GSBool GSGLShadowBeforeMapping(GSGL gl) {
|
|||
|
||||
GSMathNormalize3(n);
|
||||
|
||||
for(i = 0; i < 3; i++) n[i] *= 5;
|
||||
for(i = 0; i < 3; i++){
|
||||
n[i] *= 5;
|
||||
n[i] += gl->engine->client->position[i];
|
||||
}
|
||||
|
||||
GSGLCameraLookAt(gl, n, zero);
|
||||
GSGLCameraLookAt(gl, n, gl->engine->client->position);
|
||||
}
|
||||
|
||||
glGetDoublev(GL_MODELVIEW_MATRIX, gl->shadow_modelview);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue