alelievr / HDRP-Custom-Passes

A bunch of custom passes made for HDRP
MIT License
1.25k stars 136 forks source link

Decal Projector Get Through In Foreground #49

Closed Shaun-Fong closed 1 year ago

Shaun-Fong commented 1 year ago

I create a new hdrp project then copy all foreground asset. using the default outdoorscene. I really don't know what caused this to happen. 1 this is first person view look like, decal projector through fpv object. 2 this is scene view look like.

lookacat commented 5 months ago

What did solve this issue

Shaun-Fong commented 5 months ago

What did solve this issue

I never solve this issue(sad😭) I switched to URP instead. but still, decal is really f**king pain in fps... and you have to avoid the weapon wall clipping、and also make sure the weapon scope effect works oh scope effect will be affect by decal too......(idk, maybe I was wrong. I hate all these anyway....)

lookacat commented 5 months ago

thx, yeah im debugging for hours now idk why its so much pain to just render a seperate layer in front of everything, but I have no idea of shaders and custom passes.. ill comment if i find a fix or a better solution

Shaun-Fong commented 5 months ago

thx, yeah im debugging for hours now idk why its so much pain to just render a seperate layer in front of everything, but I have no idea of shaders and custom passes.. ill comment if i find a fix or a better solution

oh and post processing will be affect by those things too, like screen space AO.

actually, I have already solved these problems check this out this plugin is for fpv(maybe the best way?idk) to avoid the weapon wall clipping, and post processing works just fine, shadow for weapons too(damn, those bad memories comes back. shadow and lighting is also big problem for weapon dual render method , that looks pretty bad in my opinion). for scope effect i try to use custom render feature at the first time, but decal was gone 🤬 today I decide to use dual render(now performance issue come🤬 I just dont care anymore, F it) I have been troubled by these critical issues since two years ago, and it wasn't until this year that they were all resolved, so much pain for somebody dont know graphics things, like me(noob if you found better solution please let me know, good luck.

Shaun-Fong commented 5 months ago

this is how it looks image image image

lookacat commented 5 months ago

thanks mate that works well.