Made some type casts in the frag shader explicit