mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Cleaned up whitespace
Fixed Directional Attenuation (assumed, data was light dir vector already, but it was not!)
This commit is contained in:
parent
f475e367f2
commit
0a9257ad37
@ -61,7 +61,7 @@ static void GenerateLightShader(T& object, LightingUidData& uid_data, int index,
|
||||
{
|
||||
case LIGHTATTN_NONE:
|
||||
case LIGHTATTN_DIR:
|
||||
object.Write("ldir = normalize(" LIGHT_POS".xyz);\n", LIGHT_POS_PARAMS(index));
|
||||
object.Write("ldir = normalize(" LIGHT_POS".xyz - pos.xyz);\n", LIGHT_POS_PARAMS(index));
|
||||
object.Write("attn = 1.0f;\n");
|
||||
break;
|
||||
case LIGHTATTN_SPEC:
|
||||
|
Loading…
x
Reference in New Issue
Block a user