pass the material to the texture loader so it can extract some additional parameters