Jump to content

Attribute-driven shader parameters (transparency) turn material black


zbugni

Recommended Posts

Hello. I'm making a simulation of dripping candle wax, and I'd like the droplets to start out watery and transparent but become opaque and waxy as they solidify. For reference, see the puddle of wax pooling around the flame compared to the rest of the candle.

ShaderAttribsExamplr.png.8aa4f61ce5b172b3e744c81a6d75a492.png

To do this, I am using a custom temperature attribute, which is bound to the transparency and roughness values on a principled shader, like this-

ShaderAttribs1.png.f6a6db86a36fe91303e159b4df94deba.png

For the most part, this gives me the effect I want. However, in areas where the temperature approaches its maximum value (100), the material looks black and burnt.

ShaderAttribsRenderCropped.png.f12a78dcc1f64d22f3376ffa62801066.png

Does anyone know what could be causing this? It's frustrating, because I very nearly have the effect that I want. Any help would be greatly appreciated!

Here's my project file: CandleWax7.hipnc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...