- Home /
How to Customize Standard Shader ( Repeating Textures in Mirror Mode )
This is partly questions and mostly the answer.
I have created some sample projects which show you how you can modify and add functionalities to the Standard Shader provided by Unity. ( based on builtin_shaders-5.2.3f1.zip and builtin_shaders-5.3.0f2.zip )
I didn't want to lose degree of freedom provided by the builtin Standard Shader. And I wanted to keep the same inspector UI as the builtin Standard Shader.
You can get your hands on it right out of the zip attached.
Questions:
Isn't there a way to write a function to modify fragment shader's input before the actual fragment shader is called? ( I mean something like surface shader. )
What is the best practice in respect to maintenance. Repeating the same modification as every updates to new versions of Unity is just boring...
It's too bad that you can't derive from StandardShaderGUI because it's defined 'internal'.
Very same topic posted on the forum. http://forum.unity3d.com/threads/how-to-customize-standard-shader.377065/
Answer by a_p_u_r_o · Aug 16, 2016 at 12:55 AM
I've written my answer along with my question.
I'm adding this commend to mark it as solved.
Your answer
![](https://koobas.hobune.stream/wayback/20220612051324im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to Fade out Custom Unity Shader ? 0 Answers
Shader: 1 Base Texture Overlaid by 1 Transparent Texture. 0 Answers
How to remove a color from texture using Shader? 0 Answers
How to blend two textures? 1 Answer
Shader - What is float3.xy? 1 Answer