MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / createInitialTexture

Function createInitialTexture

apps/baseai.dev/src/components/home/webgl.tsx:89–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 };
88
89 const createInitialTexture = async () => {
90 const texture = await createHighResBackgroundTexture(
91 window.innerWidth,
92 window.innerHeight
93 );
94 scene.background = texture;
95 if (material.uniforms && material.uniforms.u_background) {
96 material.uniforms.u_background.value = texture;
97 }
98 };
99
100 createInitialTexture();
101

Callers 1

WebGLInitializerFunction · 0.85

Calls 1

Tested by

no test coverage detected