MonitorScreen: Difference between revisions
Jump to navigation
Jump to search

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

This article is an orphan, meaning that few or no articles link to it.
You can help by
adding links to this article from other relevant articles.
January 2024
You can help by

January 2024


MonitorScreen
is a Pixel shader available in all 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.Transform the secondary texture.
Controls the amount of color in the render. 0 makes it fully greyscale, 1 gives full color.