meta: Refactor the shader code + online code generation