fix for ambientTexture use in single and multipass materials