Page 1 of 1

Fade in / fade out?

PostPosted: Fri Feb 01, 2019 11:21 am
by kanikama
Hi people,

First I would like to say that I super noob with the aplify shader editor, but I think it is fantastic and I'm very happy using it. Also the English is not my best skill so I hope you can understand me.

I'm doing some kind of lava floor, is an special attack that it show up for 7 sec and I'm using one particle system to do it. I attach the shader tree and a detail of the fire ground

My problem is at the moment to show up I need to do it with fade in and when it finish with fade out. In general I use Color over Lifetime to control it, but it doesn't work with the shader, I read that is normal because use the transparence of the particle system is difficult, but I couldn't find a solution for this problem :roll:

Could you help me pls? Thanks in advance

Re: Fade in / fade out?

PostPosted: Tue Feb 05, 2019 12:23 pm
by Amplify_Borba
Hello, thank you for getting in touch and for your support!

You should use our Particles Alpha Blended template for authoring shaders for Unity's particle system, and you can find some additional information on this thread regarding this template.

The node that you need to use in order to access the particle system data is the Vertex Color node, and you may use it in a Standard Surface Shader or a Shader Template.

In the eventuality that you might need to access the Custom Vertex Streams data, you'll have to use a Texture Coordinates node.

You could also consider controlling the fade effect through script or from within the shader itself as well.

Re: Fade in / fade out?

PostPosted: Thu Feb 07, 2019 10:35 am
by kanikama
:o :o :o :o :o :o
https://media.giphy.com/media/xT8qB5sar ... /giphy.gif

Incredible!!! It's working!! Many thanks!!! I just add as you told me the vertex color and works!!!!
I need to review all the shader because it change a bit the color and some alpha doesn't applied at it should, I will check it all to see what happen.

All the best! and many thanks!!!!D

Re: Fade in / fade out?

PostPosted: Thu Feb 07, 2019 10:48 am
by Amplify_Borba
Happy to know that you've sorted this out!

Have you had the chance to rate and review Amplify Shader Editor?
It would be awesome if you could share your experience with the Unity community, your feedback is extremely valuable to us!

Feel free to get back in touch if you have further issues or questions, thanks!

Re: Fade in / fade out?

PostPosted: Thu Feb 07, 2019 11:51 am
by kanikama
I found that it is not nessesary to change the shader type, I can work with the surface, and then in the end of the shader just add the vertex color and it will work perfectly.

thanks for been there, I will put a super awesome review asap for sure.

all the best

Re: Fade in / fade out?

PostPosted: Thu Feb 07, 2019 12:23 pm
by Amplify_Borba
Glad to be of assistance!

Please be aware that, although you can use a Standard Surface, it might not be as performant as using the specific custom particle template, since it has many shader features included that might not be required.

Re: Fade in / fade out?

PostPosted: Thu Feb 07, 2019 1:19 pm
by kanikama
Excelent!! thanks for the advice, I'll check it ;D

Review done, all the best!!D

Re: Fade in / fade out?

PostPosted: Thu Feb 07, 2019 3:26 pm
by Amplify_Borba
Thank you so much for your support, it truly means alot to us!

Please let us know if you have any further questions!