Support for materials

Fix bug with shader reloading timestamps