Luminanceof: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: clean up, added stub, uncategorised, deadend tags)
 
Line 1: Line 1:
{{Dead end|date=January 2024}}
The luminance of the texture is calculated using this formula:
The luminance of the texture is calculated using this formula:
  <code>dot( texture.rgb, float3( 0.2125, 0.7154, 0.0721 ) )</code>
  <code>dot( texture.rgb, float3( 0.2125, 0.7154, 0.0721 ) )</code>
Line 5: Line 6:
| [[File:GrimeTextureSource.jpg|thumb|180px|Source Color Texture]] || [[File:GrimeTextureLum.jpg|thumb|180px|Result of luminanceof()]]
| [[File:GrimeTextureSource.jpg|thumb|180px|Source Color Texture]] || [[File:GrimeTextureLum.jpg|thumb|180px|Result of luminanceof()]]
|}
|}
{{stub}}
{{Uncategorized stub|date=January 2024}}

Latest revision as of 10:06, 21 January 2024

Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

The luminance of the texture is calculated using this formula:

dot( texture.rgb, float3( 0.2125, 0.7154, 0.0721 ) )
Source Color Texture
Result of luminanceof()


Stub

This article or section is a stub. You can help by expanding it.

Wikipedia - Letter.png
This article has not been added to any content Wikipedia icon categories. Please help out by Wikipedia icon adding categories.
January 2024