소스 검색

Fixed dynamic cube map cars demo.

Finally, the trouble was at the application level: renderer.clear clears the current framebuffer, which, if you juggle multiple render targets, doesn't have to be necessarily the screen. Here it was the last face of cube render target.
alteredq 14 년 전
부모
커밋
a529e4c783
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/webgl_materials_cubemap_dynamic.html

+ 1 - 1
examples/webgl_materials_cubemap_dynamic.html

@@ -1012,7 +1012,7 @@
 
 				camera.lookAt( cameraTarget );
 
-				renderer.clear();
+				renderer.clearTarget( null );
 				composer.render( 0.1 );
 
 				renderer.shadowMapEnabled = false;