SRGB: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: Unicodifying, replaced: [[Image: → [[File:, added orphan, underlinked tags)
No edit summary
Line 6: Line 6:
{{DISPLAYTITLE:sRGB}}
{{DISPLAYTITLE:sRGB}}


'''sRGB''' is a standardized color space for use with monitors, printers, and the internet.
It is supported by [[OpenGL]] and [[Direct3D]].
== Source ==
[[File:SRGB-compare.jpg|right|Xbox 360 vs. PC colour space comparison]]
[[File:SRGB-compare.jpg|right|Xbox 360 vs. PC colour space comparison]]


See [[Wikipedia:sRGB]]. In the context of Source, it is probably referring to the differences in colour space values between the video output of a PC and the {{360|1}} along with other consoles, which can result in washed-out/over-saturated colours if not accounted for.
The {{mono|r_shader_srgb}} [[ConVar]] determines whether sRGB conversion is done through hardware or through software. {{Note|The {{360|2}} always uses hardware conversion.}}
 
* -1: Use hardware cap{{clarify}}
* 0: Use hardware sRGB conversion (Default)
* 1: Use software sRGB conversion
 
There is also a [[Material_optimization#Conditional_Fallbacks|fallback shader]] ({{mono|srgb}}) that can be used in [[VMT]]s to detect whether or not conversion is actually being done through hardware.


It can be ignored unless you're developing for the {{360|1}} or in other game consoles..
== See Also ==
* {{WP|sRGB}}


[[Category:Glossary]]
[[Category:Glossary]]

Revision as of 17:55, 25 November 2024

Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024



sRGB is a standardized color space for use with monitors, printers, and the internet. It is supported by OpenGL and Direct3D.

Source

Xbox 360 vs. PC colour space comparison

The r_shader_srgb ConVar determines whether sRGB conversion is done through hardware or through software.

Note.pngNote:The Xbox 360 Xbox 360 always uses hardware conversion.
  • -1: Use hardware cap[Clarify]
  • 0: Use hardware sRGB conversion (Default)
  • 1: Use software sRGB conversion

There is also a fallback shader (srgb) that can be used in VMTs to detect whether or not conversion is actually being done through hardware.

See Also