WebGL 3D - Point Lighting · // set the light color · gl.uniform3fv(lightColorLocation, m4.normalize([1, 0.6, 0.6])); // red light · // set the specular color · gl.
確定! 回上一頁