-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify HW shading implementations of geometric/convolution nodes (#2206)
I noticed that the C++ implementations of these nodes were either identical, or nearly identical, so I think it makes sense to merge them together and provide a single HW shader version of these nodes. GeomPropValueNode, GeomPropValueNodeAsUniform and GeomColorNode, the C++ implementation code is identical. HeightToNormal and Blur both `#include` a separate shader source file that is language specific - so here the implementation registration uses a lambda function to wrap the differing filename in the `create()` call registered. Note : Fix metal sobel sampling function to work with height to normal node, this provides a non-constant memory address space variable to the function.
- Loading branch information
Showing
20 changed files
with
117 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
119 changes: 0 additions & 119 deletions
119
source/MaterialXGenGlsl/Nodes/HeightToNormalNodeGlsl.cpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.