const-ifying shaders

This commit is contained in:
minjaesong
2023-08-03 18:37:23 +09:00
parent f7e4987785
commit c73461a407
17 changed files with 49 additions and 49 deletions

View File

@@ -12,10 +12,10 @@ uniform sampler2D u_texture;
// that, or simply 0.5, depending on how your uv coord works
uniform vec2 halfpixel = vec2(0.0, 0.0);
vec2 doublex = vec2(2.0, 0.0);
vec2 doubley = vec2(0.0, 2.0);
vec2 twister = vec2(1.0, -1.0);
vec2 boolean = vec2(1.0, 0.0);
const vec2 doublex = vec2(2.0, 0.0);
const vec2 doubley = vec2(0.0, 2.0);
const vec2 twister = vec2(1.0, -1.0);
const vec2 boolean = vec2(1.0, 0.0);
out vec4 fragColor;