Pages: [1]
  Print  
Author Topic: [WIP] r_alternateBrightness  (Read 13625 times)
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



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
« Last Edit: February 20, 2014, 02:56:01 AM by fromhell » Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
andrewj
Member


Cakes 24
Posts: 584



« 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
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« Reply #2 on: February 20, 2014, 02:53:15 AM »

I actually got around to doing this as well. It works!

Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Suicizer
Member
Member
*

Cakes 2
Posts: 402


WWW
« Reply #3 on: February 20, 2014, 03:44:45 PM »

So like bloom and glare screenshaders?
Logged

I'm good at everything but can't do anything...
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« Reply #4 on: February 21, 2014, 12:02:37 AM »

No.
Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Pages: [1]
  Print  
 
Jump to: