Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ion-content>
- <a-scene *ngIf="iosReady"
- renderer="alpha: true;
- colorManagement: true;
- sortObjects: true;
- physicallyCorrectLights: true;
- maxCanvasWidth: 1920;
- maxCanvasHeight: 1920;">
- <a-gltf-model position="1 1 -4"
- src="/assets/models/LibertStatue.gltf" ></a-gltf-model>
- </a-scene>
- </ion-content>`
- const cameraPreviewOpts: CameraPreviewOptions = {
- x: 0,
- y: 0,
- width: window.screen.width,
- height: window.screen.height,
- camera: 'rear',
- tapPhoto: true,
- previewDrag: true,
- toBack: true,
- alpha: 1
- }
- CameraPreview.startCamera(cameraPreviewOpts).then(
- (res) => {
- console.log(res);
- },
- (err) => {
- console.log(err);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement