We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c6c71f commit 7113cefCopy full SHA for 7113cef
files/data/shaders/bloomlinear.omwfx
@@ -80,8 +80,9 @@ shared {
80
radius = max(radius, 0.1);
81
// hack: make the radius wider on the screen edges
82
// (makes things in the corner of the screen look less "wrong" with not-extremely-low FOVs)
83
- radius *= pow(texcoord.x*2.0-1.0, 2.0)+1.0;
84
- radius *= pow(texcoord.y*2.0-1.0, 2.0)+1.0;
+ texcoord = texcoord * 2.0 - vec2(1.0);
+ radius *= texcoord.x * texcoord.x + 1.0;
85
+ radius *= texcoord.y * texcoord.y + 1.0;
86
return radius;
87
}
88
vec3 powv(vec3 a, float x)
0 commit comments