List of global variables: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
add
 
Tels (talk | contribs)
m update
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Introduction ==
In '''The Dark Mod''', variables named '''global0''' to '''global7''' influence the rendering of certain materials. They are set at run-time by the code automatically. See also the [[list of shaderParm variables]].


Variables named '''gloabl0''' to '''gloabl7''' influence the rendering of certain materials. They are set at run-time by the code automatically.
== List of globals ==
 
See also the [[List_of_shaderParm_variables]].
 
== List of gloabls ==




Line 18: Line 14:
|0
|0
|?
|?
|?
|Used by Bloom to hide/show/lessen haze effects when bloom is active


|-
|-
|1
|1
|?
|?
|Used by various materials in materials/tdm_sfx.mtr
|Used by Bloom to scale light ray effects when bloom is active


|-
|-
|2
|2
|?
|0.00 to 1.00
|?
|Used by Ambient Texture Method - Red channel
 


|-
|-
|3
|3
|?
|0.00 to 1.00
|?
|Used by Ambient Texture Method - Green channel


|-
|-
|4
|4
|?
|0.00 to 1.00
|used by portal_sky
|Used by Ambient Texture Method - Blue channel
|?


|-
|-
|5
|5
|?
|0, 1, 2
|used by portal_sky
|Used by the new HDR ambient and referenced in materials. 1 == Fast ambient, 2 == HDR ambient


|-
|-
|6
|6
|?
|?
|?
|Used by Portal Sky - X-Direction


|-
|-
|7
|7
|?
|?
|?
|Used by Portal Sky - Y-Direction


|}
|}
Line 61: Line 55:
== See also ==
== See also ==


* The [[List_of_shaderParm_variables]]
* The [[list of shaderParm variables]]
* [[:Category:Spawnargs|List of all spawnargs]]
* [[:Category:Spawnargs|List of all spawnargs]]


{{tutorial-editing}}
{{tutorial-editing}}

Latest revision as of 19:42, 23 September 2010

In The Dark Mod, variables named global0 to global7 influence the rendering of certain materials. They are set at run-time by the code automatically. See also the list of shaderParm variables.

List of globals

# Value Used by
0 ? Used by Bloom to hide/show/lessen haze effects when bloom is active
1 ? Used by Bloom to scale light ray effects when bloom is active
2 0.00 to 1.00 Used by Ambient Texture Method - Red channel
3 0.00 to 1.00 Used by Ambient Texture Method - Green channel
4 0.00 to 1.00 Used by Ambient Texture Method - Blue channel
5 0, 1, 2 Used by the new HDR ambient and referenced in materials. 1 == Fast ambient, 2 == HDR ambient
6 ? Used by Portal Sky - X-Direction
7 ? Used by Portal Sky - Y-Direction

See also