diff options
| author | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
| commit | 8329d42d3e592f4cd42cdfa586e2325ddc76c898 (patch) | |
| tree | dec7e2a733bfc6b6384936c1f3ed067a42b59bb9 /assets/shaders/2d_texcoord.fsh | |
| parent | 8ae8c85e9d3806cdb726e07f37e1b49484c5c48e (diff) | |
perf profiler, simplify 2d render, string struct, many small things
Diffstat (limited to 'assets/shaders/2d_texcoord.fsh')
| -rw-r--r-- | assets/shaders/2d_texcoord.fsh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/assets/shaders/2d_texcoord.fsh b/assets/shaders/2d_texcoord.fsh deleted file mode 100644 index 38dc69c..0000000 --- a/assets/shaders/2d_texcoord.fsh +++ /dev/null @@ -1,19 +0,0 @@ -#version 150 - -uniform sampler2D g_samplers[255]; - -const int SAMPLER_ID_NONE = 255; - -in vec2 g_texcoord; -in vec4 g_color; -flat in int g_sampler; - -void main() { - vec4 color = g_color; - if( g_sampler != SAMPLER_ID_NONE ) { - vec4 tex_color = texture2D( g_samplers[g_sampler], g_texcoord ); - color *= tex_color; - if (color.a < 0.01) discard; - } - gl_FragColor = color; -} |
