Skip to content

Commit

Permalink
Merge pull request #2493 from Kitware/fixBlending
Browse files Browse the repository at this point in the history
fix(Shader): fix condition statement for gradient-based shadow
  • Loading branch information
floryst committed Jun 28, 2022
2 parents d2f4665 + ac6836a commit 6ae17f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Rendering/OpenGL/glsl/vtkVolumeFS.glsl
Expand Up @@ -754,7 +754,8 @@ vec3 applyShadowRay(vec3 tColor, vec3 posIS, vec3 viewDirectionVC)
}
tColor.rgb = tColor.rgb*(diffuse*vDiffuse + vAmbient) + specular*vSpecular;
}
#if vtkLightComplexity < 3 && defined(SurfaceShadowOn)
#ifdef SurfaceShadowOn
#if vtkLightComplexity < 3
vec3 applyLightingDirectional(inout vec3 tColor, vec4 normal)
{
// everything in VC
Expand Down Expand Up @@ -847,6 +848,7 @@ vec3 applyShadowRay(vec3 tColor, vec3 posIS, vec3 viewDirectionVC)
return tColor.rgb * (diffuse * vDiffuse + vAmbient) + specular*vSpecular;
}
#endif
#endif
#endif

//=======================================================================
Expand Down

0 comments on commit 6ae17f8

Please sign in to comment.