Skip to content

Clarify unit-length PBR normal/tangent inputs.#2969

Open
tdavidovicNV wants to merge 4 commits into
AcademySoftwareFoundation:mainfrom
tdavidovicNV:dev/tdavidovic/mandate_unit_length_ONB
Open

Clarify unit-length PBR normal/tangent inputs.#2969
tdavidovicNV wants to merge 4 commits into
AcademySoftwareFoundation:mainfrom
tdavidovicNV:dev/tdavidovic/mandate_unit_length_ONB

Conversation

@tdavidovicNV

Copy link
Copy Markdown
Contributor

When comparing GLSL and OSL on "all tests", I found that GLSL silently assumes in its math that normals are unit length, while OSL renormalizes. The tests contain several non-unit length normals (1,1,1 and 0,0,0 being the most common).

This proposal proposes to follow the existing GLSL implementation and just tighten the spec by mandating that normals, tangents and bitangents are unit length.

If this is rejected, we should explicitly allow them to be non-unit-length and adjust the GLSL implementation to handle the case (e.g., renormalize).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant