From 587fdae494ca04cde3130a15b2ea712d6d997518 Mon Sep 17 00:00:00 2001 From: RavMorgan <48182970+RavMorgan@users.noreply.github.com> Date: Mon, 2 Oct 2023 14:04:39 +0300 Subject: [PATCH] shader (#461) Co-authored-by: Mona Hmiza <> --- Resources/Prototypes/Shaders/shaders.yml | 5 ----- .../Textures/Shaders/White/gradient.swsl | 20 ------------------- 2 files changed, 25 deletions(-) delete mode 100644 Resources/Textures/Shaders/White/gradient.swsl diff --git a/Resources/Prototypes/Shaders/shaders.yml b/Resources/Prototypes/Shaders/shaders.yml index 30fb0b3551..f6f30fdd4e 100644 --- a/Resources/Prototypes/Shaders/shaders.yml +++ b/Resources/Prototypes/Shaders/shaders.yml @@ -100,11 +100,6 @@ kind: source path: "/Textures/Shaders/cataracts.swsl" -- type: shader - id: Gradient - kind: source - path: "/Textures/Shaders/White/gradient.swsl" - - type: shader id: SaturationScale kind: source diff --git a/Resources/Textures/Shaders/White/gradient.swsl b/Resources/Textures/Shaders/White/gradient.swsl deleted file mode 100644 index 0fb5f6dbf2..0000000000 --- a/Resources/Textures/Shaders/White/gradient.swsl +++ /dev/null @@ -1,20 +0,0 @@ -uniform sampler2D SCREEN_TEXTURE; - -uniform highp vec4 first_color = vec4(1.0); -uniform highp vec4 second_color = vec4(0.0, 0.0, 0.0, 1.0); -uniform highp float position = 0.0; -uniform highp float size = 1.0; -uniform highp float angle = 90.0; - -void fragment() { - - highp float pivot = position + 0.5; - - highp vec2 uv = UV - pivot; - - highp float rotated = uv.x * cos(radians(angle)) - uv.y * sin(radians(angle)); - - highp float pos = smoothstep((1.0 - size) + position, size + 0.0001 + position, rotated + pivot); - - COLOR = mix(first_color, second_color, pos); -}