HDRP/Unit shader is applied to Linerenderer on HDRP environment.

  • ColorKey value doesn’t work as with the screenshot attached.
  • Is there any way to apply ColorKey value?


If you mean the color gradient of the linerenderer, yes.
Go to the package manger and install “Particle System Shader Samples” in the High Definition RP

Then create a Material and set the Shader to “Shader Graphs/ParticleLit”
6586210--748171--upload_2020-12-3_18-40-23.png

Apply this material to your LineRenderer and the Color Gradient will show up.

Why does this work? Because the LineRenderer uses VertexColors, like the ParticleSystem does. You can also create your own shader and use the “Vertex Color” Node in ShaderGraph.

3 Likes