How to use vignette on a texture?

Is it possible to use postprocess vignette effect only on a texture?

I mapped out a texture to a mesh, and i want to feather the textures edges.
The best solution would be if the size of the feathered edges could be adjusted individually for each side,
but the built in vignette effect would be a huge progress too.

Thanks in advance!

Welcome aboard!

No, the vignette image processing effect applies as a post process to the whole screen.

However, I guess you could take the vignette code from the existing shader and use it in your own shader material:

https://playground.babylonjs.com/#E74H6M

3 Likes