Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions extensions/community/Sprite3D.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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);",
Expand Down Expand Up @@ -255,4 +257,4 @@
"propertyDescriptors": []
}
]
}
}