mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix for missing part of lighting calculation compared to software.
This commit is contained in:
parent
13285d0ca4
commit
ca531738ab
1 changed files with 4 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ FUNCPRINTF void GL_DBG_Printf(const char *format, ...)
|
||||||
char str[4096] = "";
|
char str[4096] = "";
|
||||||
va_list arglist;
|
va_list arglist;
|
||||||
|
|
||||||
if (gllogstream)
|
if (gllogstream)
|
||||||
{
|
{
|
||||||
va_start(arglist, format);
|
va_start(arglist, format);
|
||||||
vsnprintf(str, 4096, format, arglist);
|
vsnprintf(str, 4096, format, arglist);
|
||||||
va_end(arglist);
|
va_end(arglist);
|
||||||
|
|
@ -703,8 +703,10 @@ static INT32 shader_leveltime = 0;
|
||||||
"float colorIntensity = 0.0;\n" \
|
"float colorIntensity = 0.0;\n" \
|
||||||
"if (fogBrightness > colorBrightness) {\n" \
|
"if (fogBrightness > colorBrightness) {\n" \
|
||||||
"colorIntensity = 1.0 - min(final_color.r, min(final_color.g, final_color.b));\n" \
|
"colorIntensity = 1.0 - min(final_color.r, min(final_color.g, final_color.b));\n" \
|
||||||
|
"colorIntensity = abs(colorIntensity - (1.0 - fogBrightness));\n" \
|
||||||
"} else {\n" \
|
"} else {\n" \
|
||||||
"colorIntensity = max(final_color.r, max(final_color.g, final_color.b));\n" \
|
"colorIntensity = max(final_color.r, max(final_color.g, final_color.b));\n" \
|
||||||
|
"colorIntensity = abs(colorIntensity - (fogBrightness));\n" \
|
||||||
"}\n" \
|
"}\n" \
|
||||||
"colorIntensity *= darkness;\n" \
|
"colorIntensity *= darkness;\n" \
|
||||||
"if (abs(final_color.r - fade_color.r) <= colorIntensity) {\n" \
|
"if (abs(final_color.r - fade_color.r) <= colorIntensity) {\n" \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue