• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#ifdef TEXTURE
2uniform sampler2D m_Texture;
3varying vec2 texCoord;
4#endif
5
6varying vec4 color;
7
8void main() {
9    #ifdef TEXTURE
10      vec4 texVal = texture2D(m_Texture, texCoord);
11      gl_FragColor = texVal * color;
12    #else
13      gl_FragColor = color;
14    #endif
15}
16
17