In the defaults options object in plugin.js, there is now a property called threeRendererOptions containing values previously hardcoded.
The renderer is now instantiated with options_.threeRendererOptions which is a merged result of the default values and those supplied by the user (if any), similar to how Omnitone is set up.
Description
When the videojs-vr plugin instantiates a three.js WebGL Renderer, it uses hardcoded values. This change will allow users to override these defaults. This would be beneficial for performance reasons, such as disabling antialiasing or tweaking power preference.
Specific Changes proposed
defaults
options object inplugin.js
, there is now a property calledthreeRendererOptions
containing values previously hardcoded.options_.threeRendererOptions
which is a merged result of the default values and those supplied by the user (if any), similar to how Omnitone is set up.