Commit 182748dd authored by Martin Heistermann's avatar Martin Heistermann

fix RGB/RBG mixup that caused strange artifacts.

parent 24f3aa0c
...@@ -12,5 +12,5 @@ void main() ...@@ -12,5 +12,5 @@ void main()
vec4 cb = texture2D(BackSceneTex, vTexCoord); vec4 cb = texture2D(BackSceneTex, vTexCoord);
// combine front and back color // combine front and back color
oColor = vec4(cf.rgb + cb.rbg * (1.0 - cf.a), 1.0); oColor = vec4(cf.rgb + cb.rgb * (1.0 - cf.a), 1.0);
} }
\ No newline at end of file
...@@ -12,5 +12,5 @@ void main() ...@@ -12,5 +12,5 @@ void main()
vec4 cb = texture(BackSceneTex, vTexCoord); vec4 cb = texture(BackSceneTex, vTexCoord);
// combine front and back color // combine front and back color
oColor = vec4(cf.rgb + cb.rbg * (1.0 - cf.a), 1.0); oColor = vec4(cf.rgb + cb.rgb * (1.0 - cf.a), 1.0);
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment