Search Unity

Wine glass with etching

Discussion in 'Shaders' started by squirt, Apr 9, 2018.

  1. squirt

    squirt

    Joined:
    May 12, 2011
    Posts:
    26
    Hi. I'm wondering if it's possible to make a material that will approximate what you see in this photograph:



    So I want nice refraction with etching on the outer surface. I've created the model and made a bitmap, but so far (using Unity 2017.3.0f3 personal) I have been unable to get anything close.

    I am a bit of a Unity novice. I know how I would go about this in VRay, but...

    Any help would be appreciated.

    Thanks.

    - Geoff
     
  2. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,550
    You'll have to look for a refractive shader online (I don't believe Unity includes one), and make sure it has a smoothness/roughness map input (most should). Then just have most of the map fairly white, and then much darker on the areas of the etching. I'd even sculpt the etching detail to be picked up on the baked normal map to really help differentiate it on the surface.

    Here's some free examples:
    https://docs.unity3d.com/Manual/GraphicsCommandBuffers.html
    https://github.com/Doppelkeks/Unity-CommandBufferRefraction

    But if you are targeting mobile/low-end hardware this may not be usable for you.
     
    Last edited: Apr 9, 2018