Open ITV-107 opened 2 years ago
At lines 286, in the 2D Perlin noise generator, the Y samples do not rely on the height of the screen, instead using the width instead. Is this deliberate behaviour? Attached is an image of the code in question:
https://github.com/OneLoneCoder/videos/blob/master/OneLoneCoder_PerlinNoise.cpp
Hi! This is deliberate yes, as I assume the generated maps are square, and powers of 2 in dimension.
At lines 286, in the 2D Perlin noise generator, the Y samples do not rely on the height of the screen, instead using the width instead. Is this deliberate behaviour? Attached is an image of the code in question:
https://github.com/OneLoneCoder/videos/blob/master/OneLoneCoder_PerlinNoise.cpp