X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gen.h;h=c0c4264898d1b6ef4db16c5255851d5cf47acbc7;hb=6c1541ad6a2915912e7439661820a786cb145af4;hp=47ed5ee9c9b64624c20bf060c90921f3bb7d8037;hpb=1142fd5c27cf6d5bef073969b55e20b160646164;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gen.h b/world_gen.h index 47ed5ee..c0c4264 100644 --- a/world_gen.h +++ b/world_gen.h @@ -56,7 +56,12 @@ VG_STATIC void world_apply_procedural_foliage( struct world_material *mat ) int count = 0; - for( int i=0;i<100000;i++ ) + float area = volume[0]*volume[2]; + u32 particles = 0.08f * area; + + vg_info( "Map area: %f. Max particles: %u\n", area, particles ); + + for( int i=0;i 0.8f) && (m1 == mat) && (hit.pos[1] > 0.0f+10.0f))