borec
July 21, 2022 09:33:26
Hi. Is there a way to apply colour gradient along hair strands (from root to tip)with karma hair? It is easy in arnold, but I cant find solution in karma.
Many thanks
Jirka
jsmack
July 22, 2022 14:57:52
use a karma rayimport or mtlx dot node to import "ray:hituv". This evaluates the parametric coordinates of the hit surface, which gives the parametric T coordinate in the green channel.
XPU seems to evaluate hituv differently. I'm not sure if it's possible to get the curve parametric coordinates in XPU.
borec
July 22, 2022 15:28:29
Thanks for help. I will try