We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 340ffcf commit 57126b4Copy full SHA for 57126b4
src/components/hero/index.tsx
@@ -104,7 +104,11 @@ void main() {
104
105
const isMobile = () => window.innerWidth < 768;
106
107
- const renderer = new Renderer({ antialias: true, alpha: true });
+ const renderer = new Renderer({
108
+ antialias: true,
109
+ alpha: true,
110
+ autoClear: true
111
+ });
112
const gl = renderer.gl;
113
gl.clearColor(0.0627, 0.0627, 0.0627, 1.0);
114
containerRef.current?.appendChild(gl.canvas);
@@ -166,6 +170,7 @@ void main() {
166
170
const asciiProgram = new Program(gl, {
167
171
vertex: asciiVertex,
168
172
fragment: asciiFragment,
173
+ transparent: true,
169
174
uniforms: {
175
uResolution: { value: [gl.canvas.width, gl.canvas.height] },
176
uTexture: { value: renderTarget.texture }
0 commit comments