[Bf-blender-cvs] [049510f4258] blender-v3.0-release: Fix T92491: Cycles panoramic camera inside volume fails with near clipping
Brecht Van Lommel
noreply at git.blender.org
Thu Oct 28 22:21:42 CEST 2021
Commit: 049510f42580b7948ddca5eb36fd30dbe0143626
Author: Brecht Van Lommel
Date: Thu Oct 28 21:42:20 2021 +0200
Branches: blender-v3.0-release
https://developer.blender.org/rB049510f42580b7948ddca5eb36fd30dbe0143626
Fix T92491: Cycles panoramic camera inside volume fails with near clipping
===================================================================
M intern/cycles/scene/camera.cpp
===================================================================
diff --git a/intern/cycles/scene/camera.cpp b/intern/cycles/scene/camera.cpp
index 5877b82ead5..5bafe736fb5 100644
--- a/intern/cycles/scene/camera.cpp
+++ b/intern/cycles/scene/camera.cpp
@@ -592,22 +592,26 @@ BoundBox Camera::viewplane_bounds_get()
if (camera_type == CAMERA_PANORAMA) {
if (use_spherical_stereo == false) {
- bounds.grow(make_float3(cameratoworld.x.w, cameratoworld.y.w, cameratoworld.z.w));
+ bounds.grow(make_float3(cameratoworld.x.w, cameratoworld.y.w, cameratoworld.z.w), nearclip);
}
else {
float half_eye_distance = interocular_distance * 0.5f;
- bounds.grow(make_float3(
- cameratoworld.x.w + half_eye_distance, cameratoworld.y.w, cameratoworld.z.w));
+ bounds.grow(
+ make_float3(cameratoworld.x.w + half_eye_distance, cameratoworld.y.w, cameratoworld.z.w),
+ nearclip);
- bounds.grow(make_float3(
- cameratoworld.z.w, cameratoworld.y.w + half_eye_distance, cameratoworld.z.w));
+ bounds.grow(
+ make_float3(cameratoworld.z.w, cameratoworld.y.w + half_eye_distance, cameratoworld.z.w),
+ nearclip);
- bounds.grow(make_float3(
- cameratoworld.x.w - half_eye_distance, cameratoworld.y.w, cameratoworld.z.w));
+ bounds.grow(
+ make_float3(cameratoworld.x.w - half_eye_distance, cameratoworld.y.w, cameratoworld.z.w),
+ nearclip);
- bounds.grow(make_float3(
- cameratoworld.x.w, cameratoworld.y.w - half_eye_distance, cameratoworld.z.w));
+ bounds.grow(
+ make_float3(cameratoworld.x.w, cameratoworld.y.w - half_eye_distance, cameratoworld.z.w),
+ nearclip);
}
}
else {
More information about the Bf-blender-cvs
mailing list