diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-12 08:03:57 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-12 08:03:57 -0400 |
commit | 5432b278f8ed8c9aaeccf1ee7a4da540787f965d (patch) | |
tree | 3c05fd2ae5cd481610b1e817b0152e12a71f9229 /shaders/new.frag | |
parent | 7487b029fa110388e90fd092bf3c3b9a4dcee08b (diff) |
RENDERING
Diffstat (limited to 'shaders/new.frag')
-rw-r--r-- | shaders/new.frag | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shaders/new.frag b/shaders/new.frag index 8812d72..fa8a260 100644 --- a/shaders/new.frag +++ b/shaders/new.frag @@ -1,9 +1,9 @@ uniform sampler2D sampler; varying vec2 texCoord; -varying float join; +varying vec4 color; void main(){ - vec4 color = texture2D(sampler, vec2(texCoord.x, texCoord.y)); - gl_FragColor = color; + vec4 pixelColor = texture2D(sampler, vec2(texCoord.x, texCoord.y)); + gl_FragColor = pixelColor * color; } |