Hello,
I've tried to implement shadowmapping technique but I am failing to get correct values from shadowmap texture to compare it with current (.z / .w) value.
Here is how I am initializing my shadowmap texture:
Here is the result:

Here is UVs from top of view:

And here is rendered scene with shader code below:
float4 ShadowCalculation(float3 normal, float4 lightPos, float3 pointToLight)
{
const float bias = 0.001f;
float2 …