Skip to content

Commit

Permalink
Fix distortion viz
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostKiwi committed Jan 18, 2024
1 parent 0610b89 commit db6a383
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/js/render_border.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,19 @@ export default function render_border(project_points, subdiv, width, height,
ctx.shaders.viewrays[4],
);
const ray_topright = glm.vec3.fromValues(
ctx.shaders.viewrays[7],
ctx.shaders.viewrays[8],
ctx.shaders.viewrays[9],
ctx.shaders.viewrays[2 + 8],
ctx.shaders.viewrays[3 + 8],
ctx.shaders.viewrays[4 + 8],
);
const ray_botright = glm.vec3.fromValues(
ctx.shaders.viewrays[12],
ctx.shaders.viewrays[13],
ctx.shaders.viewrays[14],
ctx.shaders.viewrays[2 + 8 * 2],
ctx.shaders.viewrays[3 + 8 * 2],
ctx.shaders.viewrays[4 + 8 * 2],
);
const ray_botleft = glm.vec3.fromValues(
ctx.shaders.viewrays[17],
ctx.shaders.viewrays[18],
ctx.shaders.viewrays[19],
ctx.shaders.viewrays[2 + 8 * 3],
ctx.shaders.viewrays[3 + 8 * 3],
ctx.shaders.viewrays[4 + 8 * 3],
);

/* TODO: Should use instanced rendering, but don't wanna check for
Expand Down

0 comments on commit db6a383

Please sign in to comment.