Sharing codes between shaders

Started by mudlee, May 11, 2017, 12:56:38

Previous topic - Next topic

mudlee

hi.

Is there any solution to share code between shaders? For eg. I have a struct in shader1, and want to use in shader2.
In Google I didn't find any good answer written after 2014, so I hope there is something new feature I can use :)