Limit-Theory-Redux / ltheory

Limit Theory Redux is a fork of the discontinued open-world space simulation game Limit Theory. We have made it our mission to continue the development of the ambitious Limit Theory project as an open source initiative.
Apache License 2.0
58 stars 7 forks source link

Rewrite Shader and ShaderState to use modern Rust constructs, move it to luajit-ffi-gen #295

Closed dgavedissian closed 2 months ago

dgavedissian commented 2 months ago

Unfortunately, we still export the old "current shader" API for setting uniforms.

I'd like to transition to a new system where we allow shader:setFloat3(...), and this will "enqueue" the uniform in a hashmap which gets applied when the shader is bound before rendering. If the shader is bound already, it will just apply the uniform immediately.