shader now uses appropriate value for z buffer
final shader version