浏览代码

Fix cinematic camera example

Takahiro 7 年之前
父节点
当前提交
f069efb0d7
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/js/cameras/CinematicCamera.js

+ 2 - 1
examples/js/cameras/CinematicCamera.js

@@ -151,7 +151,8 @@ THREE.CinematicCamera.prototype.initPostProcessing = function () {
 			fragmentShader: bokeh_shader.fragmentShader,
 			defines: {
 				RINGS: this.shaderSettings.rings,
-				SAMPLES: this.shaderSettings.samples
+				SAMPLES: this.shaderSettings.samples,
+				DEPTH_PACKING: this.material_depth.depthPacking
 			}
 		} );