Commit f6518e1
[VFX] Fix SpawnIndex attribute when using instancing
We are storing the wrong value for SpawnIndex attribute during Init compute, when processing several instances at the same time.
We are currently using the batch thread index, instead of per instance thread index.
The fix is very simple, just replacing one with the other when storing the value.1 parent 206c513 commit f6518e1
File tree
1 file changed
+1
-1
lines changed- Packages/com.unity.visualeffectgraph/Shaders
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments