Other Functions

Luminoise, when compiling programs, provides a new function for basic perlin noise. The method signature is as such:
float noise(__global int *p, float x, float y, float z);

Say you wanted to get a single octave of perlin noise. All you have to do is call the function. The necessary parameters are passed in to your function.
public string GetCode()
    return @"
float " + FunctionName + @"(__global int *p, Single3 input)
    return noise(p, input.x, input.y, input.z);

Last edited Sep 13, 2010 at 4:04 AM by YellPika, version 2


No comments yet.