(test) ensure aspect ratio is correctly set if viewport is not square
This commit is contained in:
@@ -273,7 +273,7 @@ class TestHelper {
|
|||||||
final camera = await viewer.getActiveCamera();
|
final camera = await viewer.getActiveCamera();
|
||||||
|
|
||||||
await camera.setLensProjection(
|
await camera.setLensProjection(
|
||||||
near: kNear, far: kFar, aspect: 1.0, focalLength: kFocalLength);
|
near: kNear, far: kFar, aspect: viewportDimensions.width / viewportDimensions.height, focalLength: kFocalLength);
|
||||||
|
|
||||||
await camera.lookAt(cameraPosition);
|
await camera.lookAt(cameraPosition);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user