True but i would have to synchronize the PWM frequency to the mains, else it could turn on at the beginning of the mains Sine Wave or at the top of the Sine Wave and result in very poorly regulated power. Which is likely to cause current spikes and noise on the mains. Point of using Triac is they regularly turn on at point in the Sine Wave you want to give you the same amount of power on each cycle.