提交 94865c5e 编写于 作者: K kaypikun

changed title of example; cleaned code

上级 d9e2faf6
......@@ -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 );
......
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - interactive cubes</title>
<title>three.js webgl-camera cinematic</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
......@@ -221,8 +221,6 @@
}
renderer.render( scene, camera );
if(camera.postprocessing.enabled){
//rendering Cinematic Camera effects
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册