This article's documentation is for anything that uses the Source engine. Click here for more information.

MonitorScreen: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added obsolete template)
No edit summary
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{obsolete|shader=1}}
{{Orphan|date=January 2024}}
'''<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.
 
{{Source topicon}} {{lang}}
{{this is a|pixel shader|name=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 ==
 
{{MatParamDef|$basetexture|texture|The realtime texture to render. Usually <code>_rt_camera</code>, but a normal texture can be used.}}
{{MatParamDef|$texture2|texture|A secondary texture which is multiplied with the basetexture.}}
{{MatParamDef|$texture2transform|matrix|Transform the secondary texture.}}
{{MatParamDef|$frame2|int|Frame number to use for the secondary texture.}}
{{MatParamDef|$contrast|float|Controls the contrast of the render. 0 is normal, and 1 is "color * color".}}
{{MatParamDef|$saturation|float|Controls the amount of color in the render. 0 makes it fully greyscale, 1 gives full color.}}
{{MatParamDef|$tint|vector3|Tint the overall effect.}}


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

Latest revision as of 11:41, 23 August 2025

English (en)Translate (Translate)

MonitorScreen is a Pixel shader available in all Source Source games. 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

The realtime texture to render. Usually _rt_camera, but a normal texture can be used.
A secondary texture which is multiplied with the basetexture.
Transform the secondary texture.
Frame number to use for the secondary texture.
Controls the contrast of the render. 0 is normal, and 1 is "color * color".
Controls the amount of color in the render. 0 makes it fully greyscale, 1 gives full color.
Tint the overall effect.