KindsDescs describes how voxel::Kind should behave, but it only do it for rendering aspects. There should be a way to integrate voxel::Kind functions like is_opaque or even get light emission into KindsDescs.
Maybe use OnceCell and make it global available, since it'll be a read-only resource, loaded only once (at least in production) on the beginning.
KindsDescs
describes howvoxel::Kind
should behave, but it only do it for rendering aspects. There should be a way to integratevoxel::Kind
functions likeis_opaque
or even get light emission intoKindsDescs
.Maybe use
OnceCell
and make it global available, since it'll be a read-only resource, loaded only once (at least in production) on the beginning.