forked from bartvdbraak/blender
Premultiplication in OCIO shader went wrong,
it used to apply alpha on source color after conversion, not on result.
This commit is contained in:
parent
d376a1b740
commit
6a04ff11af
@ -100,9 +100,9 @@ static const char *g_fragShaderText = ""
|
||||
"\n"
|
||||
" gl_FragColor = OCIODisplay(col, tex2);\n"
|
||||
"\n"
|
||||
" col[0] *= alpha;\n"
|
||||
" col[1] *= alpha;\n"
|
||||
" col[2] *= alpha;\n"
|
||||
" gl_FragColor[0] *= alpha;\n"
|
||||
" gl_FragColor[1] *= alpha;\n"
|
||||
" gl_FragColor[2] *= alpha;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
"}\n";
|
||||
|
Loading…
Reference in New Issue
Block a user