afonsolage / projekto

Voxel game made with Bevy Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rework voxel KindsDescs and Kinds

afonsolage opened this issue · comments

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.