sugar produces a grainy texture.
it's also interesting to note that when you add the baking soda and vanilla the consistency becomes very strange--it almost looks like caramel shaving cream. i have to admit the first time i made this never fail caramel corn i failed! the problem i had is that i boiled the caramel on high heat and it burned. i corrected that to medium high heat and it turns out amazing. 