Skip to content

Commit a57295a

Browse files
enable frustum culling
1 parent b7b12ef commit a57295a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

examples_tests/22.RaytracedAO/cull.comp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ void main()
5252
const mat4 MVP = nbl_glsl_pseudoMul4x4with4x3(pc.data.viewProjMatrix,worldMatrix);
5353

5454
// cull
55-
bool notCulled = true;
56-
if (false)
55+
bool notCulled;
5756
{
5857
const mat2x3 bbox = mat2x3(instanceMeshBufferData.aabbMinEdge,instanceMeshBufferData.aabbMaxEdge);
5958
notCulled = nbl_glsl_couldBeVisible(MVP,bbox);

examples_tests/22.RaytracedAO/dirty_source/ExtraCrap.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,6 @@ void Renderer::render(nbl::ITimer* timer)
11031103
else
11041104
glFinish();
11051105

1106-
if (true)
11071106
{
11081107
auto commandQueue = m_rrManager->getCLCommandQueue();
11091108

0 commit comments

Comments
 (0)