Allow specifying material opacity.
Removed testing code.
Merge pull request #3430 from ey6es/master

Read and apply material opacity settings.