* add haloperidol, potassium iodide * review fixes * review and tuning * add: translation * new mutations * translation string fix * holymelons are holy now * add: translation * rename holymelon * Tomato killers don't kill the server anymore. (#28173) * tomato killer auto death * fix * Update miscellaneous.yml --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
18 lines
620 B
Plaintext
18 lines
620 B
Plaintext
uniform sampler2D SCREEN_TEXTURE;
|
|
uniform highp float VisualScale; // between 0 and 1
|
|
const highp float Intensity = 0.2;
|
|
const highp int SampleCount = 16; // multiple of 2
|
|
|
|
// a simple radial blur
|
|
void fragment() {
|
|
highp vec2 uv = FRAGCOORD.xy * SCREEN_PIXEL_SIZE.xy;
|
|
highp vec2 direction = vec2(0.5, 0.5) - uv;
|
|
COLOR = vec4(0.0, 0.0, 0.0, 0.0);
|
|
highp float test = float(SampleCount);
|
|
for (int i=1; i <= SampleCount; i++)
|
|
{
|
|
COLOR += zTextureSpec(SCREEN_TEXTURE, uv + float(i) * Intensity * VisualScale / float(SampleCount) * direction);
|
|
}
|
|
COLOR = COLOR / float(SampleCount);
|
|
}
|