效果:
知识点:
1、纹理采样目前仅支持GPU粒子运行(Texture sampling is only supported on the GPU at the moment.)
2、网格位置输出每个粒子在网格中的归一化位置。我们使用该值来采样纹理,就像它是UV一样(The Grid Location outputs a normalized location of each particle in the grid. We use that value to sample the texture as if it were a UV.)
Output.GridLocation.Normalized Array location