transfer expression to every primitive
747
1
0
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)
-
- tamte
- Member
- 8535 posts
- Joined: July 2007
- Online
replace your first line with
float grad = vertexprimindex(0, @vtxnum) / (primvertexcount(0, @primnum) - 1.0);
Tomas Slancik
FX Supervisor
Method Studios, NY