-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Storm: Shader compile error with mx::heighttonormal nodes #2281
Comments
Attached is the shader dump. The filter kernels are uninitialized
Adding a quick fix locally to initialize variables on emitVariableDeclarations seems to do it. |
Filed as internal issue #USD-8019 |
To clarify:
Works, but I'm not sure if this will break others use cases. |
When we use MaterialX heighttonormal node to convert a height map to normal map, Storm reports a shader error. error C7522: OpenGL requires constants to be initialized The root cause is that the filter kernels are uninitialized const float c_box_filter_weights[84]; const float c_gaussian_filter_weights[84]; Also logged as USD github issue PixarAnimationStudios#2281
…ationStudios#308) When we use MaterialX heighttonormal node to convert a height map to normal map, Storm reports a shader error. error C7522: OpenGL requires constants to be initialized The root cause is that the filter kernels are uninitialized const float c_box_filter_weights[84]; const float c_gaussian_filter_weights[84]; Also logged as USD github issue PixarAnimationStudios#2281
* Fix for shader compile error with mx::heighttonormal nodes When we use MaterialX heighttonormal node to convert a height map to normal map, Storm reports a shader error. error C7522: OpenGL requires constants to be initialized The root cause is that the filter kernels are uninitialized const float c_box_filter_weights[84]; const float c_gaussian_filter_weights[84]; Also logged as USD github issue PixarAnimationStudios#2281 * Update basefiles * Add readme and helper script
Description of Issue
When we use MaterialX heighttonormal node to convert a height map to normal map, Storm reports a shader error.
error C7522: OpenGL requires constants to be initialized
Steps to Reproduce
testBumpMapping.zip
System Information (OS, Hardware)
Windows x64
Package Versions
USD Dev at 1d2f18b
Build Flags
--tests --openimageio --opencolorio --materialx
The text was updated successfully, but these errors were encountered: