Question: Experiment with Program 10.1 by modifying the settings and/or computations in the fragment shader and observing the results. Program 10.1 Vertex Shader #version 430 //

Experiment with Program 10.1 by modifying the settings and/or computations in the fragment shader and observing the results.

Program 10.1Vertex Shader #version 430 // same as Phong shading, but add this output vertex attribute: out vec3 originalvoid main(void) { // include this pass-through of original vertex for interpolation: original Vertex =// add the following to perturb the incoming normal vector: float a = 0.25; // a controls height of bumps //

Vertex Shader #version 430 // same as Phong shading, but add this output vertex attribute: out vec3 original Vertex;

Step by Step Solution

3.50 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Graphics Programming Questions!