This commit is contained in:
Nishi 2026-02-02 19:23:23 +09:00
commit 3a332f6c2f
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -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);