diff --git a/Resources/Prototypes/Shaders/outline.yml b/Resources/Prototypes/Shaders/outline.yml index 8469e30158..83b99f07ea 100644 --- a/Resources/Prototypes/Shaders/outline.yml +++ b/Resources/Prototypes/Shaders/outline.yml @@ -4,7 +4,7 @@ path: "/Textures/Shaders/outline.swsl" params: outline_color: "#FF000055" - light_boost: 2 + light_boost: 1 - type: shader id: SelectionOutlineInrange @@ -12,4 +12,4 @@ path: "/Textures/Shaders/outline.swsl" params: outline_color: "#00FF0055" - light_boost: 4 + light_boost: 2 diff --git a/Resources/Textures/Shaders/outline.swsl b/Resources/Textures/Shaders/outline.swsl index 7fce6809f6..d465946ae6 100644 --- a/Resources/Textures/Shaders/outline.swsl +++ b/Resources/Textures/Shaders/outline.swsl @@ -73,6 +73,6 @@ void fragment() { mina = min(a, mina); lowp float sampledLight = outline_fullbright ? 1.0 : sqrt(mix(0.0, 1.0, (lightSample.r * 0.34) + (lightSample.g * 0.5) + (lightSample.b * 0.16)) * light_boost); - COLOR = mix(col, outline_color * sampledLight, maxa - col.a); + COLOR = mix(col, outline_color * vec4(vec3(sampledLight), 1.0), maxa - col.a); lightSample = vec3(1.0); }