I’m creating bracelet designer with three.js. This is my first experience with 3D and I really like three.js.
I’d like to make some beads looks ‘frosty’ and others looks ‘pearlish’. Could you advice, how can I achieve this?
I’m already using metalness and roughness in the designer but this is slightly different.
Too many map-variables and I have no idea which one should I use.
The effect you’re after isn’t built in in three.js as far as I know. However, it looks like all you have to do is add a fresnel snippet to an existing shader.
That said, there are two things you can do:
Monkey patch one of the existing shaders, like the phong shader and add a fresnel feature to it
Write your own shader from scratch.
I don’t know how experienced you are with GLSL, I know I for one don’t know that much about it to pull this off on my own, unfortunately. I did manage to find a shader on shadertoy that creates the effect you’re after to get you started:
Thanks a lot.
I do not have experience with GLSL (I hoped that using textures with some maps would do the trick).
However, not the first time I’ll learn something new. I can handle that.