[CG]์์ ๋ณํ
ยท
Hi๐๏ธ/Computer_Graphics
ํค๋ณด๋๋ฅผ ์
๋ ฅํ์ฌ ์นด๋ฉ๋ผ์ ์์ ์ ๋ฐ๊พธ๋ ์ฝ๋์
๋๋ค. #include static float C_x, C_y, C_z = 2; static int rotateX = 0, rotateX_ = 0, rotateY = 0, rotateY_ = 0, rotateZ = 0, rotateZ_ = 0; void InitLight() { GLfloat mat_diffuse[] = { 0.5, 0.4, 0.3, 1.0 }; //GLfloat๋ ๋ณ์ ํ์
๋ช
์ค์ ํ๋๊ฒ. GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 }; GLfloat mat_ambient[] = { 0.5, 0.4, 0.3, 1.0 }; GLfloat mat_shininess[] = { 15.0 }; GLfloat li..