summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Src/TransformUnit.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2013-10-29 01:23:17 -0400
committercomex <comexk@gmail.com>2013-11-03 20:54:05 -0500
commitc579637eafb9e9eb7f83711569254bd8da6d09d2 (patch)
tree901c8311f4d1d2064df916a7e4cff7c1804c0a9e /Source/Core/VideoBackends/Software/Src/TransformUnit.cpp
parent965b32be9c38cb8f03632ab15f3a0d3aa98004af (diff)
Run code through the advanced tool 'sed' to remove trailing whitespace.
Diffstat (limited to 'Source/Core/VideoBackends/Software/Src/TransformUnit.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Src/TransformUnit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/Src/TransformUnit.cpp b/Source/Core/VideoBackends/Software/Src/TransformUnit.cpp
index a1c2bd190a..e00f05e4aa 100644
--- a/Source/Core/VideoBackends/Software/Src/TransformUnit.cpp
+++ b/Source/Core/VideoBackends/Software/Src/TransformUnit.cpp
@@ -248,7 +248,7 @@ void LightColor(const Vec3 &pos, const Vec3 &normal, u8 lightNum, const LitChann
float attn;
if (chan.attnfunc == 3) // spot
- {
+ {
float dist2 = ldir.length2();
float dist = sqrtf(dist2);
ldir = ldir / dist;
@@ -259,7 +259,7 @@ void LightColor(const Vec3 &pos, const Vec3 &normal, u8 lightNum, const LitChann
attn = SafeDivide(max(0.0f, cosAtt), distAtt);
}
else if (chan.attnfunc == 1) // specular
- {
+ {
// donko - what is going on here? 655.36 is a guess but seems about right.
attn = (light->pos * normal) > -655.36 ? max(0.0f, (light->dir * normal)) : 0;
ldir.set(1.0f, attn, attn * attn);