made more compatible
added depth pre-pass