Hello, I have been looking at the different ways to create materials in PlayCanvas, From what I can see there are the following two options:
- Use the Phong/Physical shaders provided in the editor front-end
- Write your own custom vs/fs + shader definition files and assign them to the model
Is the Physical shader code available somewhere? I want to use it as a base, So I can pass in the maps and do some modifications to the shader stages. From what I have been told PBR rendering is pretty complex, and a lot of uniform variables are sent into the shader programs via the shader definition script, And without a reference, it’s difficult to write.
Is there some way to just write the vs/fs steps I want to do, and then send it further down the PBR processing chain?
Also, Is there any way to preview a shader in the editor viewport, without having to launch the runtime?