3
$\begingroup$

I’m trying to create a material for a button on a music control panel. It looks like a plastic glossy button with some colourful light coming from behind.

I’m using EEVEE engine, so I tried bumping the transmission to 100% and also checking the refraction in the render settings, but it’s not the best looking button, it seems not transparent.

enter image description here

Q: How to create a realistic looking shader for that plastic knob using eevee?

$\endgroup$
2
  • 2
    $\begingroup$ Related or dupe: How do I emit light from inside a object? $\endgroup$ – brockmann Apr 18 '20 at 10:17
  • $\begingroup$ @brockmann Probably related, though this one's specifically for Eevee. So limited translucency, light diffusion, sss doesn't work, and no object thickness :). $\endgroup$ – Jachym Michal Apr 18 '20 at 11:40
7
$\begingroup$

Two ways that seem to work

  1. Glass Shader with a Mesh light inside

    • enable Screen Space Refraction (in render tab and material setting)
    • set refraction depth to a non-zero number (to fake the glass thickness)
    • I used a musgrave texture to fake uneven light intensity
  2. Translucent BSDF shader, with a Point light inside.

    • nicely simulates different thickness and light intensity
    • just keep in mind, that Eevee is limited to 128 lights per scene

Glass button with a Mesh light inside enter image description here

Translucent button with a Point light inside enter image description here

$\endgroup$
4
  • $\begingroup$ Hi Jackym. That's what I was trying to achieve, I was making a button transparent to give it reflections, and then adding a small mesh with emission within the glass button so it can emit light, But once I place the emission mesh in the glass, nothing is happening. I thought that the transparent object would be 100% like glass. Would it be possible instead of sun light, to have emission? Mostly I'm asking from technical aspect, although your answer is 100% correct and does magic in my scene! Kind regards. $\endgroup$ – blender breath Apr 18 '20 at 7:43
  • $\begingroup$ Hey :). I couldn't make it work at first, but now it seems to work. I updated the answer. $\endgroup$ – Jachym Michal Apr 18 '20 at 9:31
  • 1
    $\begingroup$ Great stuff, thank you! $\endgroup$ – blender breath Apr 18 '20 at 10:07
  • $\begingroup$ Happy to help. Learned some new stuff too :). $\endgroup$ – Jachym Michal Apr 18 '20 at 10:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.