implemented instanced rendering
This commit is contained in:
parent
0ef2bceeec
commit
f30db0dd47
9 changed files with 190 additions and 203 deletions
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue