Added material loading stuff to scene loader