# Unity-GPU-Particles
Using Direct X compute shaders to emit and update up to 5,000,000 particles simultaneously. Particle-Mesh collision detection is done using a pre-baked octree.
To use simply arrange the mesh as you wish and click Bake Octree.
For maximum tree depth it may take between 1-2 minutes to complete.
Collision accuracy really depends on number of nodes and tree depth, but the octree creation can take extremely
long beyond a depth of 5.
![](https://github.com/Brozef92/Unity-GPU-Particles/blob/master/gif_1.gif)
![](https://github.com/Brozef92/Unity-GPU-Particles/blob/master/gif_2.gif)
![](https://github.com/Brozef92/Unity-GPU-Particles/blob/master/gif_3.gif)
没有合适的资源?快使用搜索试试~ 我知道了~
使用DirectX计算着色器同时发射和更新多达5,000,000个粒子。粒子网格碰撞检测是使用预烘焙的八叉树完成的。.zip
共82个文件
meta:46个
cs:10个
mat:5个
需积分: 5 0 下载量 88 浏览量
2023-03-16
23:31:53
上传
评论
收藏 43.88MB ZIP 举报
温馨提示
使用DirectX计算着色器同时发射和更新多达5,000,000个粒子。粒子网格碰撞检测是使用预烘焙的八叉树完成的。
资源推荐
资源详情
资源评论
收起资源包目录
使用DirectX计算着色器同时发射和更新多达5,000,000个粒子。粒子网格碰撞检测是使用预烘焙的八叉树完成的。.zip (82个子文件)
Unity-GPU-Particles-master
Assets
Scripts.meta 191B
Resources.meta 191B
Scenes
Test Scenes.meta 191B
Test Scenes
Flowing Particles
LightingData.asset 12KB
ReflectionProbe-0.exr 131KB
ReflectionProbe-0.exr.meta 1KB
LightingData.asset.meta 180B
Spherical_Rays.unity 13KB
OBB_Testing.unity 28KB
Voxelization_Test.unity.meta 174B
Spherical_Rays.unity.meta 175B
Flowing Particles.unity.meta 174B
Flowing Particles.meta 192B
OBB_Testing.unity.meta 174B
Flowing Particles.unity 25KB
Voxelization_Test.unity 25KB
Scenes.meta 191B
Resources
Shaders
GeoShader_Spheres.shader 11KB
GeoShader_Spheres.shader.meta 195B
GeoShader_Quads.shader.meta 195B
Random.cginc 1KB
GPUParticle.cginc.meta 195B
GPUParticle.cginc 458B
FlowingParticles.compute 9KB
Random.cginc.meta 195B
GeoShader_Quads.shader 4KB
FlowingParticles.compute.meta 200B
Models.meta 191B
Materials
Particle_Materials.meta 191B
Debug_Materials.meta 191B
EarthMaterial.mat.meta 179B
lambert1.mat.meta 179B
Particle_Materials
Particle Material_Quads.mat.meta 138B
Particle Material_Spheres.mat.meta 179B
Particle Material_Spheres.mat 4KB
Particle Material_Quads.mat 4KB
EarthMaterial.mat 5KB
lambert1.mat 5KB
Debug_Materials
Line_Material.mat 5KB
Line_Material.mat.meta 179B
Baked_Octrees.meta 192B
Shaders.meta 191B
Main Camera.prefab.meta 179B
2-2-AlphaBlenedTex.png.meta 1KB
2-2-AlphaBlenedTex.png 45KB
Octree.prefab.meta 179B
Baked_Octrees
30x30x30x5.txt 2.67MB
30x30x30x5.txt.meta 178B
30x30x30x5_2.txt 2.14MB
30x30x30x5_2.txt.meta 178B
Octree.prefab 5KB
Main Camera.prefab 12KB
Models
Half_Pipe.fbx.meta 2KB
Half_Pipe.fbx 24KB
Materials.meta 191B
Scripts
Compute_Handlers
Particle_Flowing.cs 14KB
Particle_Flowing.cs.meta 262B
Testing_Scripts.meta 192B
Octree
Octree_Baker.cs 583B
Baked_Octree.cs.meta 263B
Voxelizer.cs 18KB
Baked_Octree.cs 20KB
Voxelizer.cs.meta 262B
Voxel_Debugger.cs 1KB
Voxel_Debugger.cs.meta 262B
Octree_Baker.cs.meta 263B
Octree.cs 16KB
Octree.cs.meta 262B
Compute_Handlers.meta 191B
Testing_Scripts
OBB_Bounds.cs 5KB
PointsOnSphere.cs.meta 263B
PointsOnSphere.cs 2KB
Make_Icosahedron.cs.meta 262B
OBB_Bounds.cs.meta 262B
Make_Icosahedron.cs 2KB
SmoothMouseLook.cs 5KB
Octree.meta 192B
SmoothMouseLook.cs.meta 262B
gif_3.gif 19.84MB
gif_1.gif 15.88MB
gif_2.gif 6.89MB
README.md 685B
共 82 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功