摘要: 1,光源颜色 * 物体表面颜色 => 得到反射回来的颜色再乘以环境光的强度因素从而得到最终的颜色值。2,获取键盘事件修改环境强度因素值。每次渲染的时候传入光源颜色值和环境强度因素值。glUniform3f(dirlight_colorlocation, directionallight.Color.x, directionallight.Color.y, directionallight.Col... 阅读全文
posted @ 2017-02-16 19:20 细雨细语 阅读(254) 评论(0) 推荐(0) 编辑