Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Shadow with particale system

Discussion in 'General Graphics' started by zipzapgames1, Jun 7, 2023.

  1. zipzapgames1


    Jan 15, 2023

    I have a 2D game and I don't use lighting and shadow build in Unity engine,
    To draw a shadow below the SpriteRenderer, I add another SpriteRenderer below it and shift the position.

    My question is how can I add a shadow to particle, renderered by the Particle System,

    Outside Unity engine, if i work directly with the OpenGL,
    I simply render each particle twice, one for the particle and one for the shadow and I calculate the "shifting position" for shadow on the CPU,
    The same tactic like i do with the SpriteRenderer

    How can you do this with Unity engine?
    Or can I do it in other ways?