提交 5b003ffe 编写于 作者: R Richard Monette

rename boxMesh, remove custom blending

上级 f810577e
......@@ -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
}"
} );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册