Constructor
new VRRenderer(shader1, shader2, set, camera, scene, params, threeRenderer)
- Source:
- To Do:
-
Check the impact of the pixel ratio (for the three.js camera)
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
shader1 |
string | the first part of the geometry dependent shader |
shader2 |
string | the second part of the geometry dependent shader |
set |
TeleportationSet | the underlying teleportation set |
camera |
VRCamera | the camera |
scene |
Scene | the scene |
params |
Object | parameters for the underlying Three.js renderer |
threeRenderer |
WebGLRenderer | Object | parameters for the underlying Three.js renderer |
Classes
Members
(private) _fragmentBuilder :Array.<ShaderBuilder>
- Source:
Builder for the fragment shader. The first one correspond to the left eye, the second one to the right eye
Type:
- Array.<ShaderBuilder>
xr
- Source:
Shortcut to access the Three.js WebXRManager