Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usdValidation: usdShade: NormalMapTextureValidator #3443

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pxr/usdValidation/usdShadeValidators/plugInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
},
"MaterialBindingRelationships": {
"doc": "All properties named 'material:binding' or in that namespace should be relationships."
},
},
"NormalMapTextureValidator" : {
tallytalwar marked this conversation as resolved.
Show resolved Hide resolved
"doc": "UsdUVTexture nodes that feed the _inputs:normals_ of a UsdPreviewSurface must ensure that the data is encoded and scaled properly. Specifically, since normals are expected to be in the range [(-1,-1,-1), (1,1,1)], the Texture node must transform 8-bit textures from their [0..1] range by setting its _inputs:scale_ to (2, 2, 2, 1) and _inputs:bias_ to (-1, -1, -1, 0). Normal map data is commonly expected to be linearly encoded. However, many image-writing tools automatically set the profile of three-channel, 8-bit images to SRGB. To prevent an unwanted transformation, the UsdUVTexture's _inputs:sourceColorSpace_ must be set to raw.",
"schemaTypes": [
"UsdShadeShader"
]
},
"ShaderSdrCompliance": {
"doc": "Shader prim's input types must be conforming to their appropriate sdf types in the respective sdr shader.",
"schemaTypes": [
Expand Down
Loading
Loading