mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Cleaned up whitespace
Fixed Directional Attenuation (assumed, data was light dir vector already, but it was not!)
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user