Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/content/Backgrounds/Grainient/Grainient.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ const Grainient = ({
const res = program.uniforms.iResolution.value;
res[0] = gl.drawingBufferWidth;
res[1] = gl.drawingBufferHeight;
renderer.render({ scene: mesh });
};

const ro = new ResizeObserver(setSize);
Expand Down Expand Up @@ -238,4 +239,4 @@ const Grainient = ({
return <div ref={containerRef} className={`grainient-container ${className}`.trim()} />;
};

export default Grainient;
export default Grainient;
1 change: 1 addition & 0 deletions src/tailwind/Backgrounds/Grainient/Grainient.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ const Grainient = ({
const res = program.uniforms.iResolution.value;
res[0] = gl.drawingBufferWidth;
res[1] = gl.drawingBufferHeight;
renderer.render({ scene: mesh });
};

const ro = new ResizeObserver(setSize);
Expand Down
1 change: 1 addition & 0 deletions src/ts-default/Backgrounds/Grainient/Grainient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ const Grainient: React.FC<GrainientProps> = ({
const res = (program.uniforms.iResolution as { value: Float32Array }).value;
res[0] = gl.drawingBufferWidth;
res[1] = gl.drawingBufferHeight;
renderer.render({ scene: mesh });
};

const ro = new ResizeObserver(setSize);
Expand Down
1 change: 1 addition & 0 deletions src/ts-tailwind/Backgrounds/Grainient/Grainient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ const Grainient: React.FC<GrainientProps> = ({
const res = (program.uniforms.iResolution as { value: Float32Array }).value;
res[0] = gl.drawingBufferWidth;
res[1] = gl.drawingBufferHeight;
renderer.render({ scene: mesh });
};

const ro = new ResizeObserver(setSize);
Expand Down