Tweak outline changes (#18599)
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
path: "/Textures/Shaders/outline.swsl"
|
path: "/Textures/Shaders/outline.swsl"
|
||||||
params:
|
params:
|
||||||
outline_color: "#FF000055"
|
outline_color: "#FF000055"
|
||||||
light_boost: 2
|
light_boost: 1
|
||||||
|
|
||||||
- type: shader
|
- type: shader
|
||||||
id: SelectionOutlineInrange
|
id: SelectionOutlineInrange
|
||||||
@@ -12,4 +12,4 @@
|
|||||||
path: "/Textures/Shaders/outline.swsl"
|
path: "/Textures/Shaders/outline.swsl"
|
||||||
params:
|
params:
|
||||||
outline_color: "#00FF0055"
|
outline_color: "#00FF0055"
|
||||||
light_boost: 4
|
light_boost: 2
|
||||||
|
|||||||
@@ -73,6 +73,6 @@ void fragment() {
|
|||||||
mina = min(a, mina);
|
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);
|
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);
|
lightSample = vec3(1.0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user