mseonKim / URP-VolumetricFog-ForwardPlus

Volumetric Fog Package for URP Forward+
Other
74 stars 8 forks source link

fog and volumetric light occlusion not working #2

Open Isaacthebomb306 opened 3 months ago

Isaacthebomb306 commented 3 months ago

I have no idea if i'm doing anything wrong but the fog in my scene isn't being occluded behind walls.

Isaacthebomb306 commented 3 months ago

Screenshot 2024-07-29 231646

attached is an image of what I'm experiencing the transparent block in the middle is an opaque material on a cube

mseonKim commented 1 month ago

@Isaacthebomb306 Thanks for your feedback. It seems like the opaque material does not write depth to the camera depth buffer. Is it still reproducible if you use standard URP lit material for the block?

Isaacthebomb306 commented 1 month ago

Yes it is still reproducible

mseonKim commented 3 weeks ago

@Isaacthebomb306 Can you give me the repro sample project?

Isaacthebomb306 commented 3 weeks ago

I just followed the instructions, 1 camera mostly shadows as a scene, and had a few spotlights. I was using Unity 2022.3.4f1

mseonKim commented 3 weeks ago

I tried to reproduce it but it was hard to reproduce. Does it occur in Windows/DX11 or do you use other platforms such as Android? image

Isaacthebomb306 commented 3 weeks ago

i used windows 10 i'm not sure if i was running DX 10 or 11

mseonKim commented 3 weeks ago

Can you elaborate repro steps? Otherwise, I cannot resolve this issue without the repro sample project. :(

Isaacthebomb306 commented 3 days ago

i will reimport the package and try again, if the issue persists I will give you a step by step repro of what I did

Isaacthebomb306 commented 2 days ago

ok i found the issue, it was due to culling, I wasn't culling the lights from one of the two cameras so it was overwriting and causing visual and most likely performance issues