-
-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenGL2: Dlight behavior close to surface #626
Comments
Update on this behavior: In the Quake3e engine, this is a result of a specularity program being run on the dynamic lights. r_dlightSpecPower "8" yields this when shooting the wall (the light intensity is diminished on the wall surface when the source is near the wall plane). r_dlightSpecPower "1" yields the desired result: In the Quake3e engine this is controlled by ARB_BuildDlightFP in tr_arb.c, specifically this line:
I cannot find an analogue within the IOQuake3 source but the behavior looks to be similar. |
With cl_renderer OpenGL2 and r_dlightmode 1 or higher, dynamic lights close to or at a surface cause the light to draw extremely dim, while lighting adjacent surfaces. Examples:
Dlight in flight open air:
Dlight impacting wall (floor lights, wall lights badly):
Dlight impacting floor (wall lights, floor lights badly):
Comparison to Quake 2 (Kex Engine):
Dlight in flight open air:
Dlight impacting wall:
Dlight impacting floor:
The text was updated successfully, but these errors were encountered: