Basic texture applying code.