Skip to content

Commit

Permalink
fix: device depth write
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Dec 4, 2023
1 parent 9c1196d commit cb1df08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion dev-demos/features/polygon/demos/indoor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import {
field:'base_height',
},
opacity: 1.0,
// topsurface: false,
});
scene.addLayer(provincelayerSide);
scene.startAnimate()
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/device/DeviceModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class DeviceModel implements IModel {
},
],
blendConstant: TransparentBlack,
depthWrite: depthEnabled,
depthWrite: true,
depthCompare:
(depthEnabled && depthParams.func) || CompareFunction.LESS,
cullMode: (cullEnabled && cullParams.face) || CullMode.NONE,
Expand Down

0 comments on commit cb1df08

Please sign in to comment.