Last active
December 26, 2020 23:02
-
-
Save jasonsturges/98e922a0de3366178443105f5a1d1ba5 to your computer and use it in GitHub Desktop.
SpriteKit Procedurally Generated Noise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let noiseTexture = SKTexture(noiseWithSmoothness: 1.1, | |
size: CGSize(width: 1024, height: 768), | |
grayscale: false) | |
let noiseSprite = SKSpriteNode(texture: noiseTexture) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let noiseTexture = SKTexture(vectorNoiseWithSmoothness: 1.1, | |
size: CGSize(width: 1024, height: 768)) | |
let noiseSprite = SKSpriteNode(texture: noiseTexture) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment