x


Baked Lightmap + Dynamic Light

Is it possible to make an object that has a baked lightmap be also affected by the dynamic light? I would like to use the lightmap to add some realism to the scene, but I would also like to have a moving dynamic light affecting the objects.

more ▼

asked May 19 '11 at 02:17 AM

Henrique Vilela gravatar image

Henrique Vilela
318 11 14 19

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Yes, you can :D Just bake it normally, than, in the LightMap panel deselect the lightmaps you baked, but DON'T DELETE THEM. Next step, is to associate the: Legacy Shaders: Diffuse Lightmap (or something like this) to the "baked+dynamic light object" and in the base slot, drag the lightmap. Its important to bake using single lightmaps.

more ▼

answered May 21 '11 at 01:49 AM

Henrique Dantas gravatar image

Henrique Dantas
171 7 7 16

(comments are locked)
10|3000 characters needed characters left

I tested the above answer, and it would seem it has become deprecated. Legacy Shaders are, by definition, shaders that have been retired from previous versions of Unity that have become deprecated. These ones have become too deprecated to use, anymore.

However, if anyone coming to this answer had the same issue as me, try baking lightmaps as normal (without doing the strange method the above answer did, of removing them and using them as a lightmap texture), and setting any dynamic lights to "realtime only." That seemed to solve this issue, for me.

more ▼

answered Aug 12 '12 at 01:11 PM

DESTRUKTORR gravatar image

DESTRUKTORR
831 3 5 11

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x427
x328
x81

asked: May 19 '11 at 02:17 AM

Seen: 2192 times

Last Updated: Aug 12 '12 at 01:11 PM