1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 10:17:56 +00:00

disk model in Euclidean and hyperbolic

This commit is contained in:
Zeno Rogue
2020-12-28 22:00:56 +01:00
parent 266e4e43c4
commit 38eb8c5122
3 changed files with 64 additions and 1 deletions

View File

@@ -298,6 +298,7 @@ struct GLprogram {
GLint uFog, uFogColor, uColor, tTexture, tInvExpTable, tAirMap, uMV, uProjection, uAlpha, uFogBase, uPP;
GLint uPRECX, uPRECY, uPRECZ, uIndexSL, uIterations, uLevelLines, uSV, uRadarTransform;
GLint uRotSin, uRotCos, uRotNil;
GLint uDepthScaling, uCamera, uDepth;
flagtype shader_flags;
@@ -364,6 +365,7 @@ GLprogram::GLprogram(string vsh, string fsh) {
uAlpha = -1;
uLevelLines = -1;
uFogColor = -1;
uDepthScaling = uCamera = uDepth = -1;
uColor = tTexture = tInvExpTable = tAirMap = -1;
uFogBase = -1;
@@ -426,6 +428,10 @@ GLprogram::GLprogram(string vsh, string fsh) {
tInvExpTable = glGetUniformLocation(_program, "tInvExpTable");
tAirMap = glGetUniformLocation(_program, "tAirMap");
uDepth = glGetUniformLocation(_program, "uDepth");
uDepthScaling = glGetUniformLocation(_program, "uDepthScaling");
uCamera = glGetUniformLocation(_program, "uCamera");
uPRECX = glGetUniformLocation(_program, "PRECX");
uPRECY = glGetUniformLocation(_program, "PRECY");
uPRECZ = glGetUniformLocation(_program, "PRECZ");