Assignment 5

In this project I hope to show you how to work the tesillation shaders, the tessillation controler and the tessillation evaluator.
From the "Helpful tools panel, download and replace Shaders.h and Shaders.cpp files in your project with these new ones.
Draw a plane on the screen. Then tessallate it (just draw it in wire mode). Use the Camera to get a better view.
We are making a terrain surface.

Ok, I felt a little bad about just making you look at my tessilation shader code and you all panicing to try to copy it. My intent was to show what was going in these two new added stages, not just to ask you to be Xerox machines. In truth, the process of tessillation is rather rigid, there is very little modifications you can make. In that light, let me go back over the four new shaders.

Tessillation Vert:


Tessillation control:


Tessillation evaluator:


Tessillation frag:


Let's make an underwater scene bringing together diffuse, normal and height textures add phong lighting to the eval and frag shaders and magic.
Extra: In class I told you about the equation for making "fog" to complete this underwater scene. Here is the code:


Check out this link:
Microsoft's Fog (I know...)

Extra: Add Umer's jellyfish to the scene or the submarine.

Have a good rest of your summer