Alter Camera3D FOV bounds error conditions from between 1 and 179 inclusive to between 0 and 180 exclusive.
This is to allow for vertical viewing angles of less than one, for virtual broadcast productions and real world lens matching. Most 40x sports broadcast lenses have a sub one degree vertical viewing angle, as do most zoom lenses with extenders. At present Godot cannot be used for a good deal of virtual production / sports AR scenarios. Tested on 4.6, no attempt made to change the editor hint as it remains sensible for most use cases.
This commit is contained in:
@@ -729,7 +729,7 @@ Camera3D::ProjectionType Camera3D::get_projection() const {
|
||||
}
|
||||
|
||||
void Camera3D::set_fov(real_t p_fov) {
|
||||
ERR_FAIL_COND(p_fov < 1 || p_fov > 179);
|
||||
ERR_FAIL_COND(p_fov <= CMP_EPSILON || p_fov >= 180.0 - CMP_EPSILON);
|
||||
fov = p_fov;
|
||||
_update_camera_mode();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user