Ver código fonte

WebXRManager: Added note in setFoveation().

Mr.doob 4 anos atrás
pai
commit
2604872527
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      src/renderers/webxr/WebXRManager.js

+ 3 - 0
src/renderers/webxr/WebXRManager.js

@@ -487,6 +487,9 @@ class WebXRManager extends EventDispatcher {
 
 		this.setFoveation = function ( foveation ) {
 
+			// 0 = no foveation = full resolution
+			// 1 = maximum foveation = the edges render at lower resolution
+
 			if ( glProjLayer !== null ) {
 
 				glProjLayer.fixedFoveation = foveation;