Code cleanup / Cycles:

* Simplify shaperadius() function a bit to avoid castings.
* Style cleanup 1.f -> 1.0f, to follow rest of Cycles code.
This commit is contained in:
Thomas Dinges
2013-05-18 11:04:29 +00:00
parent f314ff02bd
commit 75e36650e3
4 changed files with 6 additions and 5 deletions

View File

@@ -1141,7 +1141,7 @@ __device void kernel_path_trace(KernelGlobals *kg,
#endif
}
else
L = make_float4(0.f, 0.f, 0.f, 0.f);
L = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
/* accumulate result in output buffer */
kernel_write_pass_float4(buffer, sample, L);