Began work on a "permanent/proper" fix for determining what pixels are tinted and what arnt and by how much

This commit is contained in:
mcrcortex
2024-02-09 23:52:41 +10:00
parent c1460b649c
commit 5bf0a54686
3 changed files with 18 additions and 2 deletions

View File

@@ -1,12 +1,16 @@
#version 430
in vec3 pos;
in vec4 _metadata;
in vec2 uv;
layout(location=1) uniform mat4 transform;
out vec2 texCoord;
void main() {
uvec4 metadata = uvec4(_metadata*255);
uint metadata = (metadata.r<<16)|(metadata.g<<8)|(metadata.b);
gl_Position = transform * vec4(pos, 1.0);
texCoord = uv;
}