Cycles:
* 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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user