Overwrite methods and members from .cginc

I’m writing a custom shadow pass for my curved world vertex shader for the depth buffer to work correctly. As I understand, I have to repeat all the vertex manipulations in the shadow pass. For multiple curved shaders I have .cginc with the stuff I need to create an actual curve.

There are a few modifications for structs and vert function in order for shadows to work. Can I just overwrite the stuff I need in the shadow pass and not copying the whole code from .cginc there manually?

Sorry I can’t help directly, but I haven’t yet found a way myself when I’ve got to a situation where I would want to override something from what I’ve included. Have you read this thread (link below):

There might be useful information to get understanding what can and can’t be done.