Closed jcrombez closed 3 years ago
Not sure why it's happening 🤔 Are you using the selection code in this package or the outline custom pass provided in the documentation?
Also, can you tell me which shader graphs are you using that work/doesn't work in the build?
Are you talking about this ? https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/Selection/Shaders/02_Selection_Objects.shader (that's what i'm using)
The shader is from a shader graph based in the "Lit Master" node :
Okay, I tried to repro the issue with this setup:
I created this shadergraph trying to match your settings:
Created a sphere in the selection scene and applied this shader:
And it works correctly in build (release and debug):
Did I miss something in my setup?
Sorry for not answering you here, this was during the release period of the project, i had to drop this feature and then totally forgot about it. I guess i'll see next time i need an outline effect if have more success with this :)
Thanks the help anyway !
After i updated HDRP (not sure since which update, i'm using 7.4.3) some object are not outlined while playing in build mode. It depends wich shader (built with Shader Graph) the object outlined is using.
Do you have any idea what a shader could do that would mess with the outline custom pass in build mode ?