Write declaration of variable that receive vec3 data


Assignment Task: Computer graphics (openGL):

Q1. Write the declaration of a variable that will receive vec3 data from a buffer. The variable should be named bNormal and should be at location 5.

Q2. Write the declaration of a variable in the vertex shader that will send vec2 data to the fragment shader. The variable should be named vTxtCrd

Q3. Write the declaration of a variable in the fragment shader that will receive vec2 data from the vertex shader. The variable should be named vTxtCrd

Q4. Write the declaration of a variable named frag_color to be used in the fragment shader to receive the color to be assigned to that fragment.

Q5. Write the declaration of a uniform variable named specular of type float to be used in one of the shaders. The location of the variable should be 6.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write declaration of variable that receive vec3 data
Reference No:- TGS03252444

Expected delivery within 24 Hours