Jump to content

GLSL + #include + Houdini = ???


oxium

Recommended Posts

Hey all

I'm trying to setup a nice glsl library in order to avoid code duplication

Obviously for this kind of task I'd like to use include of header files containing different functions

Imagine something like that: phongspec.h blinnspec.h etc..

Anyway I'm sure you see my point.. the issue is that glsl doesn't support #include..

Thanks.. that's really awesome..

Do you have any idea guys ?

Looks like I could write my own plugin or something like that and copy/paste the file content each time I find a #include token..

But I'd really like to avoid this kind of crap

Maybe there's already solution for this directly inside Houdini ???

Thanks for any help

oX

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...