$ambientboost: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{lang|$ambientboost|title=<code>$ambientboost</code>}}
{{lang|$ambientboost|$title=$ambientboost}}
{{orphan}}
'''<code style="color:white">$ambientboost</code>''' is the [[:Category:QC_Commands|QC command]]. Indicates the [[model]] be rendered with the ambient boost heuristic.
Indicates the [[model]] be rendered with the ambient boost heuristic.


In order to keep a model from becoming too dark in some situations, the heuristic boosts the ambient cube contribution in cases where the ambient term is otherwise overwhelmed by any direct lights. To use this, include <code>$ambientboost</code> in your '''.qc''' files for a given model and the boost heuristic will be applied to the ambient cube contribution of shading.
In order to keep a model from becoming too dark in some situations, the heuristic boosts the ambient cube contribution in cases where the ambient term is otherwise overwhelmed by any direct lights. To use this, include <code>$ambientboost</code> in your '''[[QC|.qc]]''' files for a given model and the boost heuristic will be applied to the ambient cube contribution of shading.


This technique was first used on [[Alyx_Vance|Alyx]] in {{ep1}}.
This technique was first used on [[Alyx_Vance|Alyx]] in {{ep1}}.


==Syntax==
==Syntax==
  $ambientboost
  '''$ambientboost'''


[[Category:Modeling]]
[[Category:Modeling]]
[[Category:QC Commands|A]]
[[Category:QC Commands|A]]
[[Category:Glossary]]__NOTOC__
[[Category:Glossary]]__NOTOC__

Revision as of 23:29, 13 June 2021

English (en)Translate (Translate)

$ambientboost is the QC command. Indicates the model be rendered with the ambient boost heuristic.

In order to keep a model from becoming too dark in some situations, the heuristic boosts the ambient cube contribution in cases where the ambient term is otherwise overwhelmed by any direct lights. To use this, include $ambientboost in your .qc files for a given model and the boost heuristic will be applied to the ambient cube contribution of shading.

This technique was first used on Alyx in Half-Life 2: Episode One.

Syntax

$ambientboost