2018年6月24日 星期日

week08

主題  打燈


打光用的陣列
const GLfloat light_ambient[]  =  {0.0f,0.0f,0.0f,1.0f};
const GLfloat light_diffuse[]  =  {1.0f,1.0f,1.0f,1.0f};
const GLfloat light_specular[]  =  {1.0f,1.0f,1.0f,1.0f};
const GLfloat light_position[]  =  {2.0f,5.0f,5.0f,0.0f};

const GLfloat mat_ambient[]  =  {0.7f,0.7f,0.7f,1.0f};
const GLfloat mat_diffuse[]  =  {0.8f,0.8f,0.8f,1.0f};
const GLfloat mat_specular[]  =  {1.0f,1.0f,1.0f,1.0f};
const GLfloat high_shininess[]  =  {100.0f};

沒有留言:

張貼留言