Docs @ Psychtoolbox Wiki : LoadShaderFromFile

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

LoadShaderFromFile

PsychtoolboxPsychOpenGL

handle = LoadShaderFromFile(filename [, shadertype] [, debug])

Loads a GLSL OpenGL shader definition from textfile 'filename' and
creates an OpenGL GLSL shader of type 'shadertype'. Returns a handle to
the new shader. If shadertype is omitted, the type of the shader is
derived from the filename extension: .vert == GL_VERTEX_SHADER, .frag ==
GL_FRAGMENT_SHADER. The optional 'debug' flag allows to enable debugging
output.

On successfull load & creation, a 'handle' to the new shader is returned.





Path   Retrieve current version of LoadShaderFromFile.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOpenGL/LoadShaderFromFile.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1056 seconds