View Full Version : expression curve interpolation..

11 November 2006, 05:36 PM
can i make, say the output curve from a noise() function sawtooth instead of sine..?


11 November 2006, 07:09 PM
proc float lnoise(float $x)
float $low=floor($x);
float $high=ceil($x);
float $blend=$x-$low;
return (1-$blend)*noise($low)+$blend*noise($high);

CGTalk Moderation
11 November 2006, 07:09 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.