Explorar el Código

Merge pull request #15290 from dmarcos/frame

Pass XRFrame reference to client render loop.
Mr.doob hace 6 años
padre
commit
ef1cd64fcb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderers/webxr/WebXRManager.js

+ 1 - 1
src/renderers/webxr/WebXRManager.js

@@ -353,7 +353,7 @@ function WebXRManager( renderer, gl ) {
 
 
 		}
 		}
 
 
-		if ( onAnimationFrameCallback ) onAnimationFrameCallback( time );
+		if ( onAnimationFrameCallback ) onAnimationFrameCallback( time, frame );
 
 
 	}
 	}
 
 

粤ICP备19079148号