Luminanceof: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added images.)
m (→‎top: clean up, added stub, uncategorised, deadend tags)
 
(One intermediate revision by one other user not shown)
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>
The result is a value from 0.0 to 1.0.


[[File:GrimeTextureSource.jpg|thumb|center|200px|Source Color Texture]][[File:GrimeTextureLum.jpg|thumb|center|200px|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