QUESTION 33 Devise a test to determine whether a two-dimensional polygon is simple. T T TT Paragraph . Arial 3(12pt) E.E.T... %DO Q ESETT. - fx Mashups - 14 @ A IDS . Pathip Words:0 QUESTION 34 In WebGL we can associate a color with each vertex. If the endpoints of a line segment have different colors assigned to them, WebGL will interpolate between the colors as it renders the line segment. It will do the same for polygons. Use this property to display the Maxwell triangle: an equilateral triangle whose vertices are red, green, and blue. What is the relationship between the Maxwell triangle and the color cube? TT TT Paragraph Arial 3 (12pt) . E . T . pix %DOQEE T' T. 259 --- O fx Mashups - BIO Less Pathp Words: 0 QUESTION 35 The mapping from a point in object or world coordinates to one in screen coordinates is well defined. It is not invertible because we go from three dimensions to two dimensions. Suppose, however, that we are working with a two-dimensional application. Is the mapping invertible? What problem can arise if you use a two-dimensional mapping to return to a position in object or world coordinates by a locator device? T TT T Paragraph Arial 3(12pt) %DO Q EESES T' T. fx Mashups - 14 @ E.E.T.. - - . H H MTLESS Pathip Words:0 QUESTION 36 Write shader function to set the fragment color to be blue. TTTT Paragraph - Arial 3(120) * DO Q E SE T' T, E.E.T. 25 --- Words o Path: P QUESTION 37 Write a piece of code as key event handler. When key 'R' is pressed, the color vector colorVec set to represent Red color: When key 'G' is pressed, the color vector colorVec set to represent Green color, When key 'B' is pressed the color vector colorVec set to represent Blue color You may need declare colorVec appropriately TTTT Paragraph Arial " 3 (12pt) E T %DO Q UEST' T