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

More particle system UV streams

Discussion in 'General Graphics' started by ifurkend, May 21, 2017.

  1. ifurkend

    ifurkend

    Joined:
    Sep 4, 2012
    Posts:
    350
    Before I submit a feedback ticket, I want to confirm that if it's possible to provide more UV streams particularly for billboard particles. What bothers me is that when customizing my particle shader, I want to combine the default AnimBlend shader with my fake shadowing shader. The problem is that UV2 is already occupied by the main texture in AnimBlend. On the other hand, UV3 and UV4 are reserved for mesh particles, which means there is no billboard particle UV stream left for the gradient map required by my fake shadowing shader.
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,240
    4 uv channels is the maximum supported on some of our weaker platforms, and we have no way to allow more on the platforms can support 8.

    Either we will wait until the old platforms disappear (e.g. GLES2) or we will add support for 8 where it is possible. But this won't be a particle task, but rather an engine task. I'm sure it will be on one of our internal roadmaps.

    Regarding your particular problem, we don't reserve any UVs for mesh particles.
     
    Last edited: May 21, 2017
  3. ifurkend

    ifurkend

    Joined:
    Sep 4, 2012
    Posts:
    350
    At least I get this idea from the API. When I attempt to use UV3 for the 2nd texture in billboard render mode, all particles flicker until I change render mode to mesh or remove the 2nd texture...
    I don't use UV1.xy for the 2nd (gradient) texture because this texture needs to be exempted from texture sheet animation division.
     
  4. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,240
    Perhaps share a small example shader and a screenshot of your custom vertex streams, and we can advise.
     
  5. AlcoleponeHome

    AlcoleponeHome

    Joined:
    Jun 9, 2018
    Posts:
    47
    I'm also gettting flickering with trying to sample a second texture that isnt on the texture sheet animation module.....