mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
OGL fade alpha support
This commit is contained in:
parent
8484ba9294
commit
b03cfe302d
2 changed files with 2 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ struct FSurfaceInfo
|
||||||
typedef struct FSurfaceInfo FSurfaceInfo;
|
typedef struct FSurfaceInfo FSurfaceInfo;
|
||||||
|
|
||||||
#define GL_DEFAULTMIX 0x00000000
|
#define GL_DEFAULTMIX 0x00000000
|
||||||
#define GL_DEFAULTFOG 0xFF000000
|
#define GL_DEFAULTFOG 0x19000000
|
||||||
|
|
||||||
//Hurdler: added for backward compatibility
|
//Hurdler: added for backward compatibility
|
||||||
enum hwdsetspecialstate
|
enum hwdsetspecialstate
|
||||||
|
|
|
||||||
|
|
@ -723,6 +723,7 @@ static GLRGBAFloat shader_defaultcolor = {1.0f, 1.0f, 1.0f, 1.0f};
|
||||||
"colorIntensity = abs(colorIntensity - (fogBrightness));\n" \
|
"colorIntensity = abs(colorIntensity - (fogBrightness));\n" \
|
||||||
"}\n" \
|
"}\n" \
|
||||||
"colorIntensity *= darkness;\n" \
|
"colorIntensity *= darkness;\n" \
|
||||||
|
"colorIntensity *= fade_color.a * 10.0;\n" \
|
||||||
"if (abs(final_color.r - fade_color.r) <= colorIntensity) {\n" \
|
"if (abs(final_color.r - fade_color.r) <= colorIntensity) {\n" \
|
||||||
"final_color.r = fade_color.r;\n" \
|
"final_color.r = fade_color.r;\n" \
|
||||||
"} else if (final_color.r < fade_color.r) {\n" \
|
"} else if (final_color.r < fade_color.r) {\n" \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue