- Corrected transformation matrices when multiple Skinned Mesh Renderers are used as input, by applying an
IJobParallelFor
job on the vertices before these are sent to their respective ComputeBuffer. Inside this job, the vertices of each SMR are multiplied by each SMR'slocalToWorldMatrix
. A valid alternative would be to apply the transformation inside the Compute Shader, saving some CPU cycles. - Exposed the global "root" transformation matrix as a separate reference, instead of always using the first source.
Smrvfx is a Unity sample project that shows how to use an animated skinned mesh as a particle source in a visual effect graph.
- Unity 2020.1
This package uses the scoped registry feature to resolve package dependencies. Please add the following sections to the manifest file (Packages/manifest.json).
To the scopedRegistries
section:
{
"name": "Keijiro",
"url": "https://registry.npmjs.com",
"scopes": [ "jp.keijiro" ]
}
To the dependencies
section:
"jp.keijiro.smrvfx": "1.1.4"
After changes, the manifest file should look like below:
{
"scopedRegistries": [
{
"name": "Keijiro",
"url": "https://registry.npmjs.com",
"scopes": [ "jp.keijiro" ]
}
],
"dependencies": {
"jp.keijiro.smrvfx": "1.1.4",
...