Fakultas Ilmu Komputer UI

Commit a63f8910 authored by Rachmat Ridwan's avatar Rachmat Ridwan
Browse files

Replace selection color with blue

parent 30dc0929
......@@ -57,12 +57,11 @@ void main()
float sel = selectingFactor;
// fColor = vec4(fColor.r * invSel, fColor.g * invSel, fColor.b * invSel, 0.0);
vec4 selectedColor = vec4(0.94, 0.64, 0.09, 1.0);
vec4 selMult = vec4(sel, sel, sel, 0.0);
vec4 invSelMult = vec4(1.0 - sel, 1.0 - sel, 1.0 - sel, 0.0);
fColor = fColor * invSelMult + selectedColor * selMult;
fColor.a = 1.0;
vec4 selectedColor = vec4(0.0/255.0, 123.0/255.0, 255.0/255.0, 0.1);
vec4 selMult = vec4(sel, sel, sel, 1.0);
vec4 invSelMult = vec4(1.0 - sel, 1.0 - sel, 1.0 - sel, 1.0);
fColor = fColor * invSelMult + selectedColor * selMult;
}
</script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment