Files
sbox-public/engine/Definitions
Antoine Pilote 01c5fc2b2c Clutter LODs for instanced models (#4786)
* add LOD switching for clutter model instances

* DrawModelInstamce with correct LOD level

* removed some useless comments. move stuff around

https://files.facepunch.com/antopilo/1b0711b1/sbox-dev_AcVXDWDDah.mp4

* use biggest scale axis to determine screen coverage for clutter lod level

* clamp LOD in managed

* clamp lod in native

* rename lod Count to maxLodCount
2026-05-19 10:04:55 -07:00
..
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2026-05-08 08:17:14 +01:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00


Class Attributes:

	
	[Handles:Sandbox.ManagedTypeName] 
	
	Set a class to use a handle system. A good example here is Sandbox.PhysicsBody. On creation we
	call a managed function to get a handle (an int) and we store that in the IPhysicsBody in native.
	Any time we pass a IPhysicsBody from native to managed, we pass the int and look up the real object.
	In the constructor of the physics object in native we call into native to destroy the handle. Which
	ensures that the pointer is cleared and can't try to be used.