WTF, that was one of the best video at all session Apple, please explain that move
Post
Replies
Boosts
Views
Activity
Here is the abstract example. In 1/60 sec I get the encoder. Then I have two options.
First
// Sphere
encoder.here is your buffer for the sphere
encoder.draw
// Cube
encoder.here is your buffer for the cube
encoder.draw
encoder.commit
Do I understand correct that the abstract code bellow(Second) will be more fast than code above(First)
Second
mesh = sphere + cube
encoder.here is your buffer for the mesh
encoder.draw
encoder.commit
?
The question is closed. It's just cull mode setting on the encoder. And a well ordered vertex triangel array. encoder.setCullMode(.back)
encoder.setFrontFacing(.counterClockwise)