Skip to content

Commit

Permalink
Merge pull request #9814 from ShawnHardern/update-occlusion-culling-c…
Browse files Browse the repository at this point in the history
…sharp

Add C# examples to Occlusion culling
  • Loading branch information
AThousandShips authored Aug 23, 2024
2 parents eef7d06 + 35c34b3 commit f3ddfc3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tutorials/3d/occlusion_culling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,16 @@ occluders in front of the camera.
To toggle occlusion culling at run-time, set ``use_occlusion_culling`` on the
root viewport as follows:

::
.. tabs::
.. code-tab:: gdscript

get_tree().root.use_occlusion_culling = true

.. code-tab:: csharp

GetTree().Root.UseOcclusionCulling = true;


Toggling occlusion culling at run-time is useful to compare performance on a
running project.

Expand Down

0 comments on commit f3ddfc3

Please sign in to comment.