提交 9c38c7f7 编写于 作者: L Lewy Blue

Added overrideColor parameter to HemisphereLightHelper

上级 aca77f04
......@@ -13,7 +13,7 @@ import { BufferAttribute } from '../core/BufferAttribute';
* @author Mugen87 / https://github.com/Mugen87
*/
function HemisphereLightHelper( light, size ) {
function HemisphereLightHelper( light, size, overrideColor ) {
Object3D.call( this );
......@@ -26,7 +26,8 @@ function HemisphereLightHelper( light, size ) {
var geometry = new OctahedronBufferGeometry( size );
geometry.rotateY( Math.PI * 0.5 );
var material = new MeshBasicMaterial( { vertexColors: VertexColors, wireframe: true } );
var material = new MeshBasicMaterial( { wireframe: true, fog: false, color: this.overrideColor } );
if ( ! overrideColor ) material.vertexColors = VertexColors;
var position = geometry.getAttribute( 'position' );
var colors = new Float32Array( position.count * 3 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册