Working with tilesets, about to do UV wrapping.

This commit is contained in:
2025-03-05 07:14:56 -06:00
parent 04eb4736d8
commit 40c97d6eb7
17 changed files with 303 additions and 5 deletions

View File

@ -5,6 +5,7 @@
#include "../fragments/header.glsl"
#include "../data/entities.glsl"
#include "../data/tilesets.glsl"
// Inputs from vertex shader
in vec2 v_TextureCoord;
@ -13,5 +14,6 @@ in vec2 v_TextureCoord;
out vec4 FragColor;
void main() {
FragColor = vec4(1, 1, 1, 1);
vec4 tColor = tilesetGetColor(0, v_TextureCoord);
FragColor = vec4(1, 1, 1, 1) * tColor;
}