Graphics Shaders: Theory and Practice
Chapter 13 Source Code
This page was last updated: September 15, 2009
Example
GLIB file
Vertex file
Fragment file
Geometry file
Comments
Contour Lines
contours.glib
contours.vert
contours.frag
Requires:
vis3dtexture.tex
Corvallis Hyperbolic Geometry
corvallis.glib
corvallis.vert
corvallis.frag
Requires ESRI Shape files:
building.shp
,
centerline.shp
, and
parks.shp
Cutting Plane
cuttingplane.glib
cuttingplane.vert
cuttingplane.frag
Requires:
vis3dtexture.tex
Hedgehog Plot
hedgehog.glib
hedgehog.vert
hedgehog.frag
hedgehog.geom
Jittered Point Cloud
jittercloud.glib
jittercloud.vert
jittercloud.frag
Requires:
vis3dtexture.tex
Line Integral Convolution
lic2d.glib
lic2d.vert
lic2d.frag
Requires:
vis2dtexture.tex
Multiband Satellite Images
multiband.glib
multiband.vert
multiband.frag
Requires BMP image files:
goes.infrared.bmp
,
goes.visible.bmp
, and
goes.watervapor.bmp
Image Negative
neg.glib
neg.vert
neg.frag
Requires
vert.bmp
Point Cloud
pointcloud.glib
pointcloud.vert
pointcloud.frag
Requires:
vis3dtexture.tex
Volume Probe
probe.glib
probe.vert
probe.frag
Requires:
vis3dtexture.tex
Stream Tube
streamtube.glib
streamtube.vert
streamtube.frag
Toon Rendering
toon.glib
toon.vert
toon.frag
Requires:
castle.bmp
Volume Tracing
volumetracing.glib
volumetracing.vert
volumetracing.frag
Requires:
vis3dtexture.tex