rename CameraPtr to TCamera and use named arguments for setCameraLensProjection

This commit is contained in:
Nick Fisher
2024-09-20 18:31:20 +08:00
parent 7cb3080596
commit ddbb4ec5c6
7 changed files with 77 additions and 77 deletions

View File

@@ -92,7 +92,7 @@ void main() async {
print(frustum.plane5.normal);
print(frustum.plane5.constant);
await viewer.setCameraLensProjection(10.0, 1000.0, 1.0, 28.0);
await viewer.setCameraLensProjection(near:10.0, far:1000.0, aspect:1.0, focalLength:28.0);
frustum = await viewer.getCameraFrustum();
print(frustum.plane5.normal);
print(frustum.plane5.constant);