Programming/openGL

openGL shade

구차니 2025. 7. 30. 19:27

opengl에서 지원하는 쉐이드(면 색상 칠하기)는 flat과 gouraud 뿐이라는데

한 20년 전에 퐁은 어떻게 한거였지?

 

I digged around a bit. You can use the fixed function pipeline and set glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1); GL will then light backfaces with your back material and reversed normals. 

[링크 : https://gamedev.stackexchange.com/questions/9228/double-sides-face-with-two-normals]

 

flat / Gouraud

[링크 : https://gofo-coding.tistory.com/entry/OpenGL-Lighting-Shading]

 

phong은 쉐이더 써야한다고

[링크 : https://dev-sbee.tistory.com/35]