March 21, 2012

Custom fire particle UV distortion shader in Unity

It's a really common solution to simulate realistic fire in cheap way. (without frame animations)
But it's not built in Unity 3.5...... So, I tried to make my own.

The shader is composed by: additive + noise UV distiortion

Fire texture is from Unity package (no alpha value):









the noise texture is from Unity community:









The scene is used only for this demo and came from Unity community.
Let's see the result:

first: just the additive shader without UV distortion (but with noise)



second: additive + UV distortion


If you need shader code, you can leave me a message.  

22 意見:

Ankur said...

hi,
nice work there
hey m trying to learn shaders and trying to achieve the same effect
could you please share the code
it would be really helpful
thankyou

sybilwitch said...

It is very beautful, would you please share the shader code with me?
My email:sybil.witch@gmail.com
Thanks in advance!

Denifia said...

Great work!

I'd love to take a look at your UV Distortion code if I could.

luke at neonblue . com dot au

Thanks heaps.

Matt Schwartz said...

Hi, Ive been struggling trying to put together a distortion shader for a while now and would love to possibly have a look at yours.
mattschwa@gmail.com

Thanks a lot

Matt Schwartz said...
This comment has been removed by the author.
Matt Schwartz said...
This comment has been removed by the author.
Matt Schwartz said...

Apologies for the triple post earlier.

yang said...

nice work.
could you share the code with me?
email: kojiyijian@gmail.com

yang said...

nice work.
could you share the code with me?
email: kojiyijian@gmail.com

Unknown said...

nice work.
I want your code ,to learn how to make a shader like that.
thank you very much.
songyangshi@gmail.com

Unknown said...

hello.
good work there.
I want to learn how to make a shader like that .
thank you very much.
songyangshi@gmail.com

Unknown said...

hi,nice work
I'm trying to make a shader like that, but i didn't finish it.
Would you share the code with me?
Thank you very much!
my email: lyp1229@gmail.com

Unknown said...

hi,nice work
I'm trying to make a shader like that, but i didn't finish it.
Would you share the code with me?
Thank you very much!
my email: lyp1229@gmail.com

Unknown said...
This comment has been removed by the author.
Unknown said...
This comment has been removed by the author.
Unknown said...

awesome work!
i like it verymuch,could you share the code? i am newer in shader,i want to learn something from your work.
my email
bulejiji03zz@gmail.com
thankyou

Unknown said...

Great work! Still available to share the code? If yes, please send me a copy to kieec@yahoo.com.tw

Many thanks!

Arno de Lange said...

Is this shader still availlable, would love to try it
arno dot jth at gmail dot com
does it still works in 4.6?
thank you
or has someone else got this shader

Xavier Figueras said...

Congratulations!!! looks really good! If still available, could you please send me a copy? attomick@gmail.com

Many thanks!!!

Paco Peregrina said...

hello, if code is still available would you let me have a copy? bb.cholula @ gmail.com

Regards.

Unknown said...

It's really good as Shader code.
I wonder what has made the code.
could you share the code with me?
My E-Mail: jhknas93 @ gmail.com

thank you

Unknown said...

Wow, nice! this will reduce many draw calls !
Can i have your code ?
My email : bestinme22@gmail.com