Skip to content

Commit

Permalink
Fix shader load problem (PixarAnimationStudios#80)
Browse files Browse the repository at this point in the history
(cherry picked from commit fb1e43fa2a0c466b199f30a70761276d9f284c09)
  • Loading branch information
PierreWang committed Jan 17, 2023
1 parent 6e88839 commit 6f1ea70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions pxr/imaging/hdSt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ pxr_library(hdSt
shaders/renderPassShader.glslfx
shaders/simpleLightingShader.glslfx
shaders/terminals.glslfx
shaders/text.glslfx
shaders/visibility.glslfx
shaders/volume.glslfx
textures/fallbackBlackDomeLight.png
Expand Down
3 changes: 2 additions & 1 deletion pxr/imaging/hdSt/simpleTextShaderKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ HdSt_SimpleTextShaderKey::HdSt_SimpleTextShaderKey()
{
primType = HdSt_GeometricShader::PrimitiveType::PRIM_MESH_COARSE_TRIANGLES;
VS[0] = _tokens->vsTextureText;
VS[1] = TfToken();
FS[0] = _tokens->psTextureText;

FS[1] = TfToken();
}

HdSt_SimpleTextShaderKey::~HdSt_SimpleTextShaderKey()
Expand Down
4 changes: 2 additions & 2 deletions pxr/imaging/hdSt/simpleTextShaderKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ struct HdSt_SimpleTextShaderKey : public HdSt_ShaderKey

HdSt_GeometricShader::PrimitiveType primType;
TfToken glslfx;
TfToken VS[1];
TfToken FS[1];
TfToken VS[2];
TfToken FS[2];
};


Expand Down

0 comments on commit 6f1ea70

Please sign in to comment.