I want to make a car configurator using playcanvas. But, I have not found yet how to make a clear coat shader here. Does it already exist in playcanvas? Not yet? Or should I create the shader? If so, how can I reuse the Physical shader in mine, in order to keep all the inputs that already exist?
From what I know there isn’t a clear coat shader available for Playcanvas. Most car rendering examples usually use a simple metallic/reflective PBR.
It would be cool to have something like that to simulate that kind of surfaces. To create a shader on top of the existing Physical shader you should leverage the Playcanvas shader chunks system. It allows you to override only the relevant parts of the shader and keep the current inputs/lighting/shadows etc.
We also create a car configurator at the moment and I just wanted to ask when we can test or use your clear coat material you’re implementing right now?
Our project deadline is already in 2 weeks … so it would be great to get a fast solution for the problem… Or is there maybe a workaround to get better results than just the normal PBR workflow?
Thanks in advance
The two new clear coat properties on pc.StandardMaterial have not yet been exposed to the Material Inspector in the Editor, so you can only enable clear coat in script for now. The Inspector will be updated some time soon.
Yes that can be pain to do,
To overcome that I make my own interface using Dat.GUI, just as an example for clear coat,
I have made a sample project:
The build: ( on the top right corner you can change the "clearCoat’ and “clearCoatGlossiness” and you wont have to refresh.