fixed gross misusage of sampler2D

This particular compile issue should be solved, however the majority of its
function remains untested for the time being.
This commit is contained in:
itsmattkc
2019-11-30 18:29:46 +11:00
parent b9477f6695
commit 7c5b50c5e7
+5 -2
View File
@@ -50,13 +50,16 @@ QString AlphaOverBlend::Code(NodeOutput *output)
if (output == texture_output()) {
return "#version 110"
"\n"
"varying vec2 olive_tex_coord;\n"
"varying vec2 v_texcoord;\n"
"\n"
"uniform sampler2D base_in;\n"
"uniform sampler2D blend_in;\n"
"\n"
"void main(void) {\n"
" gl_FragColor = base_in - blend_in.a + blend_in;\n"
" vec4 base_col = texture2D(base_in, v_texcoord);\n"
" vec4 blend_col = texture2D(blend_in, v_texcoord);\n"
" \n"
" gl_FragColor = base_col - blend_col.a + blend_col;\n"
"}\n";
}