圆环光照实例
首先,定义一个全局光:
float globalAmbient[4]={0.7f,0.7f,0.7f,1.0f};
再定义光照:
float initiaLightLoc[3]={5.0f,5.0f,0.0f};
float globalAmbient[4]={0.7f,0.7f,0.7f,1.0f};
float lightAmbient[4]={0.0f,0.0f,0.0f,1.0f};
float lightDiffuse[4]={1.0f,1.0f,1.0f,1.0f};
float li
原创
2022-04-17 20:31:19 ·
305 阅读 ·
0 评论