$ambientboost: Difference between revisions
Jump to navigation
Jump to search

Note:As this is a runtime lighting effect, this command will have no effect on static props which have per-vertex lighting or lightmaps. This could be achieved with a modified VRAD.
($ambientboost) |
No edit summary |
||
(14 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
Indicates the model be rendered with the ambient boost heuristic. | {{LanguageBar|$ambientboost|$title=$ambientboost}} | ||
{{this is a|QC command|name=$ambientboost|engine=Source|since=Source 2006}} 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 | 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. | ||
This technique was first used on Alyx in | This technique was first used on [[Alyx_Vance|Alyx]] in {{ep1|4}}. | ||
{{note|As this is a runtime lighting effect, this command will have no effect on static props which have [[per-vertex lighting]] or lightmaps. This could be achieved with a modified VRAD.}} | |||
$ambientboost | ==Syntax== | ||
'''$ambientboost''' | |||
[[Category: | [[Category:Modeling]] | ||
[[Category:Source]]__NOTOC__ |
Latest revision as of 21:01, 16 July 2025


$ambientboost
is a QC command available in all Source games since
Source 2006. 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