浏览代码

Merge pull request #20606 from gkjohnson/patch-2

RoundedBoxBufferGeometry: Change constructor to fix corner normals
Mr.doob 4 年之前
父节点
当前提交
0bd45c9760
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/geometries/RoundedBoxBufferGeometry.js

+ 1 - 1
examples/jsm/geometries/RoundedBoxBufferGeometry.js

@@ -7,7 +7,7 @@ class RoundedBoxBufferGeometry extends BoxBufferGeometry {
 
 	constructor( width = 1, height = 1, depth = 1, segments = 1, radius = 1 ) {
 
-		super( width, height, depth, segments, segments, segments );
+		super( 1, 1, 1, segments, segments, segments );
 
 		const geometry2 = this.toNonIndexed();