We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

What does the attribute node do in this glass shader?

Home Forums Graphics / Blender What does the attribute node do in this glass shader?

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21920
    Avatarjem
    Licensee

    Hi Soft8soft team,
    I am working on projects that include glass materials. I have been examining node setup in the thin glass material in the Scooter demo. I understand most of it, but there is a group of nodes that I would like explained. I have circled these nodes in the attached screenshot.

    These nodes do not seem to do anything. The attribute node only returns zero so the rest of the chain that I circled does nothing? Please correct me if I am wrong.
    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #21924

    Hi, Jeremy.

    The attribute node only returns zero so the rest of the chain that I circled does nothing?

    This nodes differs the border of the glass from thr other glass part. If you’ll look inside the vertex color you will see that the edges of the glass colored with white (light gray) and other part is pure black, so this is mean for the shader that the other part of the glass will be fully transparent, but the enges will be less. This was made to imitate a thikness of a glass. You can remove this thing to simplifie the material.

    Co-founder and lead graphics specialist at Soft8Soft. Blender only and forever!

    #21941
    Avatarjem
    Licensee

    Hi Mikhail,
    Vertex colors! I did not think to look at those. That is a very good solution for simulating glass thickness. I learn something new every day. I will have to use this technique in my own work.
    Thank you for the explanation and for the great work.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.