Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Sign in to follow this  
UnityGamesRoland

Matcap Shader

Recommended Posts

Posted (edited)

I've made this simple matcap shader in Shader Forge today. The coolest thing about matcap is that it doesn't require any UVs so basically you can use it on any mesh including the ones that doesn't have a UV map.

To avoid any confusion, you don't need Shader Forge for the matcap shader to work since it was used only to generate the code.

 

A matcap looks something like this. It's like a pre-baked reflection probe which then gets projected onto the surface of a mesh.

matcap.jpg.293ad5365e9b0ccc4da346f0e3cfa79f.jpg matcap2.jpg.d6ef556175a3e07ebb522496611fc976.jpg matcap3.jpg.d2ce1c777dd06ccad5e4b4d0776fbec0.jpg

 

You can download the shader here. I prepared a little demo scene as well which you can see in the picture below.

Please login or register to see this attachment.

 

Please login or register to see this attachment.

Edited by UnityGamesRoland
  • Like 3

Share this post


Link to post
Share on other sites

Updated the post, actually forgot to include the ground texture. :YMAPPLAUSE:

Also here is the shader in Shader Forge if anyone interested.

Please login or register to see this attachment.  

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×