Selaa lähdekoodia

WebXRManager: Added note in setFoveation().

Mr.doob 4 vuotta sitten
vanhempi
sitoutus
2604872527
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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 ) {
 		this.setFoveation = function ( foveation ) {
 
 
+			// 0 = no foveation = full resolution
+			// 1 = maximum foveation = the edges render at lower resolution
+
 			if ( glProjLayer !== null ) {
 			if ( glProjLayer !== null ) {
 
 
 				glProjLayer.fixedFoveation = foveation;
 				glProjLayer.fixedFoveation = foveation;

粤ICP备19079148号