Improved Texel Grid for Texture Viewer

This commit is contained in:
Simon Lübeß
2025-04-18 14:46:34 +02:00
parent 9d0fb99e3d
commit 2c0b000afc
2 changed files with 20 additions and 20 deletions
@@ -72,7 +72,7 @@ float3x3 ConstructTangentSpace(float3 normal, float3 tangent, float3 sigma)
*/
float ColorToLuminance(float3 rgb)
{
return rgb.r * 0.212639 + rgb.g * 0.715169 + rgb.b * 0.072192;
return dot(rgb, float3(0.212639,0.715169,0.072192));
}
/**