Fixed some shading nodes and code for AIR compatibility