$mostlyopaque: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎See also: clean up, replaced: See Also → See also)
m (See recent $opaque edit)
Line 2: Line 2:


The use of <code>$mostlyopaque</code> can be used to improve the visual quality of models such as foliage or underbrush, by improving the lighting on the translucent [[materials]].
The use of <code>$mostlyopaque</code> can be used to improve the visual quality of models such as foliage or underbrush, by improving the lighting on the translucent [[materials]].
{{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 ==

Revision as of 16:13, 25 June 2024

Causes the model to be rendered in two passes: The first pass renders only the opaque portions of the model, and the second pass renders only the translucent portion of the model.

The use of $mostlyopaque can be used to improve the visual quality of models such as foliage or underbrush, by improving the lighting on the translucent materials.

Syntax

$mostlyopaque

See also

  • $opaque - Similar command for models that have mostly opaque materials, and renders in one pass.