1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 12:53:51 +00:00

Fix shader compile error

This commit is contained in:
scrawl 2017-10-31 20:22:14 +01:00
parent d0866d1b3c
commit 8141ee47d5

View file

@ -18,7 +18,7 @@ namespace MWRender
"void main(void) \n" "void main(void) \n"
"{ \n" "{ \n"
#if 1 #if 1
" float f = texture2D( texture, gl_TexCoord[0] ).r; \n" " float f = texture2D( texture, gl_TexCoord[0].xy ).r; \n"
" \n" " \n"
" f = 256.0 * f; \n" " f = 256.0 * f; \n"
" float fC = floor( f ) / 256.0; \n" " float fC = floor( f ) / 256.0; \n"
@ -45,7 +45,7 @@ namespace MWRender
" \n" " \n"
" gl_FragColor = vec4( fS + fH * color, 1 ); \n" " gl_FragColor = vec4( fS + fH * color, 1 ); \n"
#else #else
" gl_FragColor = texture2D(texture, gl_TexCoord[0]); \n" " gl_FragColor = texture2D(texture, gl_TexCoord[0].xy); \n"
" //gl_FragColor = vec4(1.0, 0.5, 0.5, 1.0); \n" " //gl_FragColor = vec4(1.0, 0.5, 0.5, 1.0); \n"
#endif #endif
"} \n"; "} \n";