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

$casttextureshadows: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Create $CastTextureShadows QC Command)
 
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''<code>$casttextureshadows</code>''' is a [[QC command]] applicable for [[Prop_static|Static Props]]. Indicates the model should cast texture-based shadows in [[VRAD]] while compiling map.
{{this is a|QC command|name=$casttextureshadows|since=Source 2007}}
 
Only applicable for [[static prop]]s. Indicates to [[VRAD]] that the model should cast [[texture shadows|texture-based shadows]] from the alpha channel of the {{cmd|$basetexture}} of materials with {{cmd|$alphatest}} or {{cmd|$translucent}}, or {{only|{{gmod}} {{mapbase}}}} the {{cmd|%alphatexture}} of any material.


== Syntax ==
== Syntax ==
  $casttextureshadows
  $casttextureshadows
[[Category:QC Commands|donotcastshadows]]__NOTOC__

Latest revision as of 08:22, 4 August 2025

$casttextureshadows is a QC command available in all Source Source games since Source 2007 Source 2007.

Only applicable for static props. Indicates to VRAD that the model should cast texture-based shadows from the alpha channel of the $basetexture of materials with $alphatest or $translucent, or (only in Garry's Mod Mapbase) the %alphatexture of any material.

Syntax

$casttextureshadows