Question: QUESTION 17 Which of the following code segment will make the window solid and green? gl.clearColor(0.0, 1.0.0.0, 1.0); g1.clear(gi.COLOR_BUFFER_BIT); gl.clearColor(0.0, 0.0, 1.0, 1.0); Og1.clear(g1.COLOR_BUFFER_BIT); gl.clearColor(0.0,

QUESTION 17 Which of the following code segment will make the window solid and green? gl.clearColor(0.0, 1.0.0.0, 1.0); g1.clear(gi.COLOR_BUFFER_BIT); gl.clearColor(0.0, 0.0, 1.0, 1.0); Og1.clear(g1.COLOR_BUFFER_BIT); gl.clearColor(0.0, 0.0, 0.0, 1.0); g1.clear(gi.COLOR_BUFFER_BIT); gl.clearColor(0.0, 0.0, 0.0, 0.0); g1.clear(g1.COLOR_BUFFER_BIT): gl.clearColor(1.0, 0.0, 0.0, 1.0); g1.clear(gi.COLOR_BUFFER_BIT); QUESTION 18 A viewport is a rectangular area of the display window. By default, it is the entire window, but it can be set to any smaller size in pixels via the function gl.viewport. In following function call, what is the coordinate of the right upper corner of the view port? gl.viewport(1, 2, 3, 4); (42) (46) (1.6) (1.2) QUESTION 19 Consider a minimum GLSL. fragment shader: precision mediump float: void mainot Bl_FragColor - vec4(1.0.0.0, 0.0, 1.0): This shader will make the displayed point to be Green and opaque. True False UFSTION 20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
