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:
6
glhr.cpp
6
glhr.cpp
@@ -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");
|
||||
|
Reference in New Issue
Block a user