shadowcast and shader fix

fixed a but in the shader source that would
prevent compilation on some platforms.
shadowcast glitches when starting on integer
positions have been fixed by simply making
them noninteger with nextafter.