Updated renderer to support render passes