-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HdSt,UsdShaders] fixed UsdPreview material displacement
Updated previewSurface displacementShader to sample the displacement signal distinctly for each vertex emitted from the geometry shader. In order to do this the displacement shader needs to forward the emitted-vertex "index" argument to the HdGet_displacement() method used to sample the signal. Fixed codeGen to: - emit several missing HdGet_name(int index) accessors. - emit a few missing HdGet_textureName(coord) accessors. - use a preprocessor macro for the implementation of the HdGetSampler_textureName() accessors when the bindless_texture extension is not enabled. Fixes #922 Fixes #1026 (Internal change: 2030120)
- Loading branch information
Showing
2 changed files
with
115 additions
and
35 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