Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Respect Mesh Renderer CastShadows property in custom shadow renderer

Discussion in 'General Graphics' started by joshuacwilde, Jan 15, 2021.

  1. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    725
    I am finishing up a custom shadow renderer. Basically so I can have a lot more performant shadows by caching them. I am using a camera to render into a shadowmap right now. I would like to be able to respect the Cast Shadows property on MeshRenderers, thus only rendering shadows for MeshRenderers that have this property set. Any ideas? Or anywhere I can tie into the existing pipeline for this?

    I am using the built in render pipeline.