The shader class now accepts a file object as an input.