1
0
Fork 0
forked from fte/fteqw

works on ATI cards now

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@814 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-18 21:05:43 +00:00
parent 8b0f803512
commit 569c088bcc

View file

@ -179,10 +179,10 @@ void GL_InitSceneProcessingShaders (void)
{\
float amptemp;\
vec3 edge;\
edge = texture2D( theTexture2, v_texCoord2 );\
edge = texture2D( theTexture2, v_texCoord2 ).rgb;\
amptemp = ampscale * edge.x;\
vec3 offset;\
offset = texture2D( theTexture1, v_texCoord1 );\
offset = texture2D( theTexture1, v_texCoord1 ).rgb;\
offset.x = (offset.x - 0.5) * 2.0;\
offset.y = (offset.y - 0.5) * 2.0;\
vec2 temp;\
@ -200,6 +200,9 @@ void GL_InitSceneProcessingShaders (void)
scenepp_ww_program = GLSlang_CreateProgram(vert, frag);
if (!scenepp_ww_program)
return;
scenepp_ww_parm_texture0i = GLSlang_GetUniformLocation(scenepp_ww_program, "theTexture0");
scenepp_ww_parm_texture1i = GLSlang_GetUniformLocation(scenepp_ww_program, "theTexture1");
scenepp_ww_parm_texture2i = GLSlang_GetUniformLocation(scenepp_ww_program, "theTexture2");