Charlie "Sheen" Cloth shading formula

Hi. Is this formula more corrected for Velvet cloth shading than Ashikhmin-Shirley method which is already implemented on Cycles’s Velvet BSDF?

3 Likes

I’m confused which code lines for what in this closure file?
https://developer.blender.org/diffusion/B/browse/master/intern/cycles/kernel/closure/bsdf_ashikhmin_shirley.h

Am I can replace with CharlieD formulas this previous code lines or need to edit other files too?

It’s a different file:
https://developer.blender.org/diffusion/B/browse/master/intern/cycles/kernel/closure/bsdf_ashikhmin_velvet.h

And the paper also mentions how to implement the G term and terminator softening.

It’s not a matter of simply replacing some lines, you have to understand what the code is doing.

1 Like