Open McCallisterRomer opened 2 years ago
Also Environment
requires loading a mesh.
Additionally, something like #embed
would be ideal here. That way we wouldn't even have to ship the files for default assets. I don't know how soon it will be available to us (c23, possibly c++26), but its worth keeping an eye one.
The engine uses the default plane and cube assets for debug rendering and particles. Currently these are loaded in the techniques that use them. This should be made a clearer step during engine initialization, with all asset loading happening in one place.This should also include loading all default assets, rather than just what the engine uses. It does not make sense for a use to need to load some engine-provided assets but not others.If this creates any redundant loading in the editor, that should be cleaned up.This was mostly addressed in #474. Shaders didn't make the cut, and
#embed
is the ultimate solution, once available.