Question 9 Suppose the canvas window is of 400 x 400 pixel resolution. vec2 uv gl_FragCoord.xy/ 400.0; within fragment…

Question 9 Suppose the canvas window is of 400 x 400 pixel resolution. vec2 uv gl_FragCoord.xy/ 400.0; within fragment…

Question:

Transcribed Image Text:

Question 9
Suppose the canvas window is of 400 x 400 pixel resolution.
vec2 uv gl_FragCoord.xy/ 400.0;
within fragment shader will make uv range within (
O [0, 1] x [0, 1]
O [-1,1] x [-1, 1]
O [0, 400] x [0, 400]
O [0, 1] x [0, 400]
Question 10
cg_FragColor =vec4(col.r, col.g, col.b, 1.0);
is the same as:
O cg_fragColor=vec3(col.rgb, 1.0);
O cg_FragColor = vec3(col.rgb);
O cg_FragColor = vec4(col.rgb, 1.0);
O cg_FragColor =vec4(col.rgb);
)
1 pts
1 pts

Expert Answer:

Answer rating: 100% (QA)

Question 9 The correc
View the full answer