Add shadow mapping to your code from Exercise 10.3 so that your height-mapped terrain casts shadows. Exercise

Question:

Add shadow mapping to your code from Exercise 10.3 so that your height-mapped terrain casts shadows.

Exercise 10.3// variables and structs as in previous fragment shader, plus: // normal map // texture layout (binding=0)void main(void) { // computations same as before, until: vec3 N = calcNewNormal(); vec4 texel =

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: