How to create Matcap shaders with Shader graph

i am trying to create a matcap shader for lwrp. Can any1 tell me how to go about this which nodes i need to combine to create one
Thanks

First, Shader Graph forum is this way → Unity Engine - Unity Discussions

Second, you just need a Normal Vector node set to View space, multiply by 0.5, add 0.5, and pipe that into the UVs of the matcap texture.

2 Likes

OK i tried this and it doesnt seem to work. Material is black without lights in scene.

5537521--569416--matcap.PNG

As it should be. Look up the definition of Albedo.

Use an Unlit Master Node.

1 Like

here is my version of Shader Graph Matcap. With exposed Power / Factor variable for design tweaks. And introdused as subgraph, for easier combine with other your graph-shaders.

7277005–879292–MatCap_subGraph.zip (3.83 KB)

and here are ready-to-use matcap graphs.

  • Unlit Albedo + Additive MatCap
  • Unlit Albedo + Multiply MatCap
  • Unlit Albedo + Blend MatCap (you can switch blend operation inside graph)

7277017–879298–MatCapGraphsShaders.zip (26.2 KB)

I tried it, but the shaders cant be read.

Hello, which Unity / Shader Graph version you use?
I’ve should meation, that my are:

  • Unity 2021.1.9f1
  • Shader Graph 11.0.0
    here is screenshot of matcap_subGraph7313530--886822--matcap.jpg
5 Likes