summaryrefslogtreecommitdiff
path: root/src/glsl
AgeCommit message (Collapse)AuthorFilesLines
2014-03-08glsl/gsraytrace: Use __LINE__ macro to set line numbers in GLSL source strings.Fabian Bieler1-3/+7
The hardcoded numbers are a few lines off at the moment. Keeping track of the numbers through further modifications is inconvenient. The __LINE__ "constant" takes care of this automatically. v2: (by Kenneth Graunke) Don't specify the source string number (caught by Ian Romanick). Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-01-24blinking-teapot: check for GL_ARB_uniform_buffer_objectBrian Paul1-0/+5
2013-06-12glsl/gsraytrace: recursive ray tracing in gemetry shaders demoRALOVICH, Kristóf3-1/+957
Ray tracing using geometry shaders and transform feedback. Implements a simplified version of the algorithm described in K. Ralovich, M. Magdics: Recursive Ray Tracing in Geometry Shader, Proceedings of the Fifth Hungarian Conference on Computer Graphics and Geometry, Budapest, Hungary, 26 Jan 2010. The patch for automake comes from Brian Paul. Reviewed-by: Brian Paul <brianp@vmware.com>
2013-02-23trirast: remove debug printfBrian Paul1-1/+0
2012-12-18shtest: allow compiling only a VS or only a FSBrian Paul1-17/+11
2012-11-28geom-stipple-lines: use a float[16] uniform for the patternBrian Paul1-27/+26
instead of a texture map. This was Michal Krol's idea.
2012-09-19demos: add missing binaries to .gitignoreAndreas Boll1-0/+3
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-09-15glsl/identity: remove more unused stuffBrian Paul1-6/+2
2012-09-12glsl/identity: clean out unused codeBrian Paul1-84/+5
And set clear color's alpha to 1.0
2012-05-09geom-outlining: add demo of polygon outlining with a geometry shaderBrian Paul4-0/+688
Both GLSL 1.30 and 1.50 versions.
2012-05-09shtest: fix docs and code with respect to var names and typesBrian Paul1-3/+3
2012-01-13mesa-demos: Add blinking-teapot demo.vlj5-0/+227
blinking-teapot is an UBO demo.
2011-08-02Revert "cmake: Allow to specify glext headers include path."José Fonseca1-1/+0
I ran into build failures due to missing GL_UNSIGNED_INT_2_10_10_10_REV symbol, but it was caused by old glew headers, not old glext headers. So take this back until it actually makes a difference. This reverts commit 838c703bb9be6d89a226f2239dbb44c85d53da57.
2011-08-02cmake: Allow to specify glext headers include path.José Fonseca1-0/+1
In order to pick different (i.e., newer) headers than the system ones.
2011-08-01multitex: Uniforms must be set after linking the program.José Fonseca1-3/+3
This fixes the program when replacing gl_Vertex with VertCoord in multitex.vert, and VertCoord happens to not receive location 0.
2011-06-17Update .gitignore.José Fonseca1-0/+4
2011-06-07Fix GL_VERSION checks.José Fonseca3-12/+5
Several demos were mistakenly dismissing version 3. Simply use GLEW version check mechanism everywhere.
2011-06-07cmake: Add missing executables.José Fonseca1-0/+1
2011-06-06cmake: Build X11 programs on MacOSX.José Fonseca1-2/+2
On Mac OS X, GLX is provided as a separate OpenGL implementation, different from the standard OpenGL framework which provides support for GLUT and native Mac OS X applications.
2011-05-18bezier: check for GL_ARB_geometry_shader4 extensionBrian Paul1-0/+5
2011-05-13Mac OS X portability fixes.José Fonseca34-35/+34
2011-05-11Remove unused extfuncs.h.José Fonseca1-1/+0
Replaced by GLEW.
2011-04-18geom-stipple-lines: do line stipple with geometry/fragment shadersBrian Paul3-0/+327
2011-04-18geom-sprites: remove dead code, some clean-upsBrian Paul1-24/+1
2011-04-18geom-wide-lines: add keys to toggle GS on/off, line widthBrian Paul1-27/+37
Plus assorted clean-ups.
2011-03-26geom-wide-lines, geom-sprites - geometry shader demosBrian Paul4-0/+645
2011-03-18shader for simplex-noise.c demoBrian Paul1-0/+279
2011-03-17noise2: reindentBrian Paul1-94/+92
2011-03-17simplex-noise: test of GLSL "webgl-noise"Brian Paul2-0/+237
See http://github.com/ashima/webgl-noise
2011-03-09cmake: Build glsl subdir too.José Fonseca1-0/+62
2011-03-09glsl: Fix build breakage with GLU 1.2.José Fonseca1-0/+5
2011-03-09glsl: rad1/rad2 are #defines on windows.José Fonseca2-12/+12
2011-02-10Update a few missing images -> data renames.José Fonseca1-2/+2
2011-02-02Add --with-system-data-files optionPaulo Zanoni4-5/+5
If you specify --with-system-data-files, binaries will try to find .dat and image files inside ${datadir}/${PACKAGE}. If you don't specify, they will try to find the files inside "../data" (keeping backwards compatibility). Signed-off-by: Paulo Zanoni <pzanoni@mandriva.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-12Add missing binaries to .gitignorePaulo Zanoni1-0/+1
Signed-off-by: Paulo Zanoni <pzanoni@mandriva.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-12-13shadow_sampler: probe/print pixel value, fix GL version checkBrian Paul1-1/+13
2010-11-11scons: Remove scons build support.José Fonseca1-40/+0
Superseeded by CMake.
2010-11-09Use glew.h instead of glext.hJosé Fonseca1-1/+0
glext.h is not always available, and glew.h is already a hard dependency.
2010-10-29Don't use OpenGL 2.0 GLSL functions if OpenGL 2.0 is not supportedIan Romanick4-15/+17
GLEW doesn't initialize function pointers for core versions or extensions that are not supported. If OpenGL 2.0 was not supported but all of the GLSL extensions were, the OpenGL 2.0 function pointers from GLEW would still be NULL. As a result, programs would always segfault. This patch fixes shaderutil to do the right thing, and fixes brick.c to do the right thing. Other demos will still explode, but they can be fixed in a manner similar to brick.c. This is related to bugzilla #31118.
2010-09-17pointcoord: use 'o' key to toggle point sprite originBrian Paul1-0/+13
2010-07-11bezier: make it also work with nvidia's compilerZack Rusin1-1/+1
2010-07-10bezier: add a menu to select the number of subdivisions at runtimeZack Rusin2-5/+65
2010-07-10Add a new example rendering a bezier curve using a geometry shaderZack Rusin4-0/+257
2010-05-22convolutions: silence warningsBrian Paul1-4/+4
2010-05-22noise2: use glewBrian Paul1-41/+2
2010-05-20Convert glsl and trivial Makefiles.Eric Anholt3-108/+117
2010-04-21progs/glsl: better commentsBrian Paul1-2/+2
2010-04-10progs/glsl: Update .gitignore.Vinson Lee1-0/+2
2010-03-29progs/glsl: Add workarounds for Apple GLSL compiler crash.Vinson Lee2-0/+14
fsraytrace and vsraytrace were crashing on Mac OS X 10.6.3 in the Apple GLSL compiler function TPPStreamCompiler::assignOperands. Removing some const qualifers made the crashes go away.
2010-03-29progs/glsl: Remove inline keyword.Vinson Lee2-6/+6
Fixes MSVC build.