Have you tried
inside your draw function.
- shade.set( "amount" , map( mouseX , 0 , 1200 , 0 , 1. ) );