BCnEncoder.NET icon indicating copy to clipboard operation
BCnEncoder.NET copied to clipboard

Add option to recalculate blue channel for prenormalized bc5 normals

Open Nominom opened this issue 3 years ago • 2 comments

B = sqrt(1 - (sqrt(R) + sqrt(G)))

Nominom avatar Mar 17 '22 09:03 Nominom

Is this the right equation? I thought it would be $R^2 + G^2 + B^2 = 1^2$, which turns into $B = \sqrt{1 - R^2 - G^2}$.

ptasev avatar May 20 '22 06:05 ptasev

It should indeed be (R² + G²) instead of (sqrt(R) + sqrt(G)). 🦊 Thanks for double checking!

Nominom avatar May 20 '22 06:05 Nominom