keijiro / HdrpVatExample

VAT (Vertex Animation Texture) with Unity Shader Graph and Visual Effect Graph
The Unlicense
881 stars 86 forks source link

Particle ID not consistent during playback #1

Closed zeekindustries closed 4 years ago

zeekindustries commented 4 years ago

Hey Keijiro!

Thanks a lot for the reference, it was a great tool to fiddle around and understand how the VAT workflow will be within Unity.

I was trying to achieve an effect where every particle will have a different sprite on an Atlas based on the particle ID, but found out that the particle ID will suddenly swap (in the case of the lava example is every 1/3 of the playback). Any help would be greatly appreciated!

Cheers!

keijiro commented 4 years ago

Just for clarification, are you using my ""Set VAT Attributes" block?

zeekindustries commented 4 years ago

Yes, that is correct, I tried the latest commit

keijiro commented 4 years ago

Thanks for the quick reply. I found an issue in texture coordinates generation and fixed it. Please retry with the latest version.

zeekindustries commented 4 years ago

Hey Keijiro!

Thanks a lot for the quick action, just confirmed that it's working as intended. Really appreciate it, cheers!