Closure "normal N"

28 views
Skip to first unread message

Etienne Sandré-Chardonnal

unread,
May 24, 2019, 5:03:15 AM5/24/19
to osl...@googlegroups.com
Hi, I have a question about closure registration.

In the example renderer, the normal N is never registered as a closure parameter. Most stdosl.h closures have a "normal N" parameter, but not all.

1) Is a normal N parameter implicitely prepended when you register closures builtins?
2) Why isn't it causing issues for closures which have no normal parameter, such as emission(), transparent(), etc?

Thanks!

Christopher Kulla

unread,
May 24, 2019, 11:41:53 AM5/24/19
to osl...@googlegroups.com
Take a look in shading.cpp:84 for example. The closure vector
parameter "N" is registered here (along with all the others below).
> --
> You received this message because you are subscribed to the Google Groups "OSL Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+u...@googlegroups.com.
> To post to this group, send email to osl...@googlegroups.com.
> Visit this group at https://groups.google.com/group/osl-dev.
> To view this discussion on the web visit https://groups.google.com/d/msgid/osl-dev/CAM-xo91yvkircvgt46wLdmy87wFWGe5PRNiqKXQXqjDUdTJGrA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Etienne Sandré-Chardonnal

unread,
May 24, 2019, 6:14:45 PM5/24/19
to osl...@googlegroups.com
Ooops, my bad... I was looking at a version of shading.cpp I had modified myself for understanding the API, where I had removed the normal parameter. I may need some sleep... everything is coherent then.

Thanks!

Reply all
Reply to author
Forward
0 new messages