Hello. How can I use the .shader file from unity? This shader bends the space shown in the photo.
Unfortunately you can’t use it as it is, since unity shaders are based on the CG shader language. PlayCanvas / WebGL apps use GLSL for shaders.
Though I have to say even if the language was the same, it’s usually impossible to directly use a shader written for a different engine due to different uniform naming and methods available.
What you can do is rewrite it line by line so it can work in PlayCanvas. Graphics work the same way in most engines so in most cases that will can be done.