- upgraded the polymost fragment shader to GLSL 3.3 as well, removing all legacy features from it.

The only compatibility mode feature left is the main drawer function using glBegin/glEnd but changing that is not as urgent as the rest.
This also cleans up the fog application and adds the exponential fog mode again that somehow got lost over time.
This commit is contained in:
Christoph Oelckers 2019-10-06 12:42:35 +02:00
parent 3d538b4c8f
commit cf30f5560b
6 changed files with 51 additions and 30 deletions

View file

@ -156,14 +156,17 @@ bool PolymostShader::Load(const char * name, const char * vert_prog, const char
NPOTEmulationFactor.Init(hShader, "u_npotEmulationFactor");
NPOTEmulationXOffset.Init(hShader, "u_npotEmulationXOffset");
Brightness.Init(hShader, "u_brightness");
ShadeInterpolate.Init(hShader, "u_shadeInterpolate");
Fog.Init(hShader, "u_fog");
FogColor.Init(hShader, "u_fogColor");
RotMatrix.Init(hShader, "u_rotMatrix");
ModelMatrix.Init(hShader, "u_modelMatrix");
ProjectionMatrix.Init(hShader, "u_projectionMatrix");
DetailMatrix.Init(hShader, "u_detailMatrix");
GlowMatrix.Init(hShader, "u_glowMatrix");
ShadeInterpolate.Init(hShader, "u_shadeInterpolate");
glUseProgram(hShader);
int SamplerLoc;