- Home /
Set Shader Rendering Mode to Fade via Code
Hey,
So I currently have a free ToonShader downloaded from Unity's asset store, and am trying to set the rendering mode of it to fade. This is due to me using the shader on 2D sprites, and fade is the only mode that doesn't cause weird artifacting. Is there any way I can do that in the code of the shader itself? Or some way to do it without having to access the material of every single sprite and changing settings there?
Shader code: https://pastebin.com/nKc0FWxE
Thanks!
Answer by Ovicior · Jan 15, 2018 at 07:16 PM
I found a shader for this.
Pastebin as a backup: https://pastebin.com/XM32ntkk
Your answer
![](https://koobas.hobune.stream/wayback/20220612150517im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2d lighting effect 1 Answer
ES2.0 Diffuse Shader? 0 Answers
one shader for multiple sprites 0 Answers
GLSL shader - array of uniform const 0 Answers
Sizeof float in cg shader 1 Answer