Added cubic texture mapping implementation