superbible

A Rust port of the OpenGL superbible

Stars
4

OpenGL Superbible - Rust Examples

This is my repository for keeping the OpenGL examples as I work through the OpenGL Superbible's 7th edition in rust.

More examples are available than the ones listed in the readme. Storing a lot of gifs would bloat the repo, so only a few are displayed here.

Instructions

To run any of the programs:

cargo run --bin name

Images

Solid Red

Colors

Point

Triangle

Moving Triangle

Colored Triangle

Tessellated Triangle

Geometry Shader

Fragment Shader

Interpolation

Spinny Cube

Spinny Cubes

Textured Triangle

KTX Viewer

This gif has artifacts from the method used to generate it but you get the idea.

Completion

  • alienrain
  • basicfbo
  • bindlesstex
  • blendmatrix
  • blinnphong
  • bumpmapping
  • clipdistance
  • compressrgtc
  • csflocking
  • cubemapenv
  • cubicbezier
  • cullindirect
  • deferredshading
  • depthclamp
  • dflandscape
  • dispmap
  • dof
  • envmapsphere
  • equirectangular
  • fontdemo
  • fragcolorfrompos
  • fragmentlist
  • grass
  • gsculling
  • gslayered
  • gsquads
  • gstessellate
  • hdrbloom
  • hdrexposure
  • hdrtonemap
  • hqfilter
  • indexedcube
  • indirectmaterial
  • instancedattribs
  • julia
  • ktxview
  • linesmooth
  • mirrorclampedge
  • movingtri
  • msaanative
  • multidrawindirect
  • multimaterial
  • multiscissor
  • multiviewport
  • noperspective
  • normalviewer
  • objectexploder
  • ompparticles
  • packetbuffer
  • perpixelgloss
  • phonglighting
  • pmbfractal
  • pmbstreaming
  • polygonsmooth
  • prefixsum
  • prefixsum2d
  • programinfo
  • raytracer
  • rimlight
  • sampleshading
  • sb6mrender
  • sdfdemo
  • shadowmapping
  • shapedpoints
  • simpleclear
  • simpletexcoords
  • simpletexture
  • singlepoint
  • singletri
  • sparsetexture
  • spinnycube
  • springmass
  • ssao
  • starfield
  • stereo
  • subroutines
  • tessellatedcube
  • tessellatedgstri
  • tessellatedtri
  • tessmodes
  • tesssubdivmodes
  • toonshading
  • tunnel
  • wrapmodes