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

$opaque: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎See also: clean up, replaced: See Also → See also)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Causes the [[model]] to be assumed to be opaque with respect to its sorting against all other objects in the scene. Use this in cases where only a small portion of the model is translucent (hair, eyes, glasses, etc.) so if there are any sorting issues, it won’t matter.  
{{LanguageBar}}
 
{{this is a|QC command|name=$opaque}} It causes the [[model]] to be assumed to be opaque with respect to its sorting against all other objects in the scene. Use this in cases where only a small portion of the model is translucent (hair, eyes, glasses, etc.) so if there are any sorting issues, it won’t matter.
{{tip|Using either <code>[[$mostlyopaque]]</code> or <code>$opaque</code> on ''all models'' is good form, as it prevents odd lighting errors and visual artifacts with shadows.}}


== Syntax ==
== Syntax ==
<pre>$opaque</pre>
$opaque
 
[[Category:QC Commands|o]]


== See also ==
== See also ==
* [[$mostlyopaque]] - Similar command for models that have translucent materials, which renders in two passes.
* [[$mostlyopaque]] - Similar command for models that have translucent materials, which renders in two passes.
[[Category:QC Commands|opaque]]

Latest revision as of 17:44, 3 August 2025

English (en)Translate (Translate)

$opaque is a QC command available in all Source Source games. It causes the model to be assumed to be opaque with respect to its sorting against all other objects in the scene. Use this in cases where only a small portion of the model is translucent (hair, eyes, glasses, etc.) so if there are any sorting issues, it won’t matter.

Syntax

$opaque

See also

  • $mostlyopaque - Similar command for models that have translucent materials, which renders in two passes.