Add mising bits of implementation and ensure depth-prepass objects are only rendered in the transparency pass.