Finished descriptor indexing example

This commit is contained in:
Sascha Willems 2021-01-28 22:04:25 +01:00
parent ca17431794
commit a86bdc2c44
4 changed files with 169 additions and 201 deletions

View file

@ -17,10 +17,7 @@ layout (location = 1) flat out int outTexIndex;
void main()
{
outUV = inUV;
outTexIndex = 0;
outTexIndex = inTextureIndex;
outTexIndex = gl_InstanceIndex;
vec4 pos = vec4(inPos, 1.0f);
pos.y += gl_InstanceIndex;
gl_Position = matrices.projection * matrices.view * matrices.model * pos;
}