danielepanozzo / cg-old

44 stars 16 forks source link

[Assignment 3]Phong shading V.S. flat shading: how to arrange normals? #106

Closed LihengGong closed 5 years ago

LihengGong commented 5 years ago

Phong shading V.S. flat shading: how to arrange normals?

My understanding is:

My problem:

danielepanozzo commented 5 years ago

If I understand the question correctly, you are saying that you could get both flat shading and Phong shading to work, but you would like to have an elegant way of switching between the 2?

If that is the question, there is no way to do both and easily switch. You will need two VBOs, one for each type of normal.

LihengGong commented 5 years ago

Yes, prof. That's exactly my question. I got your point. Thank you and have a good night