You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Professor,
When firstly uploading the vertex attributes, should we upload the colors of the initial state along with positions and normals of the initial state ?
If so, how do we recalculate the colors later on the GPU side ? as it depends on normals, which changes according to translations and rotations.
Thank you.
The text was updated successfully, but these errors were encountered:
If you want to specify different colors for the different objects yes, you should send an additional color attribute for each vertex. The shading of every fragment (which depends on the transformed normals and positions) should be computed in the fragments shader.
Thank you professor. Another question, is using element buffer a must in this assignment ? Is it better to keep multiple copies of each vertex in the vertex array ?
Dear Professor,
When firstly uploading the vertex attributes, should we upload the colors of the initial state along with positions and normals of the initial state ?
If so, how do we recalculate the colors later on the GPU side ? as it depends on normals, which changes according to translations and rotations.
Thank you.
The text was updated successfully, but these errors were encountered: