title: Unity 2018.3 HDRP - Change material color programatically?
body: <p>I am using the new HDRP/LitTesselation shader. </p>
  
  <p>I would like to change the <code>Base Color + Opacity</code> at runtime:</p>
  
  <p><img src="https://i.imgur.com/X8QBlTe.png" alt="img"></p>
  
  <p>I added this code to the game object's script:</p>
  
  <pre><code>void start()
  {
          Color color = new Color(100, 50, 100, 150);
  
          //Fetch the Renderer from the GameObject
          Renderer rend = GetComponent&lt;Renderer&gt;();
  
          //Set the main Color of the Material to green
          rend.material.shader = Shader.Find("_Color");
          rend.material.SetColor("_Color", color);
  }
  </code></pre>
  
  <p>But it generates an <code>Hidden/InternalShaderError</code> error in the shader.  Can anyone point me in the right direction?</p>