Cleanup
This commit is contained in:
@@ -104,8 +104,12 @@ ShaderCode ChromaKeyNode::GetShaderCode(const QString &) const
|
||||
void ChromaKeyNode::GenerateProcessor()
|
||||
{
|
||||
if (manager()){
|
||||
ColorTransform transform("cie_xyz_d65_interchange");
|
||||
set_processor(ColorProcessor::Create(manager(), manager()->GetReferenceColorSpace(), transform));
|
||||
try {
|
||||
ColorTransform transform("cie_xyz_d65_interchange");
|
||||
set_processor(ColorProcessor::Create(manager(), manager()->GetReferenceColorSpace(), transform));
|
||||
} catch (const OCIO::Exception &e) {
|
||||
std::cerr << std::endl << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ vec4 CIExyz_to_Lab(vec4 CIE) {
|
||||
}
|
||||
|
||||
float colorclose(vec4 col, vec4 key, float tola,float tolb) {
|
||||
/*decides if a color is close to the specified hue*/
|
||||
// Decides if a color is close to the specified hue
|
||||
float temp = sqrt(((key.g-col.g)*(key.g-col.g))+((key.b-col.b)*(key.b-col.b)));
|
||||
if (temp < tola) {return (0.0);}
|
||||
if (temp < tolb) {return ((temp-tola)/(tolb-tola));}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
uniform sampler2D tex_in;
|
||||
in vec2 ove_texcoord;
|
||||
out vec4 frag_color;
|
||||
|
||||
%1
|
||||
|
||||
void main() {
|
||||
vec4 col = texture2D(tex_in, ove_texcoord);
|
||||
|
||||
col = %2(col);
|
||||
|
||||
frag_color = col;
|
||||
}
|
||||
Reference in New Issue
Block a user