Skip to content

Commit 57126b4

Browse files
committed
fix transparent noseque
1 parent 340ffcf commit 57126b4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/hero/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ void main() {
104104

105105
const isMobile = () => window.innerWidth < 768;
106106

107-
const renderer = new Renderer({ antialias: true, alpha: true });
107+
const renderer = new Renderer({
108+
antialias: true,
109+
alpha: true,
110+
autoClear: true
111+
});
108112
const gl = renderer.gl;
109113
gl.clearColor(0.0627, 0.0627, 0.0627, 1.0);
110114
containerRef.current?.appendChild(gl.canvas);
@@ -166,6 +170,7 @@ void main() {
166170
const asciiProgram = new Program(gl, {
167171
vertex: asciiVertex,
168172
fragment: asciiFragment,
173+
transparent: true,
169174
uniforms: {
170175
uResolution: { value: [gl.canvas.width, gl.canvas.height] },
171176
uTexture: { value: renderTarget.texture }

0 commit comments

Comments
 (0)