Просмотр исходного кода

Set example's outputBufferType to HalfFloatType.

Mr.doob 7 месяцев назад
Родитель
Сommit
9334d181a9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      examples/webgl_lights_rectarealight_map.html

+ 1 - 1
examples/webgl_lights_rectarealight_map.html

@@ -41,7 +41,7 @@
 
 			function init() {
 
-				renderer = new THREE.WebGLRenderer( { antialias: true } );
+				renderer = new THREE.WebGLRenderer( { antialias: true, outputBufferType: THREE.HalfFloatType } );
 				renderer.setPixelRatio( window.devicePixelRatio );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setAnimationLoop( animation );

粤ICP备19079148号