Custom GLSL Shaders

From JReality Wiki
Jump to: navigation, search

There are also two tutorial applications in the jreality source repository: GLShadingLangExample0XNewBackend.java, X=1,2. They only work, if you choose the jogl3 backend. Respectively GLShadingLangExample0X.java only work with the jogl2 backend. The usage of GLSL in the jogl2 and jogl3 backend is similar enough to be easily portable, however the jogl2 backend uses an older version of GLSL and the jogl3 backend uses GLSL 3.30 (but higher versions might work as well).