implemented instanced rendering

This commit is contained in:
Alessandro Mauri 2025-06-15 18:54:35 +02:00
parent 0ef2bceeec
commit f30db0dd47
9 changed files with 190 additions and 203 deletions

View file

@ -12,7 +12,7 @@ layout(set = 2, binding = 0) uniform sampler2D tx;
void main()
{
ivec2 ts = textureSize(tx, 0);
vec2 fts = vec2(float(ts.x), float(ts.y));
vec2 fts = vec2(ts);
vec2 real_uv = uv / fts;
fragColor = texture(tx, real_uv);
}