INNER CODE UNIT · JavaScript

l

hyperfy-xyz/hyperfy · src/core/libs/three-custom-shader-material/index.js:458

          const l = /void\s+main\s*\(\s*\)[^{]*{((?:[^{}]+|{(?:[^{}]+|{(?:[^{}]+|{(?:[^{}]+|{[^{}]*})*})*})*})*})/gm
          ;(s = (c = o.matchAll(l).next().value) == null ? void 0 : c[1]), s && (s = s.slice(0, -1))
          const u = o.indexOf('void main() {')
          d = o.slice(0, u)
        }
        if (
          (_ &&
            o &&
            o.includes(e.fragColor) &&
            s &&
            (s =
              `csm_UnlitFac = 1.0;
` + s),
          a.includes('//~CSM_DEFAULTS'))
        ) {
          a = a.replace(
            'void main() {',
            `

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…