예제 #1
0
        public void Execute(int index)
        {
            float2 uv    = index.ToUV(res) * frequency;
            float  n     = cellular2x2(uv)[channel];
            float4 color = float4(n, n, n, 1f);

            colors[index] = color.As32();
        }
예제 #2
0
        public void Execute(int index)
        {
            float2 uv    = index.ToUV(res) * frequency;
            float  n     = cnoise(float4(uv, z, w));
            float4 color = float4(n, n, n, 1f);

            colors[index] = color.As32();
        }
예제 #3
0
        public void Execute(int index)
        {
            float2 uv    = index.ToUV(res) * frequency;
            float3 n     = srdnoise(uv);
            float4 color = float4(n, 1f);

            colors[index] = color.As32();
        }
예제 #4
0
        public void Execute(int index)
        {
            float2 uv    = index.ToUV(res) * frequency;
            float  n     = psrnoise(uv, per, rot);
            float4 color = float4(n, n, n, 1f);

            colors[index] = color.As32();
        }
예제 #5
0
        public void Execute(int index)
        {
            float2 uv    = index.ToUV(res) * frequency;
            float  n     = snoise(float3(uv, z), out var gradient);
            float4 color = float4(1f);

            if (outputGradient)
            {
                color.xyz = gradient;
            }
            else
            {
                color.xyz = n;
            }
            colors[index] = color.As32();
        }