Skip to content

Commit

Permalink
Remove objects with transmission from the scene for now
Browse files Browse the repository at this point in the history
Assigning post pass 2 means we don't actually render them as we only
render 0 and 1; transmission needs separate consideration.
  • Loading branch information
zeux committed Dec 8, 2024
1 parent 10dddb7 commit 64f9da8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ bool loadScene(Geometry& geometry, std::vector<Material>& 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);
}
}
Expand Down

0 comments on commit 64f9da8

Please sign in to comment.