겨울팥죽 여름빙수
article thumbnail
OpenGLES 2.0,GLSL lighting code

1. outline OpenGLES 2.0 don't support glLightf. So developer have to make light effect using glsl shader. Following content don't explane about OpenGL2.0 functions like glGetUniformLocation, glGetAttribLocation, ect. 2. Light formula Below formual show graphics expression of light in 3D graphics. I = Global Ambient + Emission + Ambient + Diffuse + Specular = Ga + Me + 1/a+bD+cD^2(Ka*Ia + Kd*Id(N..