$opaque: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added note about $mostlyopaque using two passes)
m (→‎See also: clean up, replaced: See Also → See also)
Line 8: Line 8:
[[Category:QC Commands|o]]
[[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]]
[[Category:QC Commands|opaque]]

Revision as of 01:36, 6 January 2024

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.pngTip:Using either $mostlyopaque or $opaque on all models is good form, as it prevents odd lighting errors and visual artifacts with shadows.

Syntax

$opaque

See also

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