Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPS Foreground dependent on camera clipping planes #54

Closed
jkubala opened this issue Dec 21, 2023 · 2 comments
Closed

FPS Foreground dependent on camera clipping planes #54

jkubala opened this issue Dec 21, 2023 · 2 comments

Comments

@jkubala
Copy link

jkubala commented Dec 21, 2023

Hello,
I seem to have spotted a bug / limitation in the FPS Foreground rendering. The object goes transparent when the near clipping plane is set to 0.01. If near distance is increased (to 0.3), it renders the object properly, but of course then it clips through the camera when aiming down sights. I tried to fiddle with the parameters in the script a bit - unsuccessfuly, because I have no experience in this area, so I am completely clueless. May I ask you for some advice on this issue?
Thanks for reading!

@jkubala
Copy link
Author

jkubala commented Dec 21, 2023

I solved it by changing the depth variable in ForegroundDepthClear script to 0.01. I am quite worried if I did not break something with that (as I said, I am completely clueless in this area), so any feedback on this would be much appreciated.
Thanks a ton for this repo, truly a lifesaver in the Wild West of HDRP :)

@jkubala jkubala closed this as completed Dec 28, 2023
@alelievr
Copy link
Owner

alelievr commented Dec 28, 2023

Hey, I think that's fine to do this modification since there are already some problems with screen-space effects, it shouldn't add too many problems.
I guess something to watch out for is SSR, be sure to disable it on the materials of your FPS objects and it should be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants