- Home /
 
 
               Question by 
               Just_Jim_98 · Jun 18, 2018 at 01:55 PM · 
                shaderalphatime.deltatimegraphincrement  
              
 
              Shader Graph Increment vector1
So im currently making a simple dissolve shader however im wanting to simple make the alpha go from -1 to 1 once and then stop at 1. i can use the Time node using the sine time value but that goes from -1 to 1 then back to -1. so im basicly wanting it to do something like....
 private float alpha;
 
 private void Update(){
       alpha += Time.deltaTime;
       alpha = Mathf.Clamp(alpha,-1,1);
 }
 
               but i can't seem to be able to increment at all using the nodes. anyone got any ideas of how else i can go about doing this?
               Comment
              
 
               
              Your answer