This patch allows the artist to control whether the image should be premultiplied or not, when loading into memory... This would allow the artist to load up bump maps / specular maps / dirt maps into the alpha channel instead of transparency, allowing a saving with memory usage.
I could not figure out how to edit the OIIO flags within OSL when it loads up the image, so i have removed that code... Right now OSL does not respect the switch. Do you have any insight in to how to enable this?
I have added this drop down menu for both the image texture and the environment texture.
If there are any changes / modifications to the code just let me know!