LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: Sharing codes between shaders  (Read 124 times)

mudlee

  • Newbie
  • *
  • Offline Offline
  • Posts: 9
Sharing codes between shaders
« on: May 11, 2017, 12:56:38 »

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 :)
Logged