fix bug in thresval setting
fixes for cracked glass and opacity updating