transfer expression to every primitive

   743   1   0
User Avatar
Member
1 posts
Joined: Sept. 2016
Offline
hello how to pass an expression to each primitive, now the gradient is applied to everything. thanks

Attachments:
2021-07-26_13-45-47.png (407.5 KB)

User Avatar
Member
8525 posts
Joined: July 2007
Offline
replace your first line with
float grad = vertexprimindex(0, @vtxnum) / (primvertexcount(0, @primnum) - 1.0);
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links