Browse Source

Fix cinematic camera example

Takahiro 7 years ago
parent
commit
f069efb0d7
1 changed files with 2 additions and 1 deletions
  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,
 			fragmentShader: bokeh_shader.fragmentShader,
 			defines: {
 			defines: {
 				RINGS: this.shaderSettings.rings,
 				RINGS: this.shaderSettings.rings,
-				SAMPLES: this.shaderSettings.samples
+				SAMPLES: this.shaderSettings.samples,
+				DEPTH_PACKING: this.material_depth.depthPacking
 			}
 			}
 		} );
 		} );