library for basic operations on Bidirectional Texture Functions