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:
parent
8b0f803512
commit
569c088bcc
1 changed files with 5 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue