Got cubic mapping to work