Vertex offset individual particles rather than all at once

urbansam

PostFri Apr 13, 2018 9:46 am

Hi, I'm trying to move an area of particles spawn in a box shape.

Attached is the image reference of what I'm trying to achieve in shader forge.
https://drive.google.com/open?id=1bhSNh ... 1UMAUpZTrH
User avatar
nuFF3
Location: Hell

PostSat Apr 14, 2018 12:29 pm

It might be better to just to it through physics and scripting instead of through shaders IMO.

But if you want to go the shader route, I'd do it by using vertex displacement through world UV, and using a script to control where the point of displacement should be.
urbansam

PostMon Apr 16, 2018 4:30 pm

Thanks for the reply, I managed to get it working.

I use a particle system, and generate grid of cube mesh particle, using Would UV coordinate supplied to a black and white texture to offset it.

However, I would like to retain the cube shape and just offsetting the Y position of particles. Is there a way to achieve it? Thanks !

Result
https://drive.google.com/open?id=1fuJd0 ... nZY-zonL93

Shader Forge Node
https://drive.google.com/open?id=1TnqA9 ... 5wqm4D16Z8

Return to “Questions”



Who is online

Online users: No registered users and 3 guests