* Sun, area and point lights with size now supported
* Cast shadow option to disable shadow casting for lamps
* Emission strength of materials tweaked such that setting strength to 1.0
  basically makes the material "shadeless" in that the value of the color
  input will be the resulting color in the image.
This commit is contained in:
Brecht Van Lommel
2011-10-15 23:49:01 +00:00
parent d293d74942
commit d5b679253a
10 changed files with 83 additions and 36 deletions

View File

@@ -64,7 +64,7 @@ public:
Color3 eval (const Vec3 &Ng, const Vec3 &omega_out) const
{
float cosNO = fabsf(Ng.dot(omega_out));
float res = cosNO > 0 ? 1.0f / float(M_PI) : 0.0f;
float res = cosNO > 0 ? 1.0f: 0.0f;
return Color3(res, res, res);
}
@@ -91,7 +91,7 @@ public:
const Vec3 &omega_out) const
{
float cosNO = Ng.dot(omega_out);
return cosNO > 0 ? 1.0f / float(M_PI) : 0.0f;
return cosNO > 0 ? 1.0f: 0.0f;
}
};