Download

how to keep lightmap on static object that is moved after baking?

Hello,

Is it possible to bake lighting on an static object, then move the static object, but keep the baked lightmap that is on that object and not invalidate it.

The reason I need this is, because when I apply an parallaxOcclusionMapping, it pushes the geometry back, and it shows the occluded spot where the wall meets the floor.
Here are some screenshots that make it more clear:
a8871d8e5eea24085c54733614b4341f6e25a124.jpeg
230c7d97f67008bafdd4392279a22a44c1b289ba.jpeg

So if I can move the wall more to the front so the occluded spots are gone and still have the same baked light on the wall, that would solve my problem.

You can use Pixel Depth Offset in order to push the wall out to where it should be.

That’s great! How can I do that more specifically?

This is how I have it set up my material:fd82bb89d125b8ae0b6a985f452ecb28769e9b85.jpeg

Oops, I got the term wrong, it’s the reference plane.

At 36:00 minutes

Thank you!