Fix T46055: Volume doesn't render when PANORAMIC Camera is inside volume mesh

This commit is contained in:
Sergey Sharybin
2015-09-09 13:57:54 +05:00
parent d13a0e8f4a
commit c87ee8da2c

View File

@@ -425,9 +425,9 @@ BoundBox Camera::viewplane_bounds_get()
BoundBox bounds = BoundBox::empty;
if(type == CAMERA_PANORAMA) {
bounds.grow(make_float3(cameratoworld.w.x,
cameratoworld.w.y,
cameratoworld.w.z));
bounds.grow(make_float3(cameratoworld.x.w,
cameratoworld.y.w,
cameratoworld.z.w));
}
else {
bounds.grow(transform_raster_to_world(0.0f, 0.0f));