MonitorScreen: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added obsolete template)
(Rewrite MonitorScreen shader docs, describe its actual purpose and features)
Line 1: Line 1:
{{obsolete|shader=1}}
 
'''<code>MonitorScreen</code>''' is an obsolete [[shader]] that was intended for use with [[func_monitor]]. Though it still works, you can actually use any shader you want.
{{Shader|MonitorScreen}} It is intended for use with [[func_monitor]], though any shader can be used. This applies various image effects to the rendered texture, then applies an overlay on top. This shader is unlit.
== Supported effects ==
 
*<code>[[$translucent]]</code>
*<code>[[$alphatest]]</code>
*<code>[[$additive]]</code>
*<code>[[Proxies]]</code>
 
== Shader parameters ==
 
{{MatParam|[[$basetexture]]|texture|The realtime texture to render. Usually <code>_rt_camera</code>, but a normal texture can be used.}}
{{MatParam|$texture2|texture|A secondary texture which is multiplied with the basetexture.}}
{{MatParam|$texture2transform|matrix|Transform the secondary texture.}}
{{MatParam|$frame2|int|Frame number to use for the secondary texture.}}
{{MatParam|$contrast|float|Controls the contrast of the render. 0 is normal, and 1 is "color * color".}}
{{MatParam|$saturation|float|Controls the amount of color in the render. 0 makes it fully greyscale, 1 gives full color.}}
{{MatParam|$tint|vector3|Tint the overall effect.}}


[[Category:Shaders]]
[[Category:Shaders]]

Revision as of 18:03, 9 June 2019

Shader-ball.png MonitorScreen It is intended for use with func_monitor, though any shader can be used. This applies various image effects to the rendered texture, then applies an overlay on top. This shader is unlit.

Supported effects

Shader parameters

[[$basetexture|$basetexture]] $texture2 $texture2transform $frame2 $contrast $saturation $tint