Remove textures

This commit is contained in:
Hugo Mårdbrink 2025-08-27 21:03:35 +02:00
parent db75a10f2b
commit f658d040ed
14 changed files with 66 additions and 155 deletions

View file

@ -5,7 +5,6 @@
@vs vs_cube
in vec3 pos;
in vec2 uv;
layout(binding = 0) uniform VsParamsCube {
mat4 mvp;
@ -13,27 +12,21 @@ layout(binding = 0) uniform VsParamsCube {
};
out vec4 color;
out vec2 tex_coord;
void main() {
gl_Position = mvp * vec4(pos, 1);
color = col;
tex_coord = uv;
}
@end
@fs fs_cube
in vec4 color;
in vec2 tex_coord;
layout(binding=0) uniform texture2D tex;
layout(binding=0) uniform sampler smp;
out vec4 frag_color;
void main() {
frag_color = texture(sampler2D(tex, smp), tex_coord) * color;
frag_color = color;
}
@end