Skip to content

Commit 3998539

Browse files
authored
Merge pull request #3 from gl-vis/fix-for-etienne-laptop
Replace || with * in if comparison statement
2 parents 3032f88 + c433f38 commit 3998539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shaders/frag.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void main() {
2424
float gamma = .0045 * charsStep / pointSize;
2525

2626
//null-border case
27-
if (borderWidth == 0. || borderColor.a == 0.) {
27+
if (borderWidth * borderColor.a == 0.) {
2828
float charAmt = smoothstep(.748 - gamma, .748 + gamma, dist);
2929
gl_FragColor = vec4(charColor.rgb, charAmt*charColor.a);
3030
return;

0 commit comments

Comments
 (0)