[Metaballs] Update the field before rendering
This commit is contained in:
parent
79236d805b
commit
515218a66e
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ class Renderer: NSObject, MTKViewDelegate {
|
||||||
// } catch let e {
|
// } catch let e {
|
||||||
// NSLog("Error updating buffers: \(e)")
|
// NSLog("Error updating buffers: \(e)")
|
||||||
// }
|
// }
|
||||||
|
field.update()
|
||||||
|
|
||||||
let buffer = commandQueue.makeCommandBuffer()
|
let buffer = commandQueue.makeCommandBuffer()
|
||||||
buffer.label = "Render"
|
buffer.label = "Render"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue