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

Method constructor

components/liquid-ether.tsx:1048–1068  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1046 camera: THREE.Camera;
1047 output: THREE.Mesh;
1048 constructor() {
1049 this.simulation = new Simulation();
1050 this.scene = new THREE.Scene();
1051 this.camera = new THREE.Camera();
1052 this.output = new THREE.Mesh(
1053 new THREE.PlaneGeometry(2, 2),
1054 new THREE.RawShaderMaterial({
1055 vertexShader: face_vert,
1056 fragmentShader: color_frag,
1057 transparent: true,
1058 depthWrite: false,
1059 uniforms: {
1060 velocity: { value: this.simulation.fbos.vel_0!.texture },
1061 boundarySpace: { value: new THREE.Vector2() },
1062 palette: { value: paletteTex },
1063 bgColor: { value: bgVec4 },
1064 },
1065 })
1066 );
1067 this.scene.add(this.output);
1068 }
1069 resize() {
1070 this.simulation.resize();
1071 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected