diff --git a/lib/flowViewport/usdPlugins/shadersDiscoveryPlugin/shaders/customBasicLightingShader.glslfx b/lib/flowViewport/usdPlugins/shadersDiscoveryPlugin/shaders/customBasicLightingShader.glslfx index f2cb26fa5..b8dec03ec 100644 --- a/lib/flowViewport/usdPlugins/shadersDiscoveryPlugin/shaders/customBasicLightingShader.glslfx +++ b/lib/flowViewport/usdPlugins/shadersDiscoveryPlugin/shaders/customBasicLightingShader.glslfx @@ -190,7 +190,9 @@ surfaceShader(vec4 Peye, vec3 Neye, vec4 color, vec4 patchCoord) vec3 ambientColor = vec3(0);//Hardcoded //Get the value of the custom color float3 parameter from the material, it is named "FVP_CustomColor" vec3 diffuseColor = HdGet_FVP_CustomColor() * vertexColors;//Blend the custom color with the vertex colors - vec3 specularColor = vec3(1);//Hardcoded + //Hardcoded to something different than 1.0 just to see a change when + //using only indirect lighting and updating the FVP_CustomColor value + vec3 specularColor = vec3(0.5); vec3 n = Neye; vec3 e = normalize(-Peye.xyz); diff --git a/test/lib/mayaUsd/render/mayaToHydra/CustomShadersNodeTest/testCustomShadersNodeDomeLightOnly.png b/test/lib/mayaUsd/render/mayaToHydra/CustomShadersNodeTest/testCustomShadersNodeDomeLightOnly.png index df9721a4a..c4d2c0fb2 100644 Binary files a/test/lib/mayaUsd/render/mayaToHydra/CustomShadersNodeTest/testCustomShadersNodeDomeLightOnly.png and b/test/lib/mayaUsd/render/mayaToHydra/CustomShadersNodeTest/testCustomShadersNodeDomeLightOnly.png differ diff --git a/test/lib/mayaUsd/render/mayaToHydra/CustomShadersNodeTest/testCustomShadersNodeUseAllLights.png b/test/lib/mayaUsd/render/mayaToHydra/CustomShadersNodeTest/testCustomShadersNodeUseAllLights.png index f4781fc76..80a6a24b9 100644 Binary files a/test/lib/mayaUsd/render/mayaToHydra/CustomShadersNodeTest/testCustomShadersNodeUseAllLights.png and b/test/lib/mayaUsd/render/mayaToHydra/CustomShadersNodeTest/testCustomShadersNodeUseAllLights.png differ