This article's documentation is for anything that uses the Source engine. Click here for more information.

$donotcastshadows

From Valve Developer Community
Revision as of 19:30, 16 July 2025 by Equalizer5118 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

$donotcastshadows is a QC command available in all Source Source games. As the name implies, this parameter indicates the model should not cast shadows (useful for view models).

Note.pngNote:Only affects runtime shadows, and not shadows from static props.

Syntax

$donotcastshadows