Fix bugs with fog bit in shader IDs