Jump to content

Lafortune BSDF and Albedo


Recommended Posts

I've been going through the different primitive BSDFs to try to get a better understanding of what they each look like. The Lafortune has no documentation though. I know it can take two vectors and a float. I'm assuming that the first vector is the normal and that the float is an exponent, but I have no idea what the middle vector is. Can anyone enlighten me?

I have a similar question with the Albedo function. I know when passed a BSDF it returns the portion of reflected light. Albedo can also accept two vectors and an int. I'm guessing the int is for one of the masks defined in pbr.h, but I'm not sure what the two vectors are.

Thank you for any help,


Link to comment
Share on other sites

Oh wow. Thanks for the link! A lot of great information.

While poking around in pbr.h I noticed this line:

hitAlbedo = luminance(albedo(hitF, -hitI, hitNg, indirect_bounces));

So I'm guessing the extended call to albedo isn't something I'll be needing often for writing PBR shaders.

thanks again!


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.

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