vertex shader: change flip matrix from uniform to const

this is because const enables optimizations and shortcuts uniform
overhead
This commit is contained in:
2025-09-03 16:58:32 +02:00
parent f6d3e24b8f
commit cd6797d0c5

View File

@@ -5,7 +5,7 @@ layout(location=1) in vec4 vertex_colors;
out vec4 fragment_colors;
// this matrix mirrors over the x-axis and the y-axis simultaneously
uniform mat4 flip = mat4(
const mat4 flip = mat4(
vec4(-1.0f, 0.0f, 0.0f, 0.0f), // column 0
vec4( 0.0f, -1.0f, 0.0f, 0.0f), // column 1
vec4( 0.0f, 0.0f, 1.0f, 0.0f), // column 2