Question by 
               jisu-park · Feb 27, 2020 at 10:13 AM · 
                shaderunityeditor  
              
 
              Need Invert vertexcolors pasted unity-chan 2.0 shader
 
 
Can this shader merge with the unity-chan 2.0 shader?
 Shader "Custom/vertexcolor" {
     Properties{
         _MainTex("Albedo (RGB)", 2D) = "white" {}
         _ColorR("ColorR", Color) = (0,0,0,0)
         _ColorG("ColorG", Color) = (0,0,0,0)
         _ColorB("ColorB", Color) = (0,0,0,0)
     }
         SubShader{
         Tags{ "RenderType" = "Opaque" }
 
         CGPROGRAM
  #pragma surface surf Standard nomabient
 
         sampler2D _MainTex;
         float4 _ColorR;
         float4 _ColorG;
         float4 _ColorB;
 
     struct Input {
         float2 uv_MainTex;
         float4 color:COLOR;
     };
 
     void surf(Input IN, inout SurfaceOutputStandard o) {
         fixed4 c = tex2D(_MainTex, IN.uv_MainTex);
         //o.Albedo = c.rgb;
         o.Emission = c + ((IN.color.r*_ColorR)+(IN.color.g*_ColorG)+(IN.color.b*_ColorB));
         o.Alpha = c.a;
     }
     ENDCG
     }
         FallBack "Diffuse"
 }
 
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Unity 2018.3.0f1 ShaderGraph 0 Answers
[URP] Lighting issues when using Light Attenuation. 1 Answer
Unity Shader Optimization? 0 Answers
Error: Camera render texture 0 Answers
Error when selecting shader. Unity 5.6.1f1, SF: 1.35 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                