Exemplo n.º 1
0
 private double GeneratePlanar(double x, double y)
 {
     return(m_generator.GetValue(x, 0.0, y));
 }
Exemplo n.º 2
0
        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);
        }