|
@@ -112,10 +112,8 @@ THREE.CinematicCamera.prototype.initPostProcessing = function (){
|
|
|
|
|
|
|
|
|
this.postprocessing.camera = new THREE.OrthographicCamera( window.innerWidth / -2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, -10000, 10000 );
|
|
|
-
|
|
|
- this.postprocessing.camera.position= this.position;
|
|
|
- this.postprocessing.camera.rotation= this.rotation;
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
this.postprocessing.scene.add( this.postprocessing.camera );
|
|
|
|
|
|
var pars = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBFormat };
|
|
@@ -123,7 +121,6 @@ THREE.CinematicCamera.prototype.initPostProcessing = function (){
|
|
|
this.postprocessing.rtTextureColor = new THREE.WebGLRenderTarget( window.innerWidth, window.innerHeight, pars );
|
|
|
|
|
|
|
|
|
-
|
|
|
var bokeh_shader = THREE.BokehShader;
|
|
|
|
|
|
this.postprocessing.bokeh_uniforms = THREE.UniformsUtils.clone( bokeh_shader.uniforms );
|