X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FViewerTest%2FViewerTest.cxx;h=6e2a972446b79a04f5de348d662182f3ebb883fa;hb=67312b7991c945e66d4fa1d3a6f8e02dbabc9b5a;hpb=f4a7308f61af6cde23a6380eb8127695b75f4690 diff --git a/src/ViewerTest/ViewerTest.cxx b/src/ViewerTest/ViewerTest.cxx index ad91af8ad7..6e2a972446 100644 --- a/src/ViewerTest/ViewerTest.cxx +++ b/src/ViewerTest/ViewerTest.cxx @@ -517,6 +517,14 @@ Standard_Boolean ViewerTest::ParseShadingModel (Standard_CString th { theModel = Graphic3d_TOSM_FRAGMENT; } + else if (aTypeStr == "pbr") + { + theModel = Graphic3d_TOSM_PBR; + } + else if (aTypeStr == "pbr_facet") + { + theModel = Graphic3d_TOSM_PBR_FACET; + } else if (aTypeStr == "default" || aTypeStr == "def") { @@ -1982,7 +1990,7 @@ struct ViewerTest_AspectsChangeSet isOk = Standard_False; } if (ToSetShadingModel == 1 - && (ShadingModel < Graphic3d_TOSM_DEFAULT || ShadingModel > Graphic3d_TOSM_FRAGMENT)) + && (ShadingModel < Graphic3d_TOSM_DEFAULT || ShadingModel > Graphic3d_TOSM_PBR_FACET)) { std::cout << "Error: unknown shading model " << ShadingModelName << ".\n"; isOk = Standard_False;