1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibGL+LibSoftGPU+3DFileViewer: Implement Specular highlighting :^)

This commit is contained in:
Jesse Buhagiar 2022-01-15 16:16:01 +11:00 committed by Idan Horowitz
parent 5bb8c14c8f
commit 865e7bbe5e
4 changed files with 35 additions and 4 deletions

View file

@ -2764,6 +2764,12 @@ void SoftwareGLContext::gl_light_model(GLenum pname, GLfloat x, GLfloat y, GLflo
lighting_params.two_sided_lighting = x;
update_lighting_model = true;
break;
case GL_LIGHT_MODEL_LOCAL_VIEWER:
// 0 means the viewer is at infinity
// 1 means they're in local (eye) space
lighting_params.viewer_at_infinity = (x != 1.0f);
update_lighting_model = true;
break;
default:
VERIFY_NOT_REACHED();
}