I want to have a light source that becomes transparent at the edge. I’m not very experienced with textures. Here’s what I have currently:
Right now, the gradient just fades into black. Can I make that transparent instead?
I want to have a light source that becomes transparent at the edge. I’m not very experienced with textures. Here’s what I have currently:
You’re just making the emission value zero which is of course black.
You need to mix a transparent shader with the gradient texture as the mix factor
[ATTACH=CONFIG]405922[/ATTACH]
One thing to keep in mind though if you want to do this on a more powerful light source.
On stronger lights, the gradient will appear to be greatly reduced because you’re bringing in surface values that are well above 1 (and transparency will not show well until the values are at 1 or below). In this case, you would either need to tweak the gradient texture using a ramp node or use a lightpath node to make the visible mesh only visible to the camera.
Perfect! Thank you!