ShaderToy at https://www.shadertoy.com has a large collection of OpenGL Shaders with video demonstrations (rendered in WebGL) and full OpenGL Shader source code!
Shader source code: https://www.shadertoy.com/view/Ms2SD1
This shader simulates the ocean. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/Ms2SD1
Shader source code: https://www.shadertoy.com/view/MdX3Rr
This shader simulates mountainous terrain. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/MdX3Rr
Shader source code: https://www.shadertoy.com/view/Mt3GWs
This shader simulates clouds. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/Mt3GWs
Shader source code: https://www.shadertoy.com/view/MdX3zr
This shader simulates a flame. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/MdX3zr
Shader source code: https://www.shadertoy.com/view/MdBGzG
This shader simulates a canyon. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/MdBGzG
Shader source code: https://www.shadertoy.com/view/4sS3zG
This shader simulates a dolphin swimming in the ocean. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/4sS3zG
Shader source code: https://www.shadertoy.com/view/ldj3Dm
This shader simulates a fish swimming in the ocean. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/ldj3Dm
Shader source code: https://www.shadertoy.com/view/MsV3D3
This shader simulates blades of grass. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/MsV3D3
Shader source code: https://www.shadertoy.com/view/MsX3WN
This shader demonstrates raymarching. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/MsX3WN
Shader source code: https://www.shadertoy.com/view/lsXGzH
This shader simulates water flowing out of a pipe. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/lsXGzH
Shader source code: https://www.shadertoy.com/view/MdlXz8
This shader simulates light reflecting off the bottom of a pool. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/MdlXz8
Shader source code: https://www.shadertoy.com/view/Ms23zm
This shader simulates refraction of light in water. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/Ms23zm
Shader source code: https://www.shadertoy.com/view/MdjGWc
This shader simulates smoke columns emanating from the ground. Here's a screenshot of the shader:
Screenshot from source: https://www.shadertoy.com/view/MdjGWc
Fall 2016, CS-116A:
Lectures:
Assignments:
Handouts:
Programs: