Class: VRRenderer

VRRenderer

new VRRenderer(canvas, distorted, cameraController)

Creates renderer for VR
Parameters:
Name Type Description
canvas Canvas
distorted Boolean
cameraController Ayce.CameraManager
Source:

Methods

init()

Initializes VR renderer
Source:

render(camera, objects, transparentObjects)

Renders objects
Parameters:
Name Type Description
camera Camera
objects Array.<Ayce.Object3D>
transparentObjects Array.<Ayce.Object3D>
Source:

resize()

Handles canvas resizing
Source:

update(camera, objects, transparentObjects)

Updates objects
Parameters:
Name Type Description
camera Camera
objects Array.<Ayce.Object3D>
transparentObjects Array.<Ayce.Object3D>
Source:

(inner) initBuffers()

Initializes buffers for squares with texture (later converted to frame buffer)
Source:

(inner) initTextureFramebuffer() → {Array}

Initializes framebuffer for scene rendering for one eye
Source:
Returns:
framebufferAndTexture
Type
Array

(inner) renderObjects(objects, eye)

Renders Objects
Parameters:
Name Type Description
objects Array.<Ayce.Object3D>
eye String
Source:

(inner) vrRender(objects, transparentObjects)

Renders scene to frame buffers
Parameters:
Name Type Description
objects Array.<Ayce.Object3D>
transparentObjects Array.<Ayce.Object3D>
Source:

(inner) vrRenderDistorted(objects, transparentObjects)

Renders scene to frame buffer with shader for barrel distortion correction and collor abberation
Parameters:
Name Type Description
objects Array.<Ayce.Object3D>
transparentObjects Array.<Ayce.Object3D>
Source: