diff options
author | pommicket <pommicket@gmail.com> | 2023-01-25 19:16:18 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-25 19:16:18 -0500 |
commit | bd391f7e52da94c9169643bed73427e49c238d9f (patch) | |
tree | 85644d83fe4cdeae449f0b0c5e9ec591c968e35d /src/fshader_post.glsl | |
parent | 68cf8354fc0c0bcfe9584b84e9ecae21980f0042 (diff) |
error flash
Diffstat (limited to 'src/fshader_post.glsl')
-rw-r--r-- | src/fshader_post.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fshader_post.glsl b/src/fshader_post.glsl index c540f0d..b3df51b 100644 --- a/src/fshader_post.glsl +++ b/src/fshader_post.glsl @@ -13,6 +13,7 @@ uniform int u_flash_icon; #define ICON_PAUSE 3 #define ICON_REWIND 4 #define ICON_SCREENSHOT 5 +#define ICON_ERROR 6 bool play_icon(vec2 pos) { vec2 a = abs(pos); @@ -27,6 +28,7 @@ bool get_icon(vec2 pos) { case 0: break; case ICON_COPY: case ICON_SCREENSHOT: + case ICON_ERROR: icon = abs(pos.x) > u_aspect_ratio - 0.1 || abs(pos.y) > 0.9; break; case ICON_PLAY: |