> different surface to that generated by the function outside of the
pattern.
>
> #declare fn_myripples = function { // This doesn't work as expected
> pattern {
> function {cos(sqrt(x*x + z*z)*5*pi)*0.08}
> }
> }
I believe patterns evaluate the function and then wrap the resulting
value to the range [0,1). Since cos() returns negative numbers
sometimes, they're getting wrapped around to higher values (for
instance, -.3 becomes .7).
- Slime
Post a reply to this message
|