Add a Uniform object for RandomAlgorithm
This object contains several random numbers for the GPU kernel to use when generating random points. This isn't right yet (there are still patterns in the generated data) but it's time to move on...
This commit is contained in:
parent
76f0065d8b
commit
11b9cba8ac
6 changed files with 66 additions and 6 deletions
|
@ -151,6 +151,9 @@ class Renderer: NSObject, MTKViewDelegate {
|
|||
|
||||
private func updateGameState() {
|
||||
/// Update any game state before rendering
|
||||
if iterateTerrainAlgorithm {
|
||||
terrain.algorithm.updateUniforms()
|
||||
}
|
||||
|
||||
uniforms[0].projectionMatrix = projectionMatrix
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue