()
| 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 |
no test coverage detected