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

Method constructor

components/liquid-ether.tsx:857–873  ·  view source on GitHub ↗
(simProps: any)

Source from the content-addressed store, hash-verified

855
856 class Pressure extends ShaderPass {
857 constructor(simProps: any) {
858 super({
859 material: {
860 vertexShader: face_vert,
861 fragmentShader: pressure_frag,
862 uniforms: {
863 boundarySpace: { value: simProps.boundarySpace },
864 pressure: { value: simProps.src_p.texture },
865 velocity: { value: simProps.src_v.texture },
866 px: { value: simProps.cellScale },
867 dt: { value: simProps.dt },
868 },
869 },
870 output: simProps.dst,
871 });
872 this.init();
873 }
874 update(...args: any[]) {
875 const { vel, pressure } = (args[0] || {}) as {
876 vel?: any;

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected