Page 2 of 2
Re: overbright lighting?
Posted: 15 May 2009, 10:15
by Spawn_Retard
Re: overbright lighting?
Posted: 15 May 2009, 10:53
by Argh
Why not just add a multiplier to the fragment program and multiply all normalized light by it? Just some constant as a map value, mind you.
Or just strip the contrast part of the bloom shader's GLSL out and just use that to enhance overall contrast of the entire scene?
I mean... that shot from the FPS involves a point source with attenuation. Either of those ways should do what he really wants, which is higher overall light level for fragments which are lit, even if that routinely reaches 1.0 on all three channels.
Re: overbright lighting?
Posted: 15 May 2009, 16:35
by smoth
that is probably what I am going to do (strip the contrast part from the bloom shader) but I wanted to see if there was another way
Re: overbright lighting?
Posted: 15 May 2009, 23:07
by Argh
That part's not the slow part, IIRC. It's the blur that's slow. So it should run just fine.
Doing it in the fragment shader has some speed advantages, but would have some serious drawbacks as well.
Re: overbright lighting?
Posted: 19 May 2009, 04:58
by Tribulexrenamed
urm.... I can has code?