From 5b003ffe9509471c3b5675ff107591b50d2a7eb2 Mon Sep 17 00:00:00 2001 From: Richard Monette Date: Tue, 27 Mar 2018 12:54:33 -0400 Subject: [PATCH] rename boxMesh, remove custom blending --- examples/js/loaders/EquiangularToCubeGenerator.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/examples/js/loaders/EquiangularToCubeGenerator.js b/examples/js/loaders/EquiangularToCubeGenerator.js index aa015983ac..13d7f5f125 100644 --- a/examples/js/loaders/EquiangularToCubeGenerator.js +++ b/examples/js/loaders/EquiangularToCubeGenerator.js @@ -17,10 +17,10 @@ THREE.EquiangularToCubeGenerator = function( sourceTexture, resolution ) { ]; this.camera = new THREE.PerspectiveCamera( 90, 1, 0.1, 10 ); - this.planeMesh = new THREE.Mesh( new THREE.BoxBufferGeometry( 1, 1, 1 ), this.getShader() ); - this.planeMesh.material.side = THREE.DoubleSide; + this.boxMesh = new THREE.Mesh( new THREE.BoxBufferGeometry( 1, 1, 1 ), this.getShader() ); + this.boxMesh.material.side = THREE.DoubleSide; this.scene = new THREE.Scene(); - this.scene.add( this.planeMesh ); + this.scene.add( this.boxMesh ); this.scene.add( this.camera ); }; @@ -96,13 +96,7 @@ THREE.EquiangularToCubeGenerator.prototype = { vec3 color = texture2D(equirectangularMap, uv).rgb;\n\ \n\ gl_FragColor = vec4( color, 1.0 );\n\ - }", - blending: THREE.CustomBlending, - blendSrc: THREE.OneFactor, - blendDst: THREE.ZeroFactor, - blendSrcAlpha: THREE.OneFactor, - blendDstAlpha: THREE.ZeroFactor, - blendEquation: THREE.AddEquation + }" } ); } -- GitLab