craftablescience / ChiraEngine

A customizable MIT-licensed game engine.
https://craftablescience.info/ChiraEngine/
MIT License
33 stars 6 forks source link

feat: Proper layer system for entities #82

Closed ashifolfi closed 9 months ago

ashifolfi commented 9 months ago

renames the existing Layer class to the more accurate Viewport and adds a basic mask based layer system for objects.

Active layers are defined in cameras. layers do not affect the render order of 3d objects and are merely used to handle what objects are rendered by the camera.