Cycles / Orthographic Camera:
* Avoid one unneeded division by 1.0f and save one variable assignment.
This commit is contained in:
@@ -109,8 +109,7 @@ __device void camera_sample_orthographic(KernelGlobals *kg, float raster_x, floa
|
||||
float2 lensuv = camera_sample_aperture(kg, lens_u, lens_v)*aperturesize;
|
||||
|
||||
/* compute point on plane of focus */
|
||||
float ft = kernel_data.cam.focaldistance/ray->D.z;
|
||||
float3 Pfocus = ray->D*ft;
|
||||
float3 Pfocus = ray->D * kernel_data.cam.focaldistance;
|
||||
|
||||
/* update ray for effect of lens */
|
||||
float3 lensuvw = make_float3(lensuv.x, lensuv.y, 0.0f);
|
||||
|
Reference in New Issue
Block a user