afonsolage / projekto

Voxel game made with Bevy Engine
MIT License
59 stars 4 forks source link

Rework voxel KindsDescs and Kinds #37

Closed afonsolage closed 2 years ago

afonsolage commented 2 years ago

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.