Skip to content

Commit ee4d241

Browse files
committed
ensure Box geometry is marked as 3D even when input positions are 2D
Signed-off-by: Tim Deubler <[email protected]>
1 parent d671198 commit ee4d241

File tree

1 file changed

+2
-0
lines changed
  • packages/display/src/displays/webgl/buffer/templates

1 file changed

+2
-0
lines changed

packages/display/src/displays/webgl/buffer/templates/BoxBuffer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export class BoxBuffer extends PointBuffer {
3737

3838
constructor(flat: boolean = true) {
3939
super(flat);
40+
// Box geometry is always represented in 3D space, even when input positions are 2D
41+
this._flat = false;
4042

4143
this.flexAttributes.a_point = {
4244
data: new FlexArray(Uint16Array),

0 commit comments

Comments
 (0)