Modify Program 12.4 to utilize a height map of your own design. Then add lighting and shadow

Question:

Modify Program 12.4 to utilize a height map of your own design. Then add lighting and shadow mapping so that your tessellated terrain casts shadows. This is a complex exercise, because some of the code in the first and second shadow mapping passes will need to be moved to the evaluation shader.

Program 12.4Java/JOGL application // same as for Bezier surface example, with these changes:} // tex coords are distributed across 64 patches, normalized to [0..1]. Flip Y coordinates. tc =} tcs_out[gl_InvocationID] = tc[gl_InvocationID]; gl_out[gl_InvocationlD].gl_Position =} gl_Position = mvp * tessellated Point; tes_out = tc;

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Graphics Programming In OpenGL With JAVA

ISBN: 9781683922193

2nd Edition

Authors: V. Scott Gordon PhD, John L. Clevenger PhD

Question Posted: