Using a paint program, generate your own height map and use it in Program 10.4. See if

Question:

Using a paint program, generate your own height map and use it in Program 10.4. See if you can identify locations where detail is missing as the result of the vertex shader being unable to adequately sample the height map. You will probably find it useful to also texture the terrain with your height map image file as shown in Figure 10.14 (or with some sort of pattern that exposes the surface structure, such as a grid), so that you can see the hills and valleys of the resulting terrain.

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

Figure 10.14image

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: