View Full Version : expression curve interpolation..
samel 11-13-2006, 04:36 PM can i make, say the output curve from a noise() function sawtooth instead of sine..?
//s
|
|
pgraham
11-14-2006, 06: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-14-2006, 06: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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.