diff --git a/src/scene.cpp b/src/scene.cpp index f488562..4ce4a55 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -432,6 +432,9 @@ bool loadScene(Geometry& geometry, std::vector& materials, std::vector if (material && material->alpha_mode != cgltf_alpha_mode_opaque) draw.postPass = 1; + if (material && material->has_transmission) + draw.postPass = 2; + draws.push_back(draw); } }