Enable more control of bloom using hdr
This commit is contained in:
@@ -41,10 +41,8 @@ void main()
|
||||
{
|
||||
sumFive += vec4(texture(screenTexture, vTexPos + fiveOff[i]));
|
||||
}
|
||||
// divinding by 4 is not ideal, because it adds extra alpha
|
||||
// but has more juice than dividing by 5
|
||||
fColor = max(texture(screenTexture,vTexPos), sumFive / 4);
|
||||
//fColor = sumFive / 4;
|
||||
//fColor = max(texture(screenTexture,vTexPos), sumFive / 5);
|
||||
fColor = vec4 ( (sumFive / 5).rgb, max((sumFive/5).a,texture(screenTexture,vTexPos).a) );
|
||||
// vec4 sampleTex[9];
|
||||
// for(int i=0; i<9; i++)
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user