mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Revert "Down this route lies madness"
This reverts commit 6cad59caf4add6d36f03d21d1785e445ca9bd999.
This commit is contained in:
parent
8ab57474a0
commit
fca66eaf53
1 changed files with 1 additions and 6 deletions
|
@ -49,9 +49,7 @@ static void GenerateLightShader(ShaderCode& object, const LightingUidData& uid_d
|
||||||
" cosine = max(0.0, dot(_normal, " LIGHT_DIR ".xyz));\n",
|
" cosine = max(0.0, dot(_normal, " LIGHT_DIR ".xyz));\n",
|
||||||
LIGHT_DIR_PARAMS(index));
|
LIGHT_DIR_PARAMS(index));
|
||||||
object.Write(" }}\n"
|
object.Write(" }}\n"
|
||||||
" ldir = " LIGHT_DIR ".xyz;\n",
|
" // Specular lights use the angle for the denominator as well\n"
|
||||||
LIGHT_DIR_PARAMS(index));
|
|
||||||
object.Write(" // Specular lights use the angle for the denominator as well\n"
|
|
||||||
" dist = cosine;\n"
|
" dist = cosine;\n"
|
||||||
" dist2 = dist * dist;\n");
|
" dist2 = dist * dist;\n");
|
||||||
break;
|
break;
|
||||||
|
@ -101,9 +99,6 @@ static void GenerateLightShader(ShaderCode& object, const LightingUidData& uid_d
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attn_func == AttenuationFunc::Spec && diffuse_func != DiffuseFunc::None)
|
|
||||||
object.Write(" diffuse *= (2048.0 + 1024.0);\n");
|
|
||||||
|
|
||||||
object.Write(" lacc.{} += int{}(round(attn * diffuse * float{}(" LIGHT_COL ")));\n", swizzle,
|
object.Write(" lacc.{} += int{}(round(attn * diffuse * float{}(" LIGHT_COL ")));\n", swizzle,
|
||||||
swizzle_components, swizzle_components, LIGHT_COL_PARAMS(index, swizzle));
|
swizzle_components, swizzle_components, LIGHT_COL_PARAMS(index, swizzle));
|
||||||
object.Write(" }}\n");
|
object.Write(" }}\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue