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