NVIDIA / gvdb-voxels

Sparse volume compute and rendering on NVIDIA GPUs
Other
672 stars 144 forks source link

Allow users to pass in a variable number of channels. #133

Open AspenEyers opened 1 year ago

AspenEyers commented 1 year ago

Hi,

Just a suggestion, but I can see this being quite useful.

If you pass the rayCast method in a pointer to the channel to operate on instead of the channel, then you can open the door for block functions to operate on multiple channels of the VDB, reading from one and writing to another etc.

I've tried to ensure that the change is backwards compatible by templating the old behaviour.

Signed-off-by: Aspen Eyers aspen.eyers@missionsystems.com.au