Skip to content

matthewjberger/superbible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Solid Red

Colors

Colors

Point

Point

Triangle

Triangle

Moving Triangle

Moving Triangle

Colored Triangle

Colored Triangle

Tessellated Triangle

Tessellated Triangle

Geometry Shader

Geometry Shader

Fragment Shader

Fragment Shader

Interpolation

Interpolation

Spinny Cube

Spinny Cube

Spinny Cubes

Spinny Cubes

Textured Triangle

Textured Triangle

KTX Viewer

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

About

A Rust port of the OpenGL superbible

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published