Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <ion-content>
  2. <a-scene *ngIf="iosReady"
  3. renderer="alpha: true;
  4. colorManagement: true;
  5. sortObjects: true;
  6. physicallyCorrectLights: true;
  7. maxCanvasWidth: 1920;
  8. maxCanvasHeight: 1920;">
  9. <a-gltf-model position="1 1 -4"
  10. src="/assets/models/LibertStatue.gltf" ></a-gltf-model>
  11. </a-scene>
  12. </ion-content>`
  13.  
  14. const cameraPreviewOpts: CameraPreviewOptions = {
  15. x: 0,
  16. y: 0,
  17. width: window.screen.width,
  18. height: window.screen.height,
  19. camera: 'rear',
  20. tapPhoto: true,
  21. previewDrag: true,
  22. toBack: true,
  23. alpha: 1
  24. }
  25.  
  26.  
  27. CameraPreview.startCamera(cameraPreviewOpts).then(
  28. (res) => {
  29. console.log(res);
  30. },
  31. (err) => {
  32. console.log(err);
  33. });
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement