diff --git a/source/Renderer/renderer.js b/source/Renderer/renderer.js index 8f2e1494..cd8de0f5 100644 --- a/source/Renderer/renderer.js +++ b/source/Renderer/renderer.js @@ -242,10 +242,6 @@ class gltfRenderer { this.drawPrimitive(state, drawable.primitive, drawable.node, this.viewProjectionMatrix); } - for (const drawable of transparentDrawables) - { - this.drawPrimitive(state, drawable.primitive, drawable.node, this.viewProjectionMatrix); - } // filter materials with transmission extension let transmissionDrawables = drawables @@ -256,6 +252,11 @@ class gltfRenderer { this.drawPrimitive(state, drawable.primitive, drawable.node, this.viewProjectionMatrix, this.opaqueRenderTexture); } + + for (const drawable of transparentDrawables) + { + this.drawPrimitive(state, drawable.primitive, drawable.node, this.viewProjectionMatrix); + } } // vertices with given material