Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Grafkom 2020 A3R
WS 2
Commits
a63f8910
Commit
a63f8910
authored
Apr 22, 2020
by
Rachmat Ridwan
Browse files
Replace selection color with blue
parent
30dc0929
Changes
1
Hide whitespace changes
Inline
Side-by-side
experiment-3/no-2.html
View file @
a63f8910
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment