Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Modern GLSL style

  1. #21
    Junior Member Regular Contributor
    Join Date
    Apr 2004
    Posts
    205
    @ Dark Photon: that would do, yes. I don't mind that way or the other, just want to be able to use includes

    @ malexander: ARB_shading_language_include would be good enough too, only if it was actually supported..
    that reminds me to update my drivers..

  2. #22
    Junior Member Regular Contributor malexander's Avatar
    Join Date
    Aug 2009
    Location
    Ontario
    Posts
    246
    You're right, ARB_shading_language_include is supported in the Nvidia 295 driver I'm using but not AMD Catalyst 12.6 on my other system, making it difficult to recommend as a general solution.

  3. #23
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    2,882
    Quote Originally Posted by malexander View Post
    There is http://www.opengl.org/registry/specs...ge_include.txt, though the developer is responsible for loading the include files themselves and linking the file to the contents in GL. I haven't used it myself though, as we have a preprocessor class in our project.
    Ah! Right! Forgot about that for some reason. Thanks for the correction. Not universally supported though. Same here on the preprocessor - handles that and the sprintfing.
    Last edited by Dark Photon; 07-17-2012 at 07:36 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •