Isosurface.Sampler.Sample C# (CSharp) Method

Sample() public static method

public static Sample ( Vector2 pos ) : float
pos Vector2
return float
        public static float Sample(Vector2 pos)
        {
            float scale = 0.5f;
            //return SimplexNoise.Noise(pos.X * scale, pos.Y * scale);
            //return pos.Y - SimplexNoise.Noise(0, pos.X * 0.1f) * 10.0f - 16.5f;
            //float d = Math.Min(-Circle(pos), Circle(pos - new Vector2(8, 8), Resolution / 4));
            //return Math.Min(-d, Square(pos + new Vector2(6, 6), Resolution / 6.0f));
            //return sdTorus88(pos);
            //return Math.Min(-Circle(pos), Circle(pos - new Vector2(8, 8), Resolution / 4));
            //return Circle(pos);
            return Cuboid(pos);
        }

Same methods

Sampler::Sample ( Vector3 pos, int type ) : float