🔧 Use vec4 for color

This commit is contained in:
Simon Schneegans
2022-06-09 08:28:48 +02:00
parent 67d6df0a70
commit 3360b45c18
2 changed files with 4 additions and 4 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, 3,
[c.red / 255, c.green / 255, c.blue / 255]);
shader.set_uniform_float(shader._uColor, 4,
[c.red / 255, c.green / 255, c.blue / 255, 1.0]);
});
});
}