Finished descriptor indexing example
This commit is contained in:
parent
ca17431794
commit
a86bdc2c44
4 changed files with 169 additions and 201 deletions
Binary file not shown.
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue