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

#endif

	// return average of the samples
	float factor = (1.0 / (samples * samples))
	moments *= factor;
	clipMoments *= factor;
	return moments;

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