Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------
- bool BSDF(
- SurfaceScatterEvent* event,
- const Ray* ray,
- const Scene* scene,
- const Material* mat,
- RNG_SEED_PARAM
- ) {
- #ifdef DIFF
- if (mat->t & DIFF)
- #else
- if (false)
- #endif
- {
- LambertBSDF(ray, event, mat, RNG_SEED_VALUE);
- return true;
- }
- return false;
- }
- //------------------------------------------------------------------
- float3 BSDF_eval(
- SurfaceScatterEvent* event,
- const Scene* scene,
- const Material* mat
- ) {
- #ifdef DIFF
- if (mat->t & DIFF)
- #else
- if (false)
- #endif
- {
- return LambertBSDF_eval(event, mat);
- }
- return (float3)(0.0f);
- }
- //------------------------------------------------------------------
- float BSDF_pdf(
- const SurfaceScatterEvent* event,
- const Material* mat
- ) {
- #ifdef DIFF
- if (mat->t & DIFF)
- #else
- if (false)
- #endif
- {
- return LambertBSDF_pdf(event);
- }
- return -1.0f;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement