finding hardware depth shadow map demos
there are three shadowmap demos, but when i compile and run it under macos or windows, they are not working well.
the question is posted at gamedev:

is there any other demo with this topic?(have source codes.)
i want to see the correct implement about this .