提交 df2af2a9 编写于 作者: M Mr.doob

VertexNormalsHelper: Removed linewidth parameter.

上级 4d943ef6
......@@ -8,8 +8,7 @@ export class VertexNormalsHelper extends LineSegments {
constructor(
object: Object3D,
size?: number,
hex?: number,
linewidth?: number
hex?: number
);
object: Object3D;
......
......@@ -17,16 +17,14 @@ var _v2 = new Vector3();
var _normalMatrix = new Matrix3();
var _keys = [ 'a', 'b', 'c' ];
function VertexNormalsHelper( object, size, hex, linewidth ) {
function VertexNormalsHelper( object, size, hex ) {
this.object = object;
this.size = ( size !== undefined ) ? size : 1;
this.size = ( size !== undefined ) ? size : 0.1;
var color = ( hex !== undefined ) ? hex : 0xff0000;
var width = ( linewidth !== undefined ) ? linewidth : 1;
//
var nNormals = 0;
......@@ -51,7 +49,7 @@ function VertexNormalsHelper( object, size, hex, linewidth ) {
geometry.setAttribute( 'position', positions );
LineSegments.call( this, geometry, new LineBasicMaterial( { color: color, linewidth: width } ) );
LineSegments.call( this, geometry, new LineBasicMaterial( { color: color, toneMapped: false } ) );
this.type = 'VertexNormalsHelper';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册