mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 13:23:52 +00:00
Fix shader compile error
This commit is contained in:
parent
d0866d1b3c
commit
8141ee47d5
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ namespace MWRender
|
|||
"void main(void) \n"
|
||||
"{ \n"
|
||||
#if 1
|
||||
" float f = texture2D( texture, gl_TexCoord[0] ).r; \n"
|
||||
" float f = texture2D( texture, gl_TexCoord[0].xy ).r; \n"
|
||||
" \n"
|
||||
" f = 256.0 * f; \n"
|
||||
" float fC = floor( f ) / 256.0; \n"
|
||||
|
@ -45,7 +45,7 @@ namespace MWRender
|
|||
" \n"
|
||||
" gl_FragColor = vec4( fS + fH * color, 1 ); \n"
|
||||
#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"
|
||||
#endif
|
||||
"} \n";
|
||||
|
|
Loading…
Reference in a new issue