mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
input is reserved apparently
This commit is contained in:
parent
3b18f17f16
commit
394aab737d
1 changed files with 4 additions and 4 deletions
|
|
@ -678,10 +678,10 @@ static gl_shaderprogram_t gl_shaderprograms[MAXSHADERPROGRAMS];
|
|||
GLSL_DOOM_COLORMAP \
|
||||
GLSL_DOOM_LIGHT_EQUATION \
|
||||
"void main(void) {\n" \
|
||||
"float z = gl_FragCoord.z / gl_FragCoord.w;\n" \
|
||||
"float input = -pi * (z * freq) + (leveltime * speed);\n" \
|
||||
"float sdistort = sin(input) * amp;\n" \
|
||||
"float cdistort = cos(input) * amp;\n" \
|
||||
"float z = (gl_FragCoord.z / gl_FragCoord.w) / 2;\n" \
|
||||
"float a = -pi * (z * freq) + (leveltime * speed);\n" \
|
||||
"float sdistort = sin(a) * amp;\n" \
|
||||
"float cdistort = cos(a) * amp;\n" \
|
||||
"vec4 texel = texture2D(tex, vec2(gl_TexCoord[0].s - sdistort, gl_TexCoord[0].t - cdistort));\n" \
|
||||
"vec4 base_color = texel * poly_color;\n" \
|
||||
"vec4 final_color = base_color;\n" \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue