1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 19:18:05 +00:00

accessors created for shader uniforms

This commit is contained in:
Zeno Rogue
2019-09-05 11:58:47 +02:00
parent 339f6820fe
commit caf838ed22
3 changed files with 20 additions and 8 deletions

View File

@@ -381,6 +381,21 @@ struct GLprogram {
};
EX void set_index_sl(ld x) {
glUniform1f(glhr::current->uIndexSL, x);
}
EX void set_sl_iterations(int steps) {
glUniform1i(glhr::current->uIterations, steps);
}
EX void set_solv_prec(int x, int y, int z) {
glUniform1i(glhr::current->tInvExpTable, glhr::INVERSE_EXP_BINDING);
glUniform1f(glhr::current->uPRECX, x);
glUniform1f(glhr::current->uPRECY, y);
glUniform1f(glhr::current->uPRECZ, z);
}
GLprogram *programs[gmMAX][int(shader_projection::MAX)];
string stringbuilder() { return ""; }