Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float dm = chf( 'density_mult' );
- float maxDist = chf( 'max_dist' );
- float minDist = chf( 'min_dist' );
- float radius = 9999;
- int maxpoints = chi( 'max_pts' );
- float fade = chf( 'fade' );
- float exp_padding = chf( 'exp_padding' );
- float exp = chf( 'exp' );
- float cMin = chf( 'clamp_min' );
- float cMax = chf( 'clamp_max' );
- vector center = point( 1, 'P', 0 );
- float dist = distance( v@P, center );
- float fDist = fit( dist, minDist, maxDist, 1, 0 );
- int handle = pcopen( 0, 'P', v@P, radius, maxpoints );
- float pcDist = pcimportbyidxf( handle, 'point.distance', 0 );
- int arg = ( pcDist <= fDist );
- float condition = ( arg ) ? ( f@density *= dm / ( fDist * (pow( clamp( f@density, cMin, cMax ) + pow( fade, exp_padding ), exp ))) ) : ( f@density = f@density );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement