mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
95 lines
3.5 KiB
JavaScript
95 lines
3.5 KiB
JavaScript
/*
|
|
* Copyright 2015 Google Inc. All Rights Reserved.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
export default {
|
|
// Optionally inject custom Viewer parameters as an option. Each item
|
|
// in the array must be an object with the following properties; here is
|
|
// an example of the built in CardboardV2 viewer:
|
|
//
|
|
// {
|
|
// id: 'CardboardV2',
|
|
// label: 'Cardboard I/O 2015',
|
|
// fov: 60,
|
|
// interLensDistance: 0.064,
|
|
// baselineLensDistance: 0.035,
|
|
// screenLensDistance: 0.039,
|
|
// distortionCoefficients: [0.34, 0.55],
|
|
// inverseCoefficients: [-0.33836704, -0.18162185, 0.862655, -1.2462051,
|
|
// 1.0560602, -0.58208317, 0.21609078, -0.05444823, 0.009177956,
|
|
// -9.904169E-4, 6.183535E-5, -1.6981803E-6]
|
|
// }
|
|
// Added in 0.10.6.
|
|
ADDITIONAL_VIEWERS: [],
|
|
|
|
// Select the viewer by ID. If unspecified, defaults to 'CardboardV1'.
|
|
// Added in 0.10.6.
|
|
DEFAULT_VIEWER: '',
|
|
|
|
// Provides a CardboardVRDisplay when the native WebVR API exists on
|
|
// mobile platforms that do not have a native VRDisplay.
|
|
// Added in 0.10.0.
|
|
PROVIDE_MOBILE_VRDISPLAY: true,
|
|
|
|
/**
|
|
* Options passed into the underlying CardboardVRDisplay
|
|
*/
|
|
|
|
// By default, on mobile, a wakelock is necessary to prevent the device's screen
|
|
// from turning off without user input. Disable if you're keeping the screen awake through
|
|
// other means on mobile. A wakelock is never used on desktop.
|
|
// Added in 0.10.2.
|
|
MOBILE_WAKE_LOCK: true,
|
|
|
|
// Whether or not CardboardVRDisplay is in debug mode. Logs extra
|
|
// messages. Added in 0.10.0.
|
|
DEBUG: false,
|
|
|
|
// The URL to JSON of DPDB information. By default, uses the data
|
|
// from https://github.com/WebVRRocks/webvr-polyfill-dpdb; if left
|
|
// falsy, then no attempt is made.
|
|
// Added in 0.10.0
|
|
DPDB_URL: 'https://dpdb.webvr.rocks/dpdb.json',
|
|
|
|
// Complementary filter coefficient. 0 for accelerometer, 1 for gyro.
|
|
K_FILTER: 0.98,
|
|
|
|
// How far into the future to predict during fast motion (in seconds).
|
|
PREDICTION_TIME_S: 0.040,
|
|
|
|
// Flag to disabled the UI in VR Mode.
|
|
CARDBOARD_UI_DISABLED: false, // Default: false
|
|
|
|
// Flag to disable the instructions to rotate your device.
|
|
ROTATE_INSTRUCTIONS_DISABLED: false, // Default: false.
|
|
|
|
// Enable yaw panning only, disabling roll and pitch. This can be useful
|
|
// for panoramas with nothing interesting above or below.
|
|
YAW_ONLY: false,
|
|
|
|
// Scales the recommended buffer size reported by WebVR, which can improve
|
|
// performance.
|
|
// UPDATE(2016-05-03): Setting this to 0.5 by default since 1.0 does not
|
|
// perform well on many mobile devices.
|
|
BUFFER_SCALE: 0.5,
|
|
|
|
// Allow VRDisplay.submitFrame to change gl bindings, which is more
|
|
// efficient if the application code will re-bind its resources on the
|
|
// next frame anyway. This has been seen to cause rendering glitches with
|
|
// THREE.js.
|
|
// Dirty bindings include: gl.FRAMEBUFFER_BINDING, gl.CURRENT_PROGRAM,
|
|
// gl.ARRAY_BUFFER_BINDING, gl.ELEMENT_ARRAY_BUFFER_BINDING,
|
|
// and gl.TEXTURE_BINDING_2D for texture unit 0.
|
|
DIRTY_SUBMIT_FRAME_BINDINGS: false,
|
|
};
|