Question
Now, we can modify vertexcolfrag.vs so that it uses the normal color for coloring fragments:#version 330 corein vec3 normal;out vec4 frag_color;void main(){frag_color = vec4(normal, 1);}
Step 1
vs file in a text editor or an integrated development environment (IDE). Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD