Skip to content

Commit

Permalink
fix(3dTile): don't overload the b3dm material.
Browse files Browse the repository at this point in the history
* set material.depthWrite to true.
  • Loading branch information
gchoqueux committed Jan 25, 2021
1 parent fe2db47 commit d7f14b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/B3dmParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default {
options.overrideMaterials.isMaterial) {
mesh.material = options.overrideMaterials;
} else {
mesh.material = new THREE.MeshLambertMaterial({ color: 0xffffff });
mesh.material.depthWrite = true;
}
} else if (Capabilities.isLogDepthBufferSupported()
&& mesh.material.isRawShaderMaterial
Expand Down

0 comments on commit d7f14b6

Please sign in to comment.