Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.
Discussion options

You must be logged in to vote

I tried the following:

<ngt-canvas
  vr
  [shadows]="true"
  [camera]="{ position: [-5, 5, 5], fov: 75 }"
  [scene]="{ background: 'black' | color }"
  (created)="onCreated($event)"
>
  <ngt-ambient-light [intensity]="0.8"></ngt-ambient-light>
  <ngt-point-light [intensity]="1" [position]="[0, 6, 0]"></ngt-point-light>

  <ngt-soba-box>
    <ngt-mesh-basic-material
      [parameters]="{ wireframe: true }"
    ></ngt-mesh-basic-material>
  </ngt-soba-box>

  <ngt-soba-orbit-controls></ngt-soba-orbit-controls>

  <ngt-stats></ngt-stats>
</ngt-canvas>
onCreated($event: NgtCreatedState) {
  document.body.appendChild(VRButton.createButton($event.renderer));
}


This is the result. Give that a try?

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Gregory-Bach
Comment options

You must be logged in to vote
1 reply
@nartc
Comment options

nartc Jan 5, 2022
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants