Normals1

Check your repo for the Normals1 program. Modify the surface normals to produce a wave pattern. Create your wave pattern as follows:

The GLSL functions length and normalize will be useful.

Answer these questions:

  1. Your name:

  2. How many times is the vertex shader called? (check Model.h if needed)

  3. What is your estimate for how many times the fragment shader is called?

  4. Where should you insert your code to modify the normal? You should not modify any other files.

  5. What would be the appearance if we computed reflectence over the surface with the new normals?

  6. What are the limitations of this method?

Once you are done, show your instructor and turn in your answer sheet.

Your solution should look similar to this: