Add lighting to Program 10.4, so that the surface structure of the height-mapped terrain is further exposed.

Question:

Add lighting to Program 10.4, so that the surface structure of the height-mapped terrain is further exposed.

Program 10.4

#version 430 layout (location=0) in vec3 vertPos; layout (location=1) in vec2 texCoord; layout (location=2)layout (binding=0) uniform sampler2D t; layout (binding=1) uniform sampler2D h; // for texture // for

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: