Explorar o código

changed title of example; cleaned code

kaypikun %!s(int64=9) %!d(string=hai) anos
pai
achega
94865c5ec5

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

@@ -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 = 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 );
         this.postprocessing.scene.add( this.postprocessing.camera );
 
 
         var pars = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBFormat };
         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 );
         this.postprocessing.rtTextureColor = new THREE.WebGLRenderTarget( window.innerWidth, window.innerHeight, pars );
 
 
 
 
-
         var bokeh_shader = THREE.BokehShader;
         var bokeh_shader = THREE.BokehShader;
 
 
         this.postprocessing.bokeh_uniforms = THREE.UniformsUtils.clone( bokeh_shader.uniforms );
         this.postprocessing.bokeh_uniforms = THREE.UniformsUtils.clone( bokeh_shader.uniforms );

+ 1 - 3
examples/webgl_camera_cinematic.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <!DOCTYPE html>
 <html lang="en">
 <html lang="en">
 	<head>
 	<head>
-		<title>three.js webgl - interactive cubes</title>
+		<title>three.js webgl-camera cinematic</title>
 		<meta charset="utf-8">
 		<meta charset="utf-8">
 		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
 		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
 		<style>
 		<style>
@@ -221,8 +221,6 @@
 
 
 				}
 				}
 
 
-				renderer.render( scene, camera );
-
 
 
 				if(camera.postprocessing.enabled){
 				if(camera.postprocessing.enabled){
 					//rendering Cinematic Camera effects
 					//rendering Cinematic Camera effects