mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Add special fog modes support for texrects.
Fixed lode runner: missing blending effect on texts #275
This commit is contained in:
parent
30d6792a17
commit
4f0b0631b9
|
@ -111,6 +111,14 @@ static const char* vertex_shader =
|
|||
" vTexCoord0 = aTexCoord0; \n"
|
||||
" vTexCoord1 = aTexCoord1; \n"
|
||||
" vNumLights = 0.0; \n"
|
||||
" switch (uFogMode) { \n"
|
||||
" case 1: \n"
|
||||
" vFogFragCoord = uFogColor.a; \n"
|
||||
" break; \n"
|
||||
" case 2: \n"
|
||||
" vFogFragCoord = 1.0 - uFogColor.a; \n"
|
||||
" break; \n"
|
||||
" } \n"
|
||||
" } \n"
|
||||
" gl_ClipDistance[0] = gl_Position.w - gl_Position.z; \n"
|
||||
"} \n"
|
||||
|
|
Loading…
Reference in New Issue
Block a user