Skip to content

Commit

Permalink
#5950: Remove visibility check from PatchNode::onPreRender.
Browse files Browse the repository at this point in the history
Node visibility is already checked by the front end walker, Material visibility is checked by the backend renderer.
  • Loading branch information
codereader committed May 1, 2022
1 parent aeb7d54 commit 8fd6b44
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions radiantcore/patch/PatchNode.cpp
Expand Up @@ -337,9 +337,6 @@ bool PatchNode::getIntersection(const Ray& ray, Vector3& intersection)

void PatchNode::onPreRender(const VolumeTest& volume)
{
// Don't do anything when invisible
if (!isForcedVisible() && !m_patch.hasVisibleMaterial()) return;

// Defer the tesselation calculation to the last minute
m_patch.evaluateTransform();
m_patch.updateTesselation();
Expand Down

0 comments on commit 8fd6b44

Please sign in to comment.