Specify camera parameters using standard robotics conventions.
PiperOrigin-RevId: 569147555 Change-Id: I3443f95e5de56a17024f5e5c03f33888dd583edb
This commit is contained in:
committed by
Copybara-Service
parent
ca60de79c8
commit
36d2ffe4f2
@@ -722,6 +722,7 @@ mjvGLCamera mjv_averageCamera(const mjvGLCamera* cam1, const mjvGLCamera* cam2)
|
||||
cam.frustum_bottom = 0.5f * (cam1->frustum_bottom + cam2->frustum_bottom);
|
||||
cam.frustum_top = 0.5f * (cam1->frustum_top + cam2->frustum_top);
|
||||
cam.frustum_center = 0.5f * (cam1->frustum_center + cam2->frustum_center);
|
||||
cam.frustum_width = 0.5f * (cam1->frustum_width + cam2->frustum_width);
|
||||
cam.frustum_near = 0.5f * (cam1->frustum_near + cam2->frustum_near);
|
||||
cam.frustum_far = 0.5f * (cam1->frustum_far + cam2->frustum_far);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user