소스 검색

Updated builds.

Mr.doob 3 년 전
부모
커밋
1d1d3d458b
3개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      build/three.js
  2. 0 0
      build/three.min.js
  3. 6 0
      build/three.module.js

+ 5 - 0
build/three.js

@@ -18158,6 +18158,11 @@
 							depthFormat: glDepthFormat,
 							scaleFactor: framebufferScaleFactor
 						};
+
+						if (renderer.outputEncoding === sRGBEncoding) {
+							projectionlayerInit.colorFormat = attributes.alpha || isMultisample ? gl.SRGB8_ALPHA8 : gl.SRGB8;
+						}
+
 						glBinding = new XRWebGLBinding(session, gl);
 						glProjLayer = glBinding.createProjectionLayer(projectionlayerInit);
 						session.updateRenderState({

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
build/three.min.js


+ 6 - 0
build/three.module.js

@@ -24572,6 +24572,12 @@ class WebXRManager extends EventDispatcher {
 						scaleFactor: framebufferScaleFactor
 					};
 
+					if ( renderer.outputEncoding === sRGBEncoding ) {
+
+						projectionlayerInit.colorFormat = ( attributes.alpha || isMultisample ) ? 35907 : 35905;
+
+					}
+
 					glBinding = new XRWebGLBinding( session, gl );
 
 					glProjLayer = glBinding.createProjectionLayer( projectionlayerInit );

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.