Skip to content

Commit 5787a0b

Browse files
Rename function to better represent intentions
1 parent d060a77 commit 5787a0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mayaUsd/render/vp2RenderDelegate/renderDelegate.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ const MString kPointSizeParameterName = "pointSize"; //!< Shader parameter
9191
const MString kCurveBasisParameterName = "curveBasis"; //!< Shader parameter name
9292
const MString kStructOutputName = "outSurfaceFinal"; //!< Output struct name of the fallback shader
9393

94-
//! Returns a boolean of whether or not to use shader fragments using the default standardSurface material
95-
bool UseStandardSurface()
94+
//! Returns a boolean of whether or not we want the standardSurface shader fragment graph fallbacks
95+
bool WantStandardSurfaceFallback()
9696
{
9797
bool useStandardSurface = (MGlobal::executeCommandStringResult("defaultShaderName()") != "lambert1");
9898
if (TfGetEnvSetting(MAYAUSD_VP2_USE_LAMBERT_FALLBACK)) {
@@ -103,7 +103,7 @@ bool UseStandardSurface()
103103
}
104104

105105
//! Boolean of whether or not to use shader fragments using the default standardSurface material
106-
const bool _useStandardSurface = UseStandardSurface();
106+
const bool _useStandardSurface = WantStandardSurfaceFallback();
107107

108108
//! Enum class for fallback shader types
109109
enum class FallbackShaderType

0 commit comments

Comments
 (0)