normalize color to 0-1 in kernel