Initial implementation of texture filtering