INNER CODE UNIT · JavaScript

l

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

          const l = /void\s*main\s*\(\s*\)\s*{/gm
          a = a.replace(
            l,
            `
          // THREE-CustomShaderMaterial by Faraz Shaikh: https://github.com/FarazzShaikh/THREE-CustomShaderMaterial
  
          //~CSM_DEFAULTS
          ${_ ? y : H}
          ${D}
  
          ${d}
          
          void main() {
            {
              ${P}
            }
            ${_ ? F : x}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…