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 varying vec2 varTex0; 7 8 void main() { 9 vec2 t0 = varTex0.xy; 10 lowp vec4 col = texture2D(UNI_Tex0, t0).rgba; 11 col.xyz = col.xyz * (light0_Diffuse * UNI_light_DiffuseColor[0].xyz + light1_Diffuse * UNI_light_DiffuseColor[1].xyz); 12 col.xyz += light0_Specular * UNI_light_SpecularColor[0].xyz; 13 col.xyz += light1_Specular * UNI_light_SpecularColor[1].xyz; 14 gl_FragColor = col; 15 } 16 17