Skip to content

Commit

Permalink
Revert "Set shader precission to mediump in Mobile with no native VR.…
Browse files Browse the repository at this point in the history
… Fix problems with Adreno 300 series GPUs and improves perf. (fix #3971, #3523)" (#3988)
  • Loading branch information
dmarcos authored Jan 31, 2019
1 parent c8d8a74 commit c3e5533
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions src/core/scene/a-scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,7 @@ module.exports.AScene = registerElement('a-scene', {
var rendererAttrString;
var rendererConfig;

rendererConfig = {
alpha: true,
antialias: !isMobile,
canvas: this.canvas,
logarithmicDepthBuffer: false,
precision: isMobile && !window.hasNativeVR ? 'mediump' : 'highp'
};
rendererConfig = {alpha: true, antialias: !isMobile, canvas: this.canvas, logarithmicDepthBuffer: false};

this.maxCanvasSize = {height: 1920, width: 1920};

Expand Down
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ window.Promise = window.Promise || require('promise-polyfill');
window.hasNativeWebVRImplementation = !!window.navigator.getVRDisplays ||
!!window.navigator.getVRDevices;
window.hasNativeWebXRImplementation = navigator.xr !== undefined;
window.hasNativeVR = window.hasNativeWebVRImplementation || window.hasNativeWebXRImplementation;

// If native WebXR or WebVR are defined WebVRPolyfill does not initialize.
if (!window.hasNativeWebXRImplementation && !window.hasNativeWebVRImplementation) {
Expand Down

0 comments on commit c3e5533

Please sign in to comment.