ageller / Firefly

A WebGL interactive particle viewer
GNU Affero General Public License v3.0
64 stars 12 forks source link

divide column density texture by column density scale factor before remapping #102

Closed agurvich closed 2 years ago

agurvich commented 2 years ago

that way column density limits can be in units of # of particles without the R channel going over 1. If we make the scale factor ~float precision then we can maximize the dynamic range of # of particles we can count.

agurvich commented 2 years ago

I think from there it’s actually not so difficult to expose an additional scale factor that uses the resolution to convert to a number surface density in the pixel.

for a mass surface density we’d have to accumulate masses rather than 1s which might mess things up but perhaps we can vary the scale factor based off what field is being projected