haze: use gpu console for rendering

This commit is contained in:
Liam authored and SciresM committed 2023-10-16 08:36:10 -07:00
1 parent c866c15856
commit d9fff85bc4
6 files changed
+592 -9

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#version 460
layout (location = 0) noperspective in vec3 inTexCoord;
layout (location = 1) flat in vec4 inFrontPal;
layout (location = 2) flat in vec4 inBackPal;
layout (location = 0) out vec4 outColor;
layout (binding = 0) uniform sampler2DArray tileset;
void main()
{
float value = texture(tileset, inTexCoord).r;
outColor = mix(inBackPal, inFrontPal, value);
}