Browse Source

Add C# examples to Occlusion culling

Shawn Hardern 11 months ago
parent
commit
35c34b3f9c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      tutorials/3d/occlusion_culling.rst

+ 7 - 1
tutorials/3d/occlusion_culling.rst

@@ -195,10 +195,16 @@ occluders in front of the camera.
 To toggle occlusion culling at run-time, set ``use_occlusion_culling`` on the
 To toggle occlusion culling at run-time, set ``use_occlusion_culling`` on the
 root viewport as follows:
 root viewport as follows:
 
 
-::
+.. tabs::
+ .. code-tab:: gdscript
 
 
     get_tree().root.use_occlusion_culling = true
     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
 Toggling occlusion culling at run-time is useful to compare performance on a
 running project.
 running project.