![]() |
| Unity Engine Sample (plays on Itch.io) |
The other day I was creating a model that needed to use a PBR material, but it turns out there was a catch: the material had to be mobile-compatible and lightweight. So I looked through the shader list in the Unity editor (2022X) and couldn't find anything like that. Since my character was an armored warrior who needed to have both organic and metallic parts, I had this idea of taking a matcap, no matter how small, and using it as a reflection map for the model. Then, with a mask that varies between white and black, using the grayscale as a blending point, where the darker becomes less reflective and the whiter becomes more metallic. So I decided, I'll write a shader for that. The funny thing is, I don't know how to write shaders, not in lines of code, but rather how to assemble them in blocks, as I've been doing that since the old days of Blender and its GLSL shaders. Well, I knew what I wanted, so I asked someone who knew how to create it based on my description. I pasted the necessary information into Copilot, and it delivered on its promises: a Diffuse texture, a Mask texture, and a Matcap texture. There was just one thing missing to get the most out of all this: a map capable of simulating texture bumpness. That's where the Normal Map comes in. So I wrote a prompt asking to add the Normal Map to the shader, and voila, we now have a fake PBR shader for mobile games. Since I didn't do it alone, I asked Copilot about the usage limitations, and (he, she, it) said it would be free for commercial use, since I'd come up with the idea. Well, if it's free for me, why not for anyone who needs it? Here it is, and if you want to improve it, feel free, but I kindly ask that you share it to help others!The Button displays an example scene, but you can click directly on Itch.io in the bottom right corner and go to the shader download page.
But what is a Matcap, exactly? According to Google:
A MatCap (Material Capture) is a 3D computer graphics technique that uses an image of an illuminated sphere to map a shader onto objects, replacing the need for complex lighting and providing quick material visualization. It calculates the direction of an object's normal and maps it to a texture, providing stylized or realistic-looking visual effects. It is useful for previewing models and working with more noticeable details, such as in sculpting mode.
![]() |
| Matcap Sample (free - commercial use) |
Well, I hope you like it and find it very useful in your projects! If you'd like to let me know where you used it, it would be appreciated and shared (if you'd like), but only if you want.
Below are some of my products (even free ones!), skip if you want!
You can visit my CG Trader Store Page for more models - CG TRADER
I was a fan of Sketchfab, but FAB is cool too! Check it out! - FAB
My Itch.io page also has 3D models that might interest you. - ITCH.IO
For the record, I'm always making free content available, and I'll continue to do so. And if you'd like, you can help me keep the flame of my art burning. Follow me on my store pages and share them if possible. It helps a lot. If you need a model and can afford it, consider it; I do my best to keep prices fair, even across different stores.
If you want me to continue spreading my art...
Consider checking out my Buy Me a Coffee page, it's a bit empty for now, but maybe some paid stuff might be temporarily free there.



Comentários
Postar um comentário