(test) ensure aspect ratio is correctly set if viewport is not square
This commit is contained in:
1 parent
5a74345fe1
commit
94683ab5a9
1 file changed
+1
-1
@@ -273,7 +273,7 @@ class TestHelper {
|
||||
final camera = await viewer.getActiveCamera();
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user