[orx-fx] add pregain parameter to MipBloom

This commit is contained in:
Edwin Jakobs
2021-10-03 13:36:09 +02:00
parent d84be87d27
commit 8acf6eb572
2 changed files with 9 additions and 1 deletions

View File

@@ -5,9 +5,10 @@ uniform sampler2D tex0;
uniform sampler2D tex1;
uniform float gain;
uniform float pregain;
uniform vec4 bias;
void main() {
o_output = texture(tex0, v_texCoord0) + texture(tex1, v_texCoord0)*gain;
o_output = texture(tex0, v_texCoord0) * pregain + texture(tex1, v_texCoord0)*gain;
o_output.a = clamp(o_output.a, 0.0, 1.0);
}