Duration: | ±2 weeks |
---|---|
Date: | April 2013 |
Course: | Graphics programming 4 |
Tools used: | OpenGL Cg Visual Studio 2010 gDEBugger |
The first assignment for graphics programming 4 was to implement lighting in Cg shaders. I wanted more of a challenge so started reading up on parallax shaders. In the end I ended up with a steep parallax shader using ray-marching through a height map. I didn't spend much time optimizing it as this little project was more about understanding how it worked.
Features:
Rock material using a diffuse texture, specular texture, and height map. Showing off 3 different depth multipliers.
Showing rock material from two different angles.
Test pattern in height map showing off the self shadowing, rendered with one quad.