I am writing a custom hair shader for use with Maya nHair. Among the items I will need for the shading calcs is the hair tangent at the surface intersection. In Renderman Shading Language, this would be in the variable "dPdv", which is the derivative in the v direction at the surface intersection. In Mental Ray, it is contained in the state variable "derivs[0]", which is the interpolated tangent of the hair. I am looking for the equivalent in VRay.
In the VRayContext, I have access to RayParams and RayResult. In both of these there are attributes for "dPdx" and "dPdy". Which of these (if any) will provide the hair tangent?
Thanks for your help.
In the VRayContext, I have access to RayParams and RayResult. In both of these there are attributes for "dPdx" and "dPdy". Which of these (if any) will provide the hair tangent?
Thanks for your help.
Comment