Alex Sakhartchouk | af83e79 | 2010-08-27 16:10:55 -0700 | [diff] [blame] | 1 | |
| 2 | varying lowp float light0_Diffuse; |
| 3 | varying lowp float light0_Specular; |
| 4 | varying lowp float light1_Diffuse; |
| 5 | varying lowp float light1_Specular; |
| 6 | |
| 7 | void main() { |
| 8 | vec2 t0 = varTex0.xy; |
| 9 | lowp vec4 col = texture2D(uni_Tex0, t0).rgba; |
Alex Sakhartchouk | 6e93421 | 2010-08-31 12:02:01 -0700 | [diff] [blame^] | 10 | col.xyz = col.xyz * (light0_Diffuse * UNI_light0_DiffuseColor + light1_Diffuse * UNI_light1_DiffuseColor); |
| 11 | col.xyz += light0_Specular * UNI_light0_SpecularColor; |
| 12 | col.xyz += light1_Specular * UNI_light1_SpecularColor; |
Alex Sakhartchouk | af83e79 | 2010-08-27 16:10:55 -0700 | [diff] [blame] | 13 | gl_FragColor = col; |
| 14 | } |
| 15 | |