A port of the amazing PixelPlanets by Deep-Fold
The crate provides the PixelPlanetsPlugin plugin, which you should register as usual. After this planets are created by spawning an entity with the XParams component on it.
An observer watches for these components to be added and adds a Mesh and Materials so that the shader is rendered as expected. This was implemented using observers so that the user
does not need to worry about (or even know about) the different resources used to manage materials, which can be quite numerous.
- Name changes that I may revert even though I like my names better
- The original uses
dith || !should_ditherin various places. I assumed that this was incorrect and have changed it todith && should_dither - Shaders have been ported from GDShader to WGSL. This required various changes like data being packed into a single uniform. A lot of the shader code has been refactored to use the lovely (if infuriating)
naga_oilimport capabilities
I think there is but it didn't work for me on Bevy 0.18. Also I wanted to learn how to do shaders and make a better API for the plugin.
Portions of the code in this repo were developed with assistance from LLMs. While none of the code was written by an LLM, it was used for debugging and some architectural decisions.