Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is there a way to get probuilder objects marked as lightmap 'dirty' on change of vertex colour?

Discussion in 'World Building' started by overthere, Apr 11, 2021.

  1. overthere

    overthere

    Joined:
    Jun 28, 2013
    Posts:
    110
    Hi,
    Is there as an easy way to mark a probuilder object as updated to the lightmapper on vertex colour change only?

    I'm using Probuilder 4.4.0, Unity 2020.2.0f1 with a vertex colour shader to assign emission colours that are then baked into a scenes lightmaps. This works well on initial assignment of an emissive colour, but any subsequent changes aren't picked up either to another emissive colour or no emission.
    This is only fixed by changing a part of the mesh (any vert, edge or faces position or rotation) which resets the object in the scenes lightmap, changing position of whole object doesn't help.

    Thanks
    Andy