- Home /
Graphics.DrawMesh receive shadows but not cast?
Is it possible to control shadow casting/receiving with Graphics.DrawMesh?
/Patrik
Comment
Best Answer
Answer by Kuba · Mar 22, 2010 at 09:14 AM
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.
Your answer
Follow this Question
Related Questions
Directional Light shining on invalid objects 0 Answers
Good Soft Shadows with HDRP 2 Answers
How can I determine that a invisible object can cast shadows in the camera frustum? 0 Answers
Is it possible to use a different mesh for shadow casting than for normal rendering of an object? 2 Answers
Blank screen on Android 0 Answers