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 {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs