Last active
November 20, 2017 07:58
-
-
Save zubco/230e1661f5e240751916691533eafab2 to your computer and use it in GitHub Desktop.
GKNoiseMap bug report
This file contains 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 noise = GKNoise(GKPerlinNoiseSource()) | |
// Invalid - gray texture example | |
let invalideNoiseMap = GKNoiseMap( | |
noise, | |
size: double2(1, 1), | |
origin: double2(1, 1), | |
sampleCount: int2(100, 100), | |
seamless: true | |
) | |
let grayTexture = SKTexture(noiseMap: invalideNoiseMap) | |
// Valid texture example | |
let validNoiseMap = GKNoiseMap( | |
noise, | |
size: double2(2, 2), | |
origin: double2(1, 1), | |
sampleCount: int2(100, 100), | |
seamless: true | |
) | |
let validTexture = SKTexture(noiseMap: invalideNoiseMap) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment