About to start shaders

This commit is contained in:
2025-02-25 09:17:33 -06:00
parent af598552f4
commit 1f83690334
31 changed files with 1109 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
#include "entity.glsl"
in vec2 v_TextureCoord;
flat in int v_Entity;
out vec4 FragColor;
void main() {
Entity e = entities[v_Entity];
vec4 textureColor = tilesetGetColor(e.tileset, v_TextureCoord);
// We remove the pink color as transparent
if(textureColor.r == 1.0 && textureColor.g == 0.0 && textureColor.b == 1.0) {
discard;
}
FragColor = textureColor;
}