refactor copypasta
make templates for sampling functions
compute object radii
make clip distance depend on object radius
Make stars twinkle