glsl grid display list

static grid

fsk's picture

i thought id try and make a consumer patch. since i never programed any open gl it had to be something simple but hopefully useful. so here it is. it something like the glsl grid but faster. it uses a display list to store the grid on the graphics card. because it uses a display list animating any of the inputs (apart from line width) is not a good idea since it regenerates the display list when you change them. im also not sure if its something that should be used inside the iterator. but these issues apart i think i succeeded in doing what i wanted. its a grid and its faster then the built in glsl grid:). if you have it make more than one grid, the x coordinate of the second texture coordinates (gl_MultiTexCoord1) is the index of the grid. dunno how useful that is but i remembered the 3D medical scans toneburst was doing.

give it a whirl.