Question: Q. [25 points] Write a complete WebGL program (including javascript code, vertex and fragment shaders) which will display the 3D shape below (without the vertex
![Q. [25 points] Write a complete WebGL program (including javascript code,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f52add07a96_32466f52adc95a1a.jpg)
Q. [25 points] Write a complete WebGL program (including javascript code, vertex and fragment shaders) which will display the 3D shape below (without the vertex names and coordinates of course) in the canvas as a wireframe. Your program should change the color of the lines with keyboard input. You are free to choose which buttons/colors are going to be used. In your answer, you have to include a screenshot of your program's output! P2 (1.2.-1) (0.0.0) P3 (-3,-1,-3) (4,-2,-2) P Q. [25 points] Write a complete WebGL program (including javascript code, vertex and fragment shaders) which will display the 3D shape below (without the vertex names and coordinates of course) in the canvas as a wireframe. Your program should change the color of the lines with keyboard input. You are free to choose which buttons/colors are going to be used. In your answer, you have to include a screenshot of your program's output! P2 (1.2.-1) (0.0.0) P3 (-3,-1,-3) (4,-2,-2) P
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
