]> git.tdb.fi Git - libs/gl.git/commitdiff
Move the bloom shader's delta uniform into a block
authorMikko Rasa <tdb@tdb.fi>
Fri, 12 Nov 2021 19:55:43 +0000 (21:55 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 12 Nov 2021 19:55:43 +0000 (21:55 +0200)
builtin_data/_bloom.glsl

index fe3dd6e44d7f6b7f43dfe76f869e60bfd42f9b18..f261cc1dd7bed317b1c9173ed99b6b3021a7c375 100644 (file)
@@ -1,9 +1,12 @@
 uniform sampler2D source;
 uniform sampler2D blurred;
-uniform vec2 delta;
 uniform BloomParams
 {
        float factors[19];
        int size;
        float strength;
 };
+uniform BloomPerPassParams
+{
+       uniform vec2 delta;
+};