Jump to content

Lights and atmosphere


Recommended Posts

Hi Jason,

yes, what i mean is that i can find the "contribute to specular" and "contribute to diffuse", but not a "visible in fog" toggle...

How can I exclude a light from being visible in fog when is present an atmosphere object?

Sorry for my english, I hope that now is more clear... :P

Link to comment
Share on other sites

What do you mean by visible? If you want one light to light up the fog and the other one - to ignore it, go the the object node of your fog. There's an option called light mask there. By default it's set to * which means use all lights to illuminate. If you tinker with it, you can set a bundle of selected lights only to illuminate the object.

Luka

Link to comment
Share on other sites

I just uploaded a modified version of the lit fog shader to the Side Effects Exchange. It uses the full implementation of the illuminance() function that has a parameter to specify the lightmask. That is the easiest way to provide a lightmask to the fog shader.

http://www.sidefx.com/exchange/info.php?fi...9&versionid=189

You could also use the limport() function inside the illuminance loop in the fog shader to import light parameters and put the toggle on the light shader called "__dofog" if this works better with your lighting workflow. Very little difference here in using isfogray().

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...