keijiro / Pcx

Point cloud importer & renderer for Unity
The Unlicense
1.36k stars 197 forks source link

Point and Disk shader render always on top #30

Open d3m3tr105 opened 5 years ago

d3m3tr105 commented 5 years ago

Hi! Thank you for sharing the project, it is awesome! I just had a quick question. Is there anyway to make the point cloud take into consideration the depth of transparent and similar shader? Right now the depth only seems to work with opaque materials. When using transparent or particle systems (for example) on other objects in the scene, the point cloud renders on top of everything.

keijiro commented 5 years ago

If you're using the legacy render pipeline (i.e. not using HDRP or Universal RP), the point could shader will be drawn before transparent materials, so it's thought to be a bug. Could you share a minimum project that can reproduce the issue in that case?

d3m3tr105 commented 5 years ago

Sure, I made a clone of this and added a TransparencyTest scene, here is the link https://github.com/d3m3tr105/KejiroPointCloud.git . Indeed I was talking about the legacy pipeline. Do you have any idea how to go about this? Let me know if I can help.