Skip to content

NOR R/G adjustment? #46

Discussion options

You must be logged in to vote

Normal maps are supposed to encode unit vectors with components in the range [-1.0, 1.0]. Full 32 bit floating point tends to be overkill for normals. In practice, people often use 8 bit per channel RGBA textures. The conversion to float is channel / 255.0 * 2.0 - 1.0. You can't perfectly represent a final component value of 0.0 since 0.5*255.0 is not an integer. They may be offsetting the value by 1/255.0 or 1/256.0 to account for this. The differences are probably going to be imperceptible either way, so I wouldn't worry about it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Trainmaster9977
Comment options

Answer selected by Trainmaster9977
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants