title: How to use texture, and color also in WebGL?
body: <p>I'm learning WebGL, and I would like to make a program, where there are colored, and textured objects also. I tried to modify a bit the fragment shader: If the object don't have texture, then it will be colored.</p>
  
  <pre><code>precision mediump float;
  
  varying vec4 vColor;
  varying vec2 vTextureCoord;
  
  uniform sampler2D uSampler;
  
  void main(void) {
      gl_FragColor = vColor;
      gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));
  }
  </code></pre>
  
  <p>It doesn't works. I get an error: Could not initialize shaders.</p>