- Home /
Help with custom shader
I need help to customize Toony-BasicOutline Shader to be able to fade it's base texture into another. (hoping that this is possible).
I found this post HERE where a basic shader is provided that is able to fade from one texture to another. I need to merge Toony-BasicOutline with this shader and thus have a Toony-BasicOutline shader which is able to fade the base texture into another.
I have no experience coding shaders and have no clue how to merge the mentioned shaders. Would really be nice if someone can help me on this. Thank you!
I can't really help with the specifics of your question (because I don't use those standard shader) but I did write a tutorial on building shaders including toon outline shaders that could possibly help - it's a really worthwhile skill to pick up and wasn't too hard when I learned. http://unitygems.com
Thanks. Will give it a look soon :)
Further with my question, apart from adding _$$anonymous$$ainTex2 and _Blend properties to the Toony shader, After the following line:
SetTexture [_$$anonymous$$ainTex] { combine primary }
I also added the following 2 lines:
SetTexture [_$$anonymous$$ainTex2] { constantColor (0,0,0,[_Blend]) combine primary lerp(constant) previous }
SetTexture [_$$anonymous$$ainTex2] { combine previous +- primary, previous * primary }
I still have no success yet, but I guess I'm somewhere near. I think the problem here is (and that I don't understand) that Toony-BasicOutline inherits from Toony-Basic, so I'm suspecting the above lines need to be configured a bit in some way...
Well I don't really know word by word what those lines do, but when comparing the shader I found in the link with the Toony shader, the two lines above seem to be responsible for the blending effect
Your answer
![](https://koobas.hobune.stream/wayback/20220613112624im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Fade Shader- One texture fades in, the other fades out 2 Answers
Shader's BlendOp Min Question 1 Answer
Shader: Normal Angle 1 Answer
Terrain Textures Shift (Summer/Winter) 2 Answers
Help with Skybox Fading 1 Answer