alelievr / HDRP-Custom-Passes

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

FPS Foreground working in game view, but not in build #55

Open jkubala opened 7 months ago

jkubala commented 7 months ago

Hello, title says it all. For some reason when the project is built (on Windows in this case), the screen when starting is blank. The only way to revert it I found so far is to just straight up remove the custom pass gameObject.

alelievr commented 7 months ago

Hey, differences in a build are often due to the shaders used in the custom pass being removed at build time because it's only referenced in a script with Shader.Find(). You can try to include the shader ForegroundDepthClear in the list of always included shaders in the Graphics settings to see if it fixes the issue.