Revert max(dot, 0.0f) in SW , commit f5431dcb should be the correct way to do it 

Tested with following games and looks okay 

Legend Of Heroes - Trails In The Sky 
Kidou Senshi Gundam AGE Universe