mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 02:01:31 +00:00
- 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:
parent
3d538b4c8f
commit
cf30f5560b
6 changed files with 51 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue