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
Karma Hair- gradient along curve
1188 2 1- borec
- Member
- 2 posts
- Joined: Feb. 2021
- Offline
- jsmack
- Member
- 7810 posts
- Joined: Sept. 2011
- Online
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.
XPU seems to evaluate hituv differently. I'm not sure if it's possible to get the curve parametric coordinates in XPU.
- borec
- Member
- 2 posts
- Joined: Feb. 2021
- Offline
-
- Quick Links