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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Can I use decals for blood permanence or is it too heavy?

Discussion in 'General Graphics' started by mrCharli3, Aug 1, 2023.

  1. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    960
    I want my blood decals to stay on the map until Im done in that zone, which is probably 5 minutes. The issue is that atm I spawn 1 blood decal at each particle collision, so after killing 30+ enemies there are like 500 game objects for my blood decals.

    This feel like a really stupid approach but how else can I achieve this effect?
     
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    1,950
    You may want to use a splat texture system instead. (Think Splatoon.)

    Every object you want to splatter would need a non-overlapping UV set, and a splat texture of sufficient size, and an additional splat texture material slot. But then the performance is pretty much constant instead of growing steadily worse as you get more and more splatters.
     
    mrCharli3, c0d3_m0nk3y and kdgalla like this.
  3. c0d3_m0nk3y

    c0d3_m0nk3y

    Joined:
    Oct 21, 2021
    Posts:
    568
    Agree with halley. There is a good tutorial of how to do this in Unity here:


    But be aware that this is not free, either. You have to pay the cost for the additional render textures.
     
    mrCharli3 likes this.