mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-16 21:39:29 -07:00
Commenting out the tables and adding select to some shaders in place of the original ternary operator.
This commit is contained in:
@@ -27,7 +27,7 @@ export default async (canvas, config) => {
|
||||
const canvasContext = canvas.getContext("webgpu");
|
||||
const presentationFormat = canvasContext.getPreferredFormat(adapter);
|
||||
|
||||
console.table(device.limits);
|
||||
// console.table(device.limits);
|
||||
|
||||
const canvasConfig = {
|
||||
device,
|
||||
|
||||
@@ -26,7 +26,7 @@ const makeConfigBuffer = (device, configUniforms, config, density, gridSize) =>
|
||||
slantScale: 1 / (Math.abs(Math.sin(2 * config.slant)) * (Math.sqrt(2) - 1) + 1),
|
||||
slantVec: [Math.cos(config.slant), Math.sin(config.slant)],
|
||||
};
|
||||
console.table(configData);
|
||||
// console.table(configData);
|
||||
|
||||
return makeUniformBuffer(device, configUniforms, configData);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user