Merge "Only use the gainmap shader if we might need it" into main