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
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) in vec3 vertNormal; out vec2 tc; uniform mat4 mv_matrix; uniform mat4 p_matrix;
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
Heres how your modified vertex shader might look after adding the Lambertian lighting 1 version ... View full answer
Get step-by-step solutions from verified subject matter experts
