source: trunk/src/opengl/util/README-GLSL@ 440

Last change on this file since 440 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 685 bytes
Line 
1Use of GLSL for vertex and fragment programs in Qt
2---------------------------------------------------
3
4We don't compile the *.glsl files because we don't want the build process of
5Qt to require cgc from nVidia to build the fragment programs.
6
7The script src/opengl/util/glsl_to_include.sh will compile a GLSL program to a file
8that can be included in a C(++) program. The file is the output from cgc
9quoted as a string.
10
11This can be done manually by:
12
13./glsl_to_include.sh radial.glsl
14./glsl_to_include.sh conical.glsl
15
16This will produce the files radial.frag and radial.glsl_quoted.
17(and also conical.frag and conical.glsl_quoted)
18These files are included by qpaintengine_opengl.cpp
Note: See TracBrowser for help on using the repository browser.