Added Some texturing calculations.