Skip to content

Commit

Permalink
cubelets
Browse files Browse the repository at this point in the history
  • Loading branch information
RG committed Feb 21, 2020
1 parent e7fe040 commit 64fc81d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TextRendering/MBERenderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -573,14 +573,16 @@ - (void)drawInMTKView:(nonnull MTKView *)view

/////////////////////
// Draw cube
// TEST: we are getting small animated cubes: this is the mesh from our cube and the vertices are
// transformed by the vertex shader from the font atlas pipeline
for (NSUInteger bufferIndex = 0; bufferIndex < _mesh.vertexBuffers.count; bufferIndex++)
{
MTKMeshBuffer *vertexBuffer = _mesh.vertexBuffers[bufferIndex];
if((NSNull*)vertexBuffer != [NSNull null])
{
[commandEncoder setVertexBuffer:vertexBuffer.buffer
offset:vertexBuffer.offset
atIndex:bufferIndex];
offset:vertexBuffer.offset
atIndex:bufferIndex];
}
}

Expand Down

0 comments on commit 64fc81d

Please sign in to comment.