diff --git a/extensions/community/Sprite3D.json b/extensions/community/Sprite3D.json index 5d94d3196..04b0bf939 100644 --- a/extensions/community/Sprite3D.json +++ b/extensions/community/Sprite3D.json @@ -9,7 +9,7 @@ "name": "Sprite3D", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/3bd33ec77ed20d3f631c6c92884728b375aa2879174bc9f289c864d0e0383d59_ghost-outline.svg", "shortDescription": "An animated sprite in 3D.", - "version": "0.1.2", + "version": "0.1.3", "description": "The 3D sprite is an object that can be moved and rotated in 3D.", "origin": { "identifier": "Sprite3D", @@ -58,6 +58,8 @@ " const animationFrame = object.getAnimator().getCurrentFrame();", " if (animationFrame) {", " const material = animationFrame.texture;", + " material.depthWrite = false;", + " material.depthTest = true;", " this.mesh = new THREE.Mesh(geometry, material);", " this.mesh.rotation.order = 'ZYX';", " object.get3DRendererObject().add(this.mesh);", @@ -255,4 +257,4 @@ "propertyDescriptors": [] } ] -} \ No newline at end of file +}