The projector camera is positioned approximately where the cursor is and is looking straight downwards. Ive changed the code from before slightly
float4 decalPos = mul(position, DecalViewProjection); decalPos /= decalPos.w; decalPos.xy = float2(decalPos.x, -decalPos.y) / 2.0f + 0.5f; float shadowDepth = ProjectorDepthMap.Sample(pointSampler, decalPos.xy); return float4(shadowDepth.rrr, 1);

Find content
Not Telling