iframe Reality Layers

Exokit implements normal <iframe> functionality with the ability to do volumetric manipulation.

Create an iframe

const iframe = document.createElement('iframe');

  • iframe.src
    • The URL or file path.
  • iframe.positon
    • The position vector as an array.
  • iframe.scale
    • The scale vector as an array.
  • iframe.orientation
    • The orientation quaternion as an array.
  • iframe.d
    • The dimensions of the iframe. 2 gives you DOM-to-texture. 3 gives you reality layers.

then the iframe needs to be put onto the session layers: display.session.layers.push(iframe);