Page 1 of 1

Regression after gl_light_ambient removal

Posted: Sun Dec 25, 2016 10:23
by _mental_
After removal of gl_light_ambient CVAR in this commit dark sectors appear as pitch black.
no_gl_light_ambient.jpg
no_gl_light_ambient.jpg (67.59 KiB) Viewed 2496 times
gl_light_ambient.jpg
gl_light_ambient.jpg (86.97 KiB) Viewed 2496 times
Well, maybe regression is not a right word in this case but the difference is very noticeable.

I'm running the latest version at the moment using OpenGL 4.1 Core Profile on macOS. Value of gl_lightmode CVAR is 3 (default). Command line:

Code: Select all

-iwad heretic +map e1m2 "+warp 1711 -322" +gamma 2 +notarget

Re: Regression after gl_light_ambient removal

Posted: Sun Dec 25, 2016 13:01
by Graf Zahl
Hm. Seems I was wrong about the light level cutoff. I had to rewrite the light level calculation for levels below 100 to avoid this steep dropoff.