public TextureGenerator(GraphicsDevice g, int width, int height, int depth) { GraphicsDevice = g; Perlin = new PerlinNoise(); TexWidth = (width <= 0) ? 1 : width; TexHeight = (height <= 0) ? 1 : height; TexDepth = (depth <= 0) ? 1 : depth; is2D = false; }
public TextureGenerator(GraphicsDevice g) { GraphicsDevice = g; Perlin = new PerlinNoise(); TexWidth = 1; // best if power of 2, like 128 TexHeight = 1; // best if power of 2, like 128 TexDepth = 1; is2D = true; }