Hey thanks for the reply, I don't see an error, it just turn red, but just if I use it inside the light loop, just like if I disable the isshadowmap on the sampler node of the original shadow map, if I put it outside it works like the screenshot above. Also, the custom code nodes only turns it red in the light loop when…