commit | 032d47af737d803e841ab79f38ac9068a46c9aeb | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Mon Apr 08 19:45:40 2013 -0700 |
committer | Romain Guy <romainguy@google.com> | Tue Apr 09 10:12:47 2013 -0700 |
tree | c3428ff4c80f1274cd4a1ada4567ab1ed940c1b5 | |
parent | 50b9eb1c7375a87525d44a036337a8ba18eba55b [diff] |
Change the dither texture's swizzling This is a more elegant way to sample from a float alpha texture. Instead of sampling from the red channel in the fragment shader we can set the alpha channel swizzle to redirect it to the red channel. This lets us sample from the alpha channel in the fragment shader and get the correct value. Change-Id: I95bbf7a82964e1bf42c0fee1b782b6bdbbcef618