MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / init

Method init

components/liquid-ether.tsx:612–622  ·  view source on GitHub ↗
(..._args: any[])

Source from the content-addressed store, hash-verified

610 this.uniforms = this.props.material?.uniforms;
611 }
612 init(..._args: any[]) {
613 void _args;
614 this.scene = new THREE.Scene();
615 this.camera = new THREE.Camera();
616 if (this.uniforms) {
617 this.material = new THREE.RawShaderMaterial(this.props.material);
618 this.geometry = new THREE.PlaneGeometry(2, 2);
619 this.plane = new THREE.Mesh(this.geometry, this.material);
620 this.scene.add(this.plane);
621 }
622 }
623 update(..._args: any[]) {
624 void _args;
625 if (!Common.renderer || !this.scene || !this.camera) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected