renderKernel = {
const renderKernel = gpu.createKernel(
function(t) {
const r = (Math.cos(t + Math.PI / 2.0) + 1.0) / 2.0;
const g = (Math.cos(t + Math.PI / 4.0) + 1.0) / 2.0;
const b = (Math.cos(t + Math.PI / 8.0) + 1.0) / 2.0;
this.color(r, g, b, 1.0);
},
{
output: [1024, 512],
graphical: true
}
);
return renderKernel;
}