提交 12ea6020 编写于 作者: W WestLangley

Geometry: compute area-weighted normals by default

上级 26cff131
......@@ -399,6 +399,8 @@ THREE.Geometry.prototype = {
computeVertexNormals: function ( areaWeighted ) {
if ( areaWeighted === undefined ) areaWeighted = true;
var v, vl, f, fl, face, vertices;
vertices = new Array( this.vertices.length );
......@@ -477,6 +479,12 @@ THREE.Geometry.prototype = {
}
if ( this.faces.length > 0 ) {
this.normalsNeedUpdate = true;
}
},
computeMorphNormals: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册