I can’t use glsl function "texelFetch" (glsl vrsion 1.3) in max6. But other program(by C++) can run in the same PC(graphic card GTS250). can I set GLSL version in max6?
Jitter in Max6 doesn’t use OpenGL 3.0 so it can’t support GLSL 1.3. GLSL 1.2 is the version we support at the moment. What are you trying to do with GLSL 1.3?
I’ve been successful using texelFetch and other modern GLSL functions. Be sure to declare the GLSL version that you need in all your shader programs. For example, here is the first part of a vertex program in an .JXS file in which I used the texelFetch() function. *Important* you must have the compatibility profile declared for Max to function. Max must have the compatibility profile’s support for old-style built-ins like gl_Normal, gl_Vertex, etc.
#version 150 compatibility
#extension GL_ARB_texture_rectangle : enable
C74 RSS Feed | © Copyright Cycling '74