doing
EntityManager.SetSharedComponentData(entity, rendermesh);
removes lightmaps when applied on a lightmapped object
during conversion, the material gets copied and renamed when the object is lightmapped.
if anyone managed to get this to work it would be extremely helpful
Yes, lightmapping in Hybrid Renderer currently works by cloning the material and setting the static lightmap properties (including the lightmap texture) on the copy. If you want to manually set the material afterwards, you need to make sure the new material has the same properties.
1 Like