fix julia renderer in chrome

This commit is contained in:
Elizabeth Hunt 2023-10-24 19:54:58 -06:00
parent 1d15cdcb2a
commit d6b885b318
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
2 changed files with 19 additions and 19668 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@ const MAX_ZOOM = 4;
const C_THRESHOLD = Math.sqrt(2)/2;
const SLIDER_DIV = 2000*C_THRESHOLD;
const gpu = new GPU();
const gpu = new GPUX();
const buildRender = (width, height) => gpu.createKernel(function (maxIterations, cr, ci, centerX, centerY, zoom, colorMultipliers) {
let zx = (this.output.x / this.output.y) * (centerX + (4 * this.thread.x / this.output.x - 2) * (zoom / 4));
let zy = centerY + (4 * this.thread.y / this.output.y - 2) * (zoom / 4);