I tried using your code and my model renders are showing up kind of white. Any idea why? Here is the render output vs the output in a viewer
render output output in a viewer