added perlin rotation and scale and fix osc if to while