public static Texture2D NoiseRendered(CellRect rect, ModuleBase noise) { Texture2D texture2D = new Texture2D(rect.Width, rect.Height); texture2D.name = "NoiseRender"; foreach (IntVec2 coordinate in rect.Cells2D) { texture2D.SetPixel(coordinate.x, coordinate.z, NoiseRenderer.ColorForValue(noise.GetValue(coordinate))); } texture2D.Apply(); return(texture2D); }
public static Texture2D NoiseRendered(ModuleBase noise) { return(NoiseRenderer.NoiseRendered(new CellRect(0, 0, NoiseRenderer.renderSize.x, NoiseRenderer.renderSize.z), noise)); }