setCameraFov method
Sets the current scene camera to the glTF camera under name
in entity
.
Implementation
@override
Future setCameraFov(double degrees, double width, double height) async {
_module.ccall(
"set_camera_fov",
"void",
["void*".toJS, "float".toJS, "float".toJS].toJS,
[_viewer!, degrees.toJS, (width / height).toJS].toJS,
null);
}