Ditch transfer template parameter
Load transfer function as texture
Transfer function using texture fetching