I have recently started coding on opengl ES 2.0, and very new to this field. Actually I want to draw colored cube on android such that each face will have different color. However I am only able to do single color shading using following fragment shader
precision mediump float;
void main() {
gl_FragColor =vec4(1.0,0.0,0.0,0.0) ;
Can anybody suggest how to make multicolor shader?
Also if anybody could provide sample code(Android) for reference, it would be really helpful.