My lightmap works fine if I sample the scene’s lightmap like this:
half3 lm = UNITY_SAMPLE_TEX2D( unity_Lightmap, i.lmuv ).rgb
But if I take the lightmap texture (Lightmap-0_comp_dir.exr) and sample it like this its colors are wrong (tinted to green):
half3 lm = UNITY_SAMPLE_TEX2D( _LightmapColor, i.lmuv ).rgb;
What causes the difference? How can I supply Unity’s lightmaps manually into my shader (without using unity_Lightmap* for various reasons)