x


cast/receive shadows on iphone- check box or uncheck box

i'm starting to optimize my iphone scene, and all my objects have the "cast shadows" and "receive shadows" checkbox checked. Since I am not using lights on my static geometry (the have lights baked in from maya, and my lights for my characters have 'no shadows' checked) do I need to worry about these boxes?

will these boxes turned on take up any processing?

more ▼

asked Jul 15 '10 at 01:10 AM

gadavis gravatar image

gadavis
15 3 3 9

I'm pretty sure those options are only used for custom shaders

Jul 15 '10 at 01:33 AM spinaljack

No they're used for the out-of-the-box shaders as well.

Jul 15 '10 at 02:08 AM equalsequals
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Unity iPhone doesn't do shadows, so the checkboxes have no effect.

more ▼

answered Jul 15 '10 at 03:07 AM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

Thanks, that clears everything up nicely.

Jul 15 '10 at 08:58 PM gadavis
(comments are locked)
10|3000 characters needed characters left

In short, no.

I'm assuming your lights cull only the characters (if not I'd do that since environment lighting is baked anyway), and since they cast no shadows there isn't a problem.

Logically, since lighting originates from the light itself, if they cast no shadows, the engine will never need to check whether or not the photons emitted will need to cast a shadow on an object.

Cheers,

==

more ▼

answered Jul 15 '10 at 02:16 AM

equalsequals gravatar image

equalsequals
4.5k 16 28 64

Thanks, that is what i thought but wanted confirmation.

Jul 15 '10 at 08:58 PM gadavis
(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:

x1999
x170

asked: Jul 15 '10 at 01:10 AM

Seen: 2060 times

Last Updated: Jul 15 '10 at 01:10 AM