Skip to content

Instantly share code, notes, and snippets.

@zubco
Last active November 20, 2017 07:58
Show Gist options
  • Save zubco/230e1661f5e240751916691533eafab2 to your computer and use it in GitHub Desktop.
Save zubco/230e1661f5e240751916691533eafab2 to your computer and use it in GitHub Desktop.
GKNoiseMap bug report
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