Skip to content

Commit

Permalink
Fixed shader on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Ray committed Sep 11, 2020
1 parent 82cd8d7 commit a681dfe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ uniform vec4 uClipRect;
void main() {
if ((vClipRect != vec4(0,0,0,0)) && (gl_FragCoord.x < vClipRect.x || gl_FragCoord.y < vClipRect.y || gl_FragCoord.x > vClipRect.z || gl_FragCoord.y > vClipRect.w))
discard;
fragColor = vColor;
if (vIntensity == 0) {
fragColor *= vColor * texture(uTexture, vTexCoords).a;
fragColor *= uColorMask;
} else {
fragColor = vec4(0, 0, 0, 0);
fragColor += vColor;
fragColor *= vColor * texture(uTexture, vTexCoords);
fragColor *= uColorMask;
}
Expand Down

0 comments on commit a681dfe

Please sign in to comment.