Page 1 of 1

Outline shader for Particle Effects

PostPosted: Sun Aug 05, 2018 2:23 am
by rxmarcus
I've noticed that ASE has a simple option that you can check to add an outline to the shader, but it doesn't appear to work when I apply the material / shader to a particle system. (Is there something unique or different about writing shaders for the particle system?)

Anyways, I also am trying to create the outline shader using nodes and as you can see still am not having any luck:

Image

Can you please help me know what I need to do to get an outline effect working with a png texture in a particle system?

Thanks

Re: Outline shader for Particle Effects

PostPosted: Mon Aug 06, 2018 1:37 pm
by Amplify_Borba
Hey there!

Unfortunately, the provided Outline implementation does not work with particles.

In order to get an outline effect with a texture in a particle system I believe that it would be best if you draw it in the actual texture.

Please let me know if you have any further questions, thanks!

Re: Outline shader for Particle Effects

PostPosted: Mon Aug 06, 2018 10:55 pm
by rxmarcus
Ah darn.

The reason I want to do it shader side is that when particles overlap, I want the outline to surround the entire group of particles and not have the outlines on each individual particle breaking up the effect. (If that makes sense)

Does amplify not support writing shaders that are compatible with particle systems?

Re: Outline shader for Particle Effects

PostPosted: Tue Aug 07, 2018 9:36 am
by Amplify_Borba
It's definitely possible to create Particle shaders with ASE using the Template Shader feature, which is the ideal solution for custom shader pipeline requirements that take advantage of node-based shader authoring, although some shader knowledge is required.

Templates are just as regular Unity shaders but with special ASE tags placed at key points, be sure to check the official wiki page for additional information.

The current ASE package includes Particles, UI, Sprites and Image Effects templates that you can use as a starting point to develop your own custom shaders, you can find them at AmplifyShaderEditor \ Examples \ Official \TemplateExamples.