feat: include for glsl (#24)

* refactor(gameplay): remove unused includes and members, clear vertex data after upload

* feat(shader-tools): add recursive #include support for shader sources

* refactor(shaders): extract noise and sky color functions into shared GLSL includes
This commit is contained in:
zhenyan121
2026-06-23 10:27:17 +08:00
committed by GitHub
parent 97993b72fe
commit d5a12869e6
11 changed files with 142 additions and 198 deletions

View File

@@ -7,11 +7,7 @@ namespace Cubed {
RiverWorm::RiverWorm() {}
RiverWorm::~RiverWorm() {}
void RiverWorm::init(unsigned world_seed) {
m_world_seed = world_seed;
m_random.init(m_world_seed);
}
void RiverWorm::init(unsigned world_seed) { m_world_seed = world_seed; }
void RiverWorm::reload(unsigned world_seed) {