Pages: [1]
  Print  
Author Topic: r_alternateBrightness  (Read 394 times)
fromhell
because leilei is trademarked
Administrator
GET A LIFE!
**********

Cakes 1201
Posts: 13498



WWW
« on: November 09, 2011, 06:49:28 am »

Basically, a technique to simulate the r_overbrightBits screen color adjusting by having a GL_SRC_ALPHA GL_DST_COLOR white plane overlay on the rendering output entirely (even above the console), using overbrightbits' brightness compensation in effect for it, having the brightness cvar adjust its alpha.

PROS:
- Do it in a window!
- Do it on X!!!!!!!!!!!!!!!
- no combines!

CONS:
- it blends. could be expensive on REALLY OLD hardware or even software GL rasterizers
Logged

NEVER ASK AN INDIE DEV WHEN IT'S DONE

TWITER.
STEAM GROUP
andrewj
Member


Cakes 22
Posts: 472



« Reply #1 on: November 09, 2011, 11:24:31 pm »

That'll just make everything whiter (e.g. black becomes #808080).

If GL_DST_COLOR could be used as the source (i.e. as Cs in the C = CsS + CdD equation) then you'd be adding the framebuffer into itself and getting the same effect as overbrightbits=1, however I'm fairly sure (having checked the OpenGL 1.3 specs) that GL_DST_COLOR is not supported there.

Logged
Pages: [1]
  Print  
 
Jump to: