🔧 Use RGB for TV color

This commit is contained in:
Simon Schneegans
2022-06-13 06:22:27 +02:00
parent 8d6b844def
commit fda91e69bb
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ var TVEffect = class {
// Write all uniform values at the start of each animation.
shader.connect('begin-animation', (shader, settings) => {
const c = Clutter.Color.from_string(settings.get_string('tv-effect-color'))[1];
shader.set_uniform_float(shader._uColor, 4,
[c.red / 255, c.green / 255, c.blue / 255, 1.0]);
shader.set_uniform_float(shader._uColor, 3,
[c.red / 255, c.green / 255, c.blue / 255]);
});
});
}