I created a cube.mdl and a plane.mdl in med. I put the cube above the plane in
Wed, and set the "shadow_stencil = on" variable before my main function and
then set the "my.shadow = on" in the cubes action.
In game, when I view the plane from a downward angle, I get the cubes stencil
shadow on the plane, but when I tilt the camera slightly up to hoizontal, the
shadow disappears even though it should still be in the view. I tilt it down
again, and the shadow comes back! What causes this strange clipping behavior?
The picture (right) shows a view slightly downward, you can see the shading on
the cube. However, as the camera tilts upward (left), the cubes shading and the
shadow on the plane has disappeared! I tried this with a dynamic light and/ or
sunlight, but it didnt help.
What am I doing wrong?