mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 08:36:07 +09:00
const-ifying shaders
This commit is contained in:
@@ -10,21 +10,21 @@ uniform sampler2D u_texture;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
mat4 rgb_to_ycocg = mat4(
|
||||
const mat4 rgb_to_ycocg = mat4(
|
||||
0.25, 1.0, -0.5, 0.0,
|
||||
0.5, 0.0, 1.0, 0.0,
|
||||
0.25, -1.0, -0.5, 0.0,
|
||||
0.0, 0.0, 0.0, 1.0
|
||||
);
|
||||
|
||||
mat4 ycocg_to_rgb = mat4(
|
||||
const mat4 ycocg_to_rgb = mat4(
|
||||
1.0, 1.0, 1.0, 0.0,
|
||||
0.5, 0.0, -0.5, 0.0,
|
||||
-0.5, 0.5, -0.5, 0.0,
|
||||
0.0, 0.0, 0.0, 1.0
|
||||
);
|
||||
|
||||
vec2 boolean = vec2(0.0, 1.0);
|
||||
const vec2 boolean = vec2(0.0, 1.0);
|
||||
|
||||
void main() {
|
||||
vec4 incolour = texture(u_texture, v_texCoords);
|
||||
|
||||
Reference in New Issue
Block a user