Garry's Mod Wiki


  DOFModeHack( boolean enable )


A hacky method used to fix some bugs regarding DoF. What this basically does it force all C_BaseAnimating entities to have the translucent rendergroup, even if they use opaque or two-pass models.

This is used internally - although you're able to use it you probably shouldn't.


1 boolean enable
Enables or disables depth-of-field mode