Hey everyone,
I’ve been trying to figure out how to create an outline around a mesh in Babylon.js, similar to this image.
I checked out this previous question on the forum and found the method using renderOutline
, outlineColor
, and outlineWidth
, which works great.
But here’s the twist: I need to achieve the same effect using a Custom Shader. It’s a bit of a requirement for what I’m working on.
Can anyone lend a hand with this?
Thanks a bunch!
Unfortunately No, I want to use proper shaders to achieve that effect. I am not allowed to use any predefined Babylon method.
I guess you are finding custom postprocess? If you are asking the shader content rather than where to use the shader, it should be similar with glowlayer.
well, the babylon methods ARE using proper shaders to do that
You can check the shaders used for the outline renderer or the glow layer and see what we are doing to make that work. Not sure why you can’t use the babylon methods (some assignment), but babylon is open source, everything we do is open to inspect.
Thank you. Can you please share me any reference link where I can find the code working under those methods.
Thank you in advance.
Thank you for the reply. Will look into this as well!