Revert "Expose water ripple as a uniform to allow for water ripple shaders"
This reverts commit 0c8d2efce0.
I had the idea of applying this flag to more surfaces in hardcode but not so sure thats a good idea anymore
This commit is contained in:
parent
35edca61db
commit
799b1ec0d3
1 changed files with 0 additions and 6 deletions
|
|
@ -656,8 +656,6 @@ typedef enum
|
|||
|
||||
gluniform_scr_resolution,
|
||||
|
||||
gluniform_water_ripple,
|
||||
|
||||
gluniform_max,
|
||||
} gluniform_t;
|
||||
|
||||
|
|
@ -1945,8 +1943,6 @@ static void Shader_SetUniforms(FSurfaceInfo *Surface, GLRGBAFloat *poly, GLRGBAF
|
|||
|
||||
UNIFORM_2(shader->uniforms[gluniform_scr_resolution], (GLfloat)vid.width, (GLfloat)vid.height, pglUniform2f);
|
||||
|
||||
UNIFORM_1(shader->uniforms[gluniform_water_ripple], !!(Surface && (Surface->PolyFlags & PF_Ripple)), pglUniform1f);
|
||||
|
||||
#undef UNIFORM_1
|
||||
#undef UNIFORM_2
|
||||
#undef UNIFORM_3
|
||||
|
|
@ -2083,8 +2079,6 @@ static boolean Shader_CompileProgram(gl_shader_t *shader, GLint i)
|
|||
// misc. (custom shaders)
|
||||
shader->uniforms[gluniform_leveltime] = GETUNI("leveltime");
|
||||
|
||||
shader->uniforms[gluniform_water_ripple] = GETUNI("water_ripple");
|
||||
|
||||
#undef GETUNI
|
||||
|
||||
// set permanent uniform values
|
||||
|
|
|
|||
Loading…
Reference in a new issue