Accessing particle Custom Data
Posted: Wed Aug 01, 2018 6:35 pm
I'm trying to figure out how to intelligently access the particles Custom Vertex Streams. If I enable Custom1 as a Vector and then expand my renderer and set Custom Vertex Streams to True, I now see everything which is being packed and presumably queryable by Amplify.
I can see that Unity is trying not to be wasteful by packing things into the empty TEXCOORD0 inputs. However where are my other inputs? How do I access them in Amplify? I know there is a Texture Coordinate node which gives me access to 1, 2, 3, 4 UV sets but how do I find out where this data is being packed and how to access it?
Thanks,
Seth
- Code: Select all
Position (POSITION.xyz)
Normal (NORMAL.xyz)
Color (COLOR.xyzw)
UV (TEXCOORD0.xy)
AgePercent (TEXCOORD.z)
Custom1.xyzw (TEXCOORD0.w|xyz)
I can see that Unity is trying not to be wasteful by packing things into the empty TEXCOORD0 inputs. However where are my other inputs? How do I access them in Amplify? I know there is a Texture Coordinate node which gives me access to 1, 2, 3, 4 UV sets but how do I find out where this data is being packed and how to access it?
Thanks,
Seth