Scott Barta | 59b2e68 | 2012-03-01 12:35:35 -0800 | [diff] [blame^] | 1 | uniform bool m_UseTex; |
2 | uniform sampler2D m_Texture; | ||||
3 | uniform vec4 m_Color; | ||||
4 | |||||
5 | varying vec2 texCoord; | ||||
6 | varying vec4 color; | ||||
7 | |||||
8 | void main() { | ||||
9 | vec4 texVal = texture2D(m_Texture, texCoord); | ||||
10 | texVal = m_UseTex ? texVal : vec4(1.0); | ||||
11 | gl_FragColor = texVal * color * m_Color; | ||||
12 | } | ||||
13 |