 		#if 0//defined(PCSS)
 		vec4 shadowMoments = PCSS(vec4(I, 0.0), r_PCFSamples);
 		#else
-		vec4 shadowMoments = PCF(vec4(I, 0.0), u_ShadowTexelSize * u_ShadowBlur * ILen, r_PCFSamples);
+		vec4 shadowClipMoments;
+		vec4 shadowMoments = PCF(vec4(I, 0.0), u_ShadowTexelSize * u_ShadowBlur * ILen, r_PCFSamples, shadowClipMoments);
 		#endif
 	#else
 	// no extra filtering, single tap

		#if 0//defined( PCSS )
		vec4 shadowMoments = PCSS(vertexDistance, r_PCFSamples);
		#else
		vec4 shadowMoments = PCF(shadowVert, u_ShadowTexelSize * u_ShadowBlur, r_PCFSamples);
		#endif
	#else
	// no filter

		//

		// shadowMoments = PCF(I, penumbra, PCFsamples);
		vec4 clipMoments;
		shadowMoments = PCF(I, u_ShadowTexelSize * u_ShadowBlur * penumbra, PCFsamples, clipMoments);
	}
	else
	{
