x


Graphics.DrawMesh receive shadows but not cast?

Is it possible to control shadow casting/receiving with Graphics.DrawMesh?

/Patrik

more ▼

asked Feb 10 '10 at 03:27 PM

metervara gravatar image

metervara
171 10 12 20

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

1 answer: sort newest

Yes, just use Graphics.DrawMesh() with this signature:

static public void DrawMesh (Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, bool castShadows, bool receiveShadows)

and set castShadows/receiveShadows appropriately.

more ▼

answered Mar 22 '10 at 09:14 AM

Kuba gravatar image

Kuba
581 1 3 10

(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:

x491
x331
x217

asked: Feb 10 '10 at 03:27 PM

Seen: 1271 times

Last Updated: Feb 10 '10 at 03:27 PM