Make fractal tree more natural looking.

This commit is contained in:
Revar Desmera 2019-04-22 01:30:31 -07:00
parent 7e1598d66d
commit 597d74fcc8

View file

@ -18,10 +18,10 @@ module leaf(s) {
module branches(minsize){
if($parent_size2.x>minsize) {
attach(TOP)
zrot(gaussian_rand(90,10))
zrot(gaussian_rand(90,20))
zring(n=floor(log_rand(2,5,4)))
zrot(gaussian_rand(0,5))
yrot(gaussian_rand(30,5))
yrot(gaussian_rand(30,10))
let(
sc = gaussian_rand(0.7,0.05),
s1 = $parent_size.z*sc,
@ -35,7 +35,7 @@ module branches(minsize){
leaf(gaussian_rand(100,5));
}
}
recolor("lightgray") cylinder(d1=300, d2=250, l=1500) branches(5);
recolor("lightgray") cylinder(d1=300, d2=250, l=1500) branches(10);
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap