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
m (fixed incorrect display)
No edit summary
 
Line 12: Line 12:
== Shader parameters ==
== Shader parameters ==


{{MatParam|$basetexture|texture|The realtime texture to render. Usually <code>_rt_camera</code>, but a normal texture can be used.}}
{{MatParamDef|$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.}}
{{MatParamDef|$texture2|texture|A secondary texture which is multiplied with the basetexture.}}
{{MatParam|$texture2transform|matrix|Transform the secondary texture.}}
{{MatParamDef|$texture2transform|matrix|Transform the secondary texture.}}
{{MatParam|$frame2|int|Frame number to use for the secondary texture.}}
{{MatParamDef|$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".}}
{{MatParamDef|$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.}}
{{MatParamDef|$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.}}
{{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.