#include "noises.h"

displacement
terrain( float Km = 1 )
{
	float offset;
	point PP;
	float filtwidth;

	PP = transform( "shader", P );

	offset = Km * noise( s , t ) ;

	P += offset * normalize( N );
	N = calculatenormal( P );
}