mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-03 03:07:56 +00:00
primitive rendering now implemented for stretched H2xE; removed the old implementation of SL(2,R)
This commit is contained in:
7
glhr.cpp
7
glhr.cpp
@@ -274,7 +274,7 @@ struct GLprogram {
|
||||
GLuint vertShader, fragShader;
|
||||
|
||||
GLint uFog, uFogColor, uColor, tTexture, tInvExpTable, uMV, uProjection, uAlpha, uFogBase, uPP;
|
||||
GLint uPRECX, uPRECY, uPRECZ, uIndexSL, uIterations, uLevelLines;
|
||||
GLint uPRECX, uPRECY, uPRECZ, uIndexSL, uIterations, uLevelLines, uSV;
|
||||
|
||||
flagtype shader_flags;
|
||||
|
||||
@@ -397,6 +397,7 @@ GLprogram::GLprogram(string vsh, string fsh) {
|
||||
uPRECY = glGetUniformLocation(_program, "PRECY");
|
||||
uPRECZ = glGetUniformLocation(_program, "PRECZ");
|
||||
uIndexSL = glGetUniformLocation(_program, "uIndexSL");
|
||||
uSV = glGetUniformLocation(_program, "uSV");
|
||||
uIterations = glGetUniformLocation(_program, "uIterations");
|
||||
uLevelLines = glGetUniformLocation(_program, "uLevelLines");
|
||||
}
|
||||
@@ -411,6 +412,10 @@ EX void set_index_sl(ld x) {
|
||||
glUniform1f(glhr::current_glprogram->uIndexSL, x);
|
||||
}
|
||||
|
||||
EX void set_sv(ld x) {
|
||||
glUniform1f(glhr::current_glprogram->uSV, x);
|
||||
}
|
||||
|
||||
EX void set_sl_iterations(int steps) {
|
||||
glUniform1i(glhr::current_glprogram->uIterations, steps);
|
||||
}
|
||||
|
Reference in New Issue
Block a user