Browse Source

Merge pull request #20606 from gkjohnson/patch-2

RoundedBoxBufferGeometry: Change constructor to fix corner normals
Mr.doob 4 years ago
parent
commit
0bd45c9760
1 changed files with 1 additions and 1 deletions
  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();