Displace modifier with black and white texture has sloping edges I'm trying to displace a plane with a black and white texture for a Doom level map. What I am looking to get is a 90 degrees displacement all around, but the problem is the corners come out distorted even though the texture shows only straight angles. I checked the texture in GIMP and it shows zero grey pixels so that can't be it. I also increased the subdivision to 6 but it doesnt solve the problem either. Any advice on how to get the displacement to be only at 90 degrees?
Texture:

Blender:

Some of the texture settings I am using:

Another close up picture of the issue:

The less plane subdivisions the wider the distortion gets:

Edit:
I tried it in Unity terrain and it seems I am getting the same issue:
As @Lukasz-40sth said, I did the contour manually and extruded the edges and it works although it is time consuming. I wonder if a script could detect the texture edges and create the 'physical' edges.
Displacement needs many subdivisions to work. Still, the results are not gonna be perfect as the map may not overlap with subdiv &quot;grid&quot;. Use this map as a reference image instead and extrude the walls.