Jump to content
Sign in to follow this  
Librarian

Gradient patterns

Recommended Posts

Extrude inwards and put a sine wave on vertex colors.

int pr = vertexprim(0, i@vtxnum);
float offset = rand(pr, 123) * M_PI;
float shade = sin(@Time + offset) % 1.0;

 

vertex_colors.hiplc

Edited by konstantin magnus

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×