From 0eb05f6dfb66928b571d3be34e701de823e09df7 Mon Sep 17 00:00:00 2001 From: Martin Valigursky Date: Wed, 21 May 2025 16:13:02 +0100 Subject: [PATCH 1/2] Reorganized folders for chunks and their collections --- src/extras/render-passes/render-pass-coc.js | 2 +- .../render-pass-depth-aware-blur.js | 2 +- .../render-passes/render-pass-dof-blur.js | 2 +- .../render-passes/render-pass-downsample.js | 2 +- src/extras/render-passes/render-pass-ssao.js | 2 +- src/extras/render-passes/render-pass-taa.js | 4 +- .../render-passes/render-pass-upsample.js | 2 +- src/framework/app-base.js | 4 +- .../components/particle-system/system.js | 4 +- src/framework/lightmapper/lightmap-filters.js | 4 +- .../collections/particle-chunks-glsl.js | 89 ----- .../collections/particle-chunks-wgsl.js | 89 ----- .../collections/shader-chunks-glsl.js | 354 ------------------ .../collections/shader-chunks-wgsl.js | 344 ----------------- .../chunks}/chunk-validation.js | 0 .../chunks}/common/frag/bayer.js | 0 .../chunks}/common/frag/decode.js | 0 .../chunks}/common/frag/encode.js | 0 .../chunks}/common/frag/envAtlas.js | 0 .../chunks}/common/frag/envProc.js | 0 .../chunks}/common/frag/float-as-uint.js | 0 .../chunks}/common/frag/fog.js | 0 .../chunks}/common/frag/gamma.js | 0 .../chunks}/common/frag/linearizeDepth.js | 0 .../chunks}/common/frag/msdf.js | 0 .../chunks}/common/frag/outputTex2D.js | 0 .../chunks}/common/frag/pick.js | 0 .../chunks}/common/frag/screenDepth.js | 0 .../chunks}/common/frag/spherical.js | 0 .../common/frag/tonemapping/tonemapping.js | 0 .../frag/tonemapping/tonemappingAces.js | 0 .../frag/tonemapping/tonemappingAces2.js | 0 .../frag/tonemapping/tonemappingFilmic.js | 0 .../frag/tonemapping/tonemappingHejl.js | 0 .../frag/tonemapping/tonemappingLinear.js | 0 .../frag/tonemapping/tonemappingNeutral.js | 0 .../frag/tonemapping/tonemappingNone.js | 0 .../chunks}/common/vert/fullscreenQuad.js | 0 .../chunks}/common/vert/msdf.js | 0 .../chunks}/common/vert/normalCore.js | 0 .../chunks}/common/vert/quad.js | 0 .../chunks}/common/vert/skin.js | 0 .../chunks}/common/vert/skinBatch.js | 0 .../chunks}/common/vert/transform.js | 0 .../chunks}/common/vert/transformCore.js | 0 .../common/vert/transformInstancing.js | 0 .../chunks}/gsplat/frag/gsplat.js | 0 .../chunks}/gsplat/vert/gsplat.js | 0 .../chunks}/gsplat/vert/gsplatCenter.js | 0 .../chunks}/gsplat/vert/gsplatColor.js | 0 .../chunks}/gsplat/vert/gsplatCommon.js | 0 .../gsplat/vert/gsplatCompressedData.js | 0 .../chunks}/gsplat/vert/gsplatCompressedSH.js | 0 .../chunks}/gsplat/vert/gsplatCorner.js | 0 .../chunks}/gsplat/vert/gsplatData.js | 0 .../chunks}/gsplat/vert/gsplatOutput.js | 0 .../chunks}/gsplat/vert/gsplatSH.js | 0 .../chunks}/gsplat/vert/gsplatSogsColor.js | 0 .../chunks}/gsplat/vert/gsplatSogsData.js | 0 .../chunks}/gsplat/vert/gsplatSogsSH.js | 0 .../chunks}/gsplat/vert/gsplatSource.js | 0 .../chunks}/internal/frag/cookie-blit-2d.js | 0 .../chunks}/internal/frag/cookie-blit-cube.js | 0 .../chunks}/internal/frag/immediateLine.js | 0 .../chunks}/internal/frag/reproject.js | 0 .../chunks}/internal/morph/frag/morph.js | 0 .../chunks}/internal/morph/vert/morph.js | 0 .../chunks}/internal/vert/cookie-blit.js | 0 .../chunks}/internal/vert/immediateLine.js | 0 .../chunks}/internal/vert/reproject.js | 0 .../chunks}/lightmapper/frag/bakeDirLmEnd.js | 0 .../chunks}/lightmapper/frag/bakeLmEnd.js | 0 .../lightmapper/frag/bilateralDeNoise.js | 0 .../chunks}/lightmapper/frag/dilate.js | 0 .../chunks}/lit/frag/TBN.js | 0 .../chunks}/lit/frag/ambient.js | 0 .../chunks}/lit/frag/aoDiffuseOcc.js | 0 .../chunks}/lit/frag/aoSpecOcc.js | 0 .../chunks}/lit/frag/base.js | 0 .../chunks}/lit/frag/baseNineSliced.js | 0 .../chunks}/lit/frag/baseNineSlicedTiled.js | 0 .../chunks}/lit/frag/blurVSM.js | 0 .../chunks}/lit/frag/clusteredLight.js | 0 .../chunks}/lit/frag/clusteredLightCookies.js | 0 .../chunks}/lit/frag/clusteredLightShadows.js | 0 .../chunks}/lit/frag/clusteredLightUtils.js | 0 .../chunks}/lit/frag/combine.js | 0 .../chunks}/lit/frag/cookie.js | 0 .../chunks}/lit/frag/cubeMapProject.js | 0 .../chunks}/lit/frag/cubeMapRotate.js | 0 .../chunks}/lit/frag/debug-output.js | 0 .../lit/frag/debug-process-frontend.js | 0 .../chunks}/lit/frag/end.js | 0 .../chunks}/lit/frag/falloffInvSquared.js | 0 .../chunks}/lit/frag/falloffLinear.js | 0 .../chunks}/lit/frag/fresnelSchlick.js | 0 .../lit/frag/iridescenceDiffraction.js | 0 .../chunks}/lit/frag/lightDiffuseLambert.js | 0 .../chunks}/lit/frag/lightDirPoint.js | 0 .../chunks}/lit/frag/lightSheen.js | 0 .../chunks}/lit/frag/lightSpecularAnisoGGX.js | 0 .../chunks}/lit/frag/lightSpecularBlinn.js | 0 .../lit/frag/lighting/lightDeclaration.js | 0 .../lit/frag/lighting/lightEvaluation.js | 0 .../lit/frag/lighting/lightFunctionLight.js | 0 .../lit/frag/lighting/lightFunctionShadow.js | 0 .../chunks}/lit/frag/lighting/lighting.js | 0 .../lit/frag/lighting/shadowCascades.js | 0 .../chunks}/lit/frag/lighting/shadowEVSM.js | 0 .../chunks}/lit/frag/lighting/shadowPCF1.js | 0 .../chunks}/lit/frag/lighting/shadowPCF3.js | 0 .../chunks}/lit/frag/lighting/shadowPCF5.js | 0 .../chunks}/lit/frag/lighting/shadowPCSS.js | 0 .../chunks}/lit/frag/lighting/shadowSoft.js | 0 .../chunks}/lit/frag/lightmapAdd.js | 0 .../chunks}/lit/frag/litMain.js | 0 .../chunks}/lit/frag/ltc.js | 0 .../chunks}/lit/frag/metalnessModulate.js | 0 .../chunks}/lit/frag/output.js | 0 .../chunks}/lit/frag/outputAlpha.js | 0 .../frag/pass-forward/litForwardBackend.js | 0 .../pass-forward/litForwardDeclaration.js | 0 .../lit/frag/pass-forward/litForwardMain.js | 0 .../frag/pass-forward/litForwardPostCode.js | 0 .../frag/pass-forward/litForwardPreCode.js | 0 .../lit/frag/pass-other/litOtherMain.js | 0 .../lit/frag/pass-shadow/litShadowMain.js | 0 .../chunks}/lit/frag/reflDir.js | 0 .../chunks}/lit/frag/reflDirAniso.js | 0 .../chunks}/lit/frag/reflectionCC.js | 0 .../chunks}/lit/frag/reflectionCube.js | 0 .../chunks}/lit/frag/reflectionEnv.js | 0 .../chunks}/lit/frag/reflectionEnvHQ.js | 0 .../chunks}/lit/frag/reflectionSheen.js | 0 .../chunks}/lit/frag/reflectionSphere.js | 0 .../chunks}/lit/frag/refractionCube.js | 0 .../chunks}/lit/frag/refractionDynamic.js | 0 .../chunks}/lit/frag/spot.js | 0 .../chunks}/lit/frag/startNineSliced.js | 0 .../chunks}/lit/frag/startNineSlicedTiled.js | 0 .../chunks}/lit/frag/twoSidedLighting.js | 0 .../chunks}/lit/frag/viewDir.js | 0 .../chunks}/lit/vert/litMain.js | 0 .../chunks}/lit/vert/normal.js | 0 .../chunks}/lit/vert/uv0.js | 0 .../chunks}/lit/vert/uv1.js | 0 .../chunks}/lit/vert/uvTransform.js | 0 .../chunks}/lit/vert/uvTransformUniforms.js | 0 .../chunks}/lit/vert/viewNormal.js | 0 .../chunks}/particle/frag/particle-shader.js | 0 .../particle/frag/particle-simulation.js | 0 .../chunks}/particle/frag/particle.js | 0 .../particle/frag/particleInputFloat.js | 0 .../particle/frag/particleInputRgba8.js | 0 .../particle/frag/particleOutputFloat.js | 0 .../particle/frag/particleOutputRgba8.js | 0 .../particle/frag/particleUpdaterAABB.js | 0 .../particle/frag/particleUpdaterEnd.js | 0 .../particle/frag/particleUpdaterInit.js | 0 .../particle/frag/particleUpdaterNoRespawn.js | 0 .../particle/frag/particleUpdaterOnStop.js | 0 .../particle/frag/particleUpdaterRespawn.js | 0 .../particle/frag/particleUpdaterSphere.js | 0 .../particle/frag/particleUpdaterStart.js | 0 .../particle/frag/particle_blendAdd.js | 0 .../particle/frag/particle_blendMultiply.js | 0 .../particle/frag/particle_blendNormal.js | 0 .../chunks}/particle/frag/particle_end.js | 0 .../particle/frag/particle_halflambert.js | 0 .../chunks}/particle/frag/particle_lambert.js | 0 .../particle/frag/particle_lighting.js | 0 .../particle/frag/particle_normalMap.js | 0 .../chunks}/particle/frag/particle_soft.js | 0 .../chunks}/particle/vert/particle-shader.js | 0 .../chunks}/particle/vert/particle.js | 0 .../particle/vert/particleAnimFrameClamp.js | 0 .../particle/vert/particleAnimFrameLoop.js | 0 .../chunks}/particle/vert/particleAnimTex.js | 0 .../chunks}/particle/vert/particle_TBN.js | 0 .../particle/vert/particle_billboard.js | 0 .../chunks}/particle/vert/particle_cpu.js | 0 .../chunks}/particle/vert/particle_cpu_end.js | 0 .../particle/vert/particle_customFace.js | 0 .../chunks}/particle/vert/particle_end.js | 0 .../chunks}/particle/vert/particle_init.js | 0 .../particle/vert/particle_localShift.js | 0 .../chunks}/particle/vert/particle_mesh.js | 0 .../chunks}/particle/vert/particle_normal.js | 0 .../particle/vert/particle_pointAlong.js | 0 .../chunks}/particle/vert/particle_soft.js | 0 .../chunks}/particle/vert/particle_stretch.js | 0 .../chunks}/particle/vert/particle_wrap.js | 0 .../chunks}/render-pass/frag/coc.js | 0 .../chunks}/render-pass/frag/compose.js | 0 .../render-pass/frag/depthAwareBlur.js | 0 .../chunks}/render-pass/frag/dofBlur.js | 0 .../chunks}/render-pass/frag/downsample.js | 0 .../render-pass/frag/sampleCatmullRom.js | 0 .../chunks}/render-pass/frag/ssao.js | 0 .../chunks}/render-pass/frag/taaResolve.js | 0 .../chunks}/render-pass/frag/upsample.js | 0 .../chunks}/skybox/frag/skybox.js | 0 .../chunks}/skybox/vert/skybox.js | 0 .../chunks}/standard/frag/alphaTest.js | 0 .../chunks}/standard/frag/anisotropy.js | 0 .../chunks}/standard/frag/ao.js | 0 .../chunks}/standard/frag/clearCoat.js | 0 .../chunks}/standard/frag/clearCoatGloss.js | 0 .../chunks}/standard/frag/clearCoatNormal.js | 0 .../chunks}/standard/frag/detailModes.js | 0 .../chunks}/standard/frag/diffuse.js | 0 .../chunks}/standard/frag/emissive.js | 0 .../chunks}/standard/frag/gloss.js | 0 .../chunks}/standard/frag/ior.js | 0 .../chunks}/standard/frag/iridescence.js | 0 .../standard/frag/iridescenceThickness.js | 0 .../chunks}/standard/frag/lightmap.js | 0 .../chunks}/standard/frag/litShaderArgs.js | 0 .../chunks}/standard/frag/litShaderCore.js | 0 .../chunks}/standard/frag/metalness.js | 0 .../chunks}/standard/frag/normalMap.js | 0 .../chunks}/standard/frag/opacity-dither.js | 0 .../chunks}/standard/frag/opacity.js | 0 .../chunks}/standard/frag/parallax.js | 0 .../chunks}/standard/frag/sheen.js | 0 .../chunks}/standard/frag/sheenGloss.js | 0 .../chunks}/standard/frag/specular.js | 0 .../standard/frag/specularityFactor.js | 0 .../chunks}/standard/frag/stdDeclaration.js | 0 .../chunks}/standard/frag/stdFrontEnd.js | 0 .../chunks}/standard/frag/thickness.js | 0 .../chunks}/standard/frag/transmission.js | 0 .../glsl/collections/particle-chunks-glsl.js | 89 +++++ .../glsl/collections/shader-chunks-glsl.js | 354 ++++++++++++++++++ .../chunks}/common/frag/bayer.js | 0 .../chunks}/common/frag/decode.js | 0 .../chunks}/common/frag/encode.js | 0 .../chunks}/common/frag/envAtlas.js | 0 .../chunks}/common/frag/envProc.js | 0 .../chunks}/common/frag/float-as-uint.js | 0 .../chunks}/common/frag/fog.js | 0 .../chunks}/common/frag/gamma.js | 0 .../chunks}/common/frag/linearizeDepth.js | 0 .../chunks}/common/frag/msdf.js | 0 .../chunks}/common/frag/outputTex2D.js | 0 .../chunks}/common/frag/pick.js | 0 .../chunks}/common/frag/screenDepth.js | 0 .../chunks}/common/frag/spherical.js | 0 .../common/frag/tonemapping/tonemapping.js | 0 .../frag/tonemapping/tonemappingAces.js | 0 .../frag/tonemapping/tonemappingAces2.js | 0 .../frag/tonemapping/tonemappingFilmic.js | 0 .../frag/tonemapping/tonemappingHejl.js | 0 .../frag/tonemapping/tonemappingLinear.js | 0 .../frag/tonemapping/tonemappingNeutral.js | 0 .../frag/tonemapping/tonemappingNone.js | 0 .../chunks}/common/vert/fullscreenQuad.js | 0 .../chunks}/common/vert/msdf.js | 0 .../chunks}/common/vert/normalCore.js | 0 .../chunks}/common/vert/quad.js | 0 .../chunks}/common/vert/skin.js | 0 .../chunks}/common/vert/skinBatch.js | 0 .../chunks}/common/vert/transform.js | 0 .../chunks}/common/vert/transformCore.js | 0 .../common/vert/transformInstancing.js | 0 .../chunks}/gsplat/frag/gsplat.js | 0 .../chunks}/gsplat/vert/gsplat.js | 0 .../chunks}/gsplat/vert/gsplatCenter.js | 0 .../chunks}/gsplat/vert/gsplatColor.js | 0 .../chunks}/gsplat/vert/gsplatCommon.js | 0 .../gsplat/vert/gsplatCompressedData.js | 0 .../chunks}/gsplat/vert/gsplatCompressedSH.js | 0 .../chunks}/gsplat/vert/gsplatCorner.js | 0 .../chunks}/gsplat/vert/gsplatData.js | 0 .../chunks}/gsplat/vert/gsplatOutput.js | 0 .../chunks}/gsplat/vert/gsplatSH.js | 0 .../chunks}/gsplat/vert/gsplatSogsColor.js | 0 .../chunks}/gsplat/vert/gsplatSogsData.js | 0 .../chunks}/gsplat/vert/gsplatSogsSH.js | 0 .../chunks}/gsplat/vert/gsplatSource.js | 0 .../chunks}/internal/frag/cookie-blit-2d.js | 0 .../chunks}/internal/frag/cookie-blit-cube.js | 0 .../chunks}/internal/frag/immediateLine.js | 0 .../chunks}/internal/frag/reproject.js | 0 .../chunks}/internal/morph/frag/morph.js | 0 .../chunks}/internal/morph/vert/morph.js | 0 .../chunks}/internal/vert/cookie-blit.js | 0 .../chunks}/internal/vert/immediateLine.js | 0 .../chunks}/internal/vert/reproject.js | 0 .../chunks}/lightmapper/frag/bakeDirLmEnd.js | 0 .../chunks}/lightmapper/frag/bakeLmEnd.js | 0 .../lightmapper/frag/bilateralDeNoise.js | 0 .../chunks}/lightmapper/frag/dilate.js | 0 .../chunks}/lit/frag/TBN.js | 0 .../chunks}/lit/frag/ambient.js | 0 .../chunks}/lit/frag/aoDiffuseOcc.js | 0 .../chunks}/lit/frag/aoSpecOcc.js | 0 .../chunks}/lit/frag/base.js | 0 .../chunks}/lit/frag/baseNineSliced.js | 0 .../chunks}/lit/frag/baseNineSlicedTiled.js | 0 .../chunks}/lit/frag/blurVSM.js | 0 .../chunks}/lit/frag/clusteredLight.js | 0 .../chunks}/lit/frag/clusteredLightCookies.js | 0 .../chunks}/lit/frag/clusteredLightShadows.js | 0 .../chunks}/lit/frag/clusteredLightUtils.js | 0 .../chunks}/lit/frag/combine.js | 0 .../chunks}/lit/frag/cubeMapProject.js | 0 .../chunks}/lit/frag/cubeMapRotate.js | 0 .../chunks}/lit/frag/debug-output.js | 0 .../lit/frag/debug-process-frontend.js | 0 .../chunks}/lit/frag/end.js | 0 .../chunks}/lit/frag/falloffInvSquared.js | 0 .../chunks}/lit/frag/falloffLinear.js | 0 .../chunks}/lit/frag/fresnelSchlick.js | 0 .../lit/frag/iridescenceDiffraction.js | 0 .../chunks}/lit/frag/lightDiffuseLambert.js | 0 .../chunks}/lit/frag/lightDirPoint.js | 0 .../chunks}/lit/frag/lightSheen.js | 0 .../chunks}/lit/frag/lightSpecularAnisoGGX.js | 0 .../chunks}/lit/frag/lightSpecularBlinn.js | 0 .../lit/frag/lighting/lightDeclaration.js | 0 .../lit/frag/lighting/lightEvaluation.js | 0 .../lit/frag/lighting/lightFunctionLight.js | 0 .../lit/frag/lighting/lightFunctionShadow.js | 0 .../chunks}/lit/frag/lighting/lighting.js | 0 .../lit/frag/lighting/shadowCascades.js | 0 .../chunks}/lit/frag/lighting/shadowEVSM.js | 0 .../chunks}/lit/frag/lighting/shadowPCF1.js | 0 .../chunks}/lit/frag/lighting/shadowPCF3.js | 0 .../chunks}/lit/frag/lighting/shadowPCF5.js | 0 .../chunks}/lit/frag/lighting/shadowSoft.js | 0 .../chunks}/lit/frag/lightmapAdd.js | 0 .../chunks}/lit/frag/litMain.js | 0 .../chunks}/lit/frag/ltc.js | 0 .../chunks}/lit/frag/metalnessModulate.js | 0 .../chunks}/lit/frag/output.js | 0 .../chunks}/lit/frag/outputAlpha.js | 0 .../frag/pass-forward/litForwardBackend.js | 0 .../pass-forward/litForwardDeclaration.js | 0 .../lit/frag/pass-forward/litForwardMain.js | 0 .../frag/pass-forward/litForwardPostCode.js | 0 .../frag/pass-forward/litForwardPreCode.js | 0 .../lit/frag/pass-other/litOtherMain.js | 0 .../lit/frag/pass-shadow/litShadowMain.js | 0 .../chunks}/lit/frag/reflDir.js | 0 .../chunks}/lit/frag/reflDirAniso.js | 0 .../chunks}/lit/frag/reflectionCC.js | 0 .../chunks}/lit/frag/reflectionCube.js | 0 .../chunks}/lit/frag/reflectionEnv.js | 0 .../chunks}/lit/frag/reflectionEnvHQ.js | 0 .../chunks}/lit/frag/reflectionSheen.js | 0 .../chunks}/lit/frag/reflectionSphere.js | 0 .../chunks}/lit/frag/refractionCube.js | 0 .../chunks}/lit/frag/refractionDynamic.js | 0 .../chunks}/lit/frag/spot.js | 0 .../chunks}/lit/frag/startNineSliced.js | 0 .../chunks}/lit/frag/startNineSlicedTiled.js | 0 .../chunks}/lit/frag/twoSidedLighting.js | 0 .../chunks}/lit/frag/viewDir.js | 0 .../chunks}/lit/vert/litMain.js | 0 .../chunks}/lit/vert/normal.js | 0 .../chunks}/lit/vert/uv0.js | 0 .../chunks}/lit/vert/uv1.js | 0 .../chunks}/lit/vert/uvTransform.js | 0 .../chunks}/lit/vert/uvTransformUniforms.js | 0 .../chunks}/particle/frag/particle-shader.js | 0 .../particle/frag/particle-simulation.js | 0 .../chunks}/particle/frag/particle.js | 0 .../particle/frag/particleInputFloat.js | 0 .../particle/frag/particleInputRgba8.js | 0 .../particle/frag/particleOutputFloat.js | 0 .../particle/frag/particleOutputRgba8.js | 0 .../particle/frag/particleUpdaterAABB.js | 0 .../particle/frag/particleUpdaterEnd.js | 0 .../particle/frag/particleUpdaterInit.js | 0 .../particle/frag/particleUpdaterNoRespawn.js | 0 .../particle/frag/particleUpdaterOnStop.js | 0 .../particle/frag/particleUpdaterRespawn.js | 0 .../particle/frag/particleUpdaterSphere.js | 0 .../particle/frag/particleUpdaterStart.js | 0 .../particle/frag/particle_blendAdd.js | 0 .../particle/frag/particle_blendMultiply.js | 0 .../particle/frag/particle_blendNormal.js | 0 .../chunks}/particle/frag/particle_end.js | 0 .../particle/frag/particle_halflambert.js | 0 .../chunks}/particle/frag/particle_lambert.js | 0 .../particle/frag/particle_lighting.js | 0 .../particle/frag/particle_normalMap.js | 0 .../chunks}/particle/frag/particle_soft.js | 0 .../chunks}/particle/vert/particle-shader.js | 0 .../chunks}/particle/vert/particle.js | 0 .../particle/vert/particleAnimFrameClamp.js | 0 .../particle/vert/particleAnimFrameLoop.js | 0 .../chunks}/particle/vert/particleAnimTex.js | 0 .../chunks}/particle/vert/particle_TBN.js | 0 .../particle/vert/particle_billboard.js | 0 .../chunks}/particle/vert/particle_cpu.js | 0 .../chunks}/particle/vert/particle_cpu_end.js | 0 .../particle/vert/particle_customFace.js | 0 .../chunks}/particle/vert/particle_end.js | 0 .../chunks}/particle/vert/particle_init.js | 0 .../particle/vert/particle_localShift.js | 0 .../chunks}/particle/vert/particle_mesh.js | 0 .../chunks}/particle/vert/particle_normal.js | 0 .../particle/vert/particle_pointAlong.js | 0 .../chunks}/particle/vert/particle_soft.js | 0 .../chunks}/particle/vert/particle_stretch.js | 0 .../chunks}/particle/vert/particle_wrap.js | 0 .../chunks}/render-pass/frag/coc.js | 0 .../render-pass/frag/depthAwareBlur.js | 0 .../chunks}/render-pass/frag/dofBlur.js | 0 .../chunks}/render-pass/frag/downsample.js | 0 .../render-pass/frag/sampleCatmullRom.js | 0 .../chunks}/render-pass/frag/ssao.js | 0 .../chunks}/render-pass/frag/taaResolve.js | 0 .../chunks}/render-pass/frag/upsample.js | 0 .../chunks}/skybox/frag/skybox.js | 0 .../chunks}/skybox/vert/skybox.js | 0 .../chunks}/standard/frag/alphaTest.js | 0 .../chunks}/standard/frag/anisotropy.js | 0 .../chunks}/standard/frag/ao.js | 0 .../chunks}/standard/frag/clearCoat.js | 0 .../chunks}/standard/frag/clearCoatGloss.js | 0 .../chunks}/standard/frag/clearCoatNormal.js | 0 .../chunks}/standard/frag/detailModes.js | 0 .../chunks}/standard/frag/diffuse.js | 0 .../chunks}/standard/frag/emissive.js | 0 .../chunks}/standard/frag/gloss.js | 0 .../chunks}/standard/frag/ior.js | 0 .../chunks}/standard/frag/iridescence.js | 0 .../standard/frag/iridescenceThickness.js | 0 .../chunks}/standard/frag/lightmap.js | 0 .../chunks}/standard/frag/litShaderArgs.js | 0 .../chunks}/standard/frag/litShaderCore.js | 0 .../chunks}/standard/frag/metalness.js | 0 .../chunks}/standard/frag/normalMap.js | 0 .../chunks}/standard/frag/opacity-dither.js | 0 .../chunks}/standard/frag/opacity.js | 0 .../chunks}/standard/frag/parallax.js | 0 .../chunks}/standard/frag/sheen.js | 0 .../chunks}/standard/frag/sheenGloss.js | 0 .../chunks}/standard/frag/specular.js | 0 .../standard/frag/specularityFactor.js | 0 .../chunks}/standard/frag/stdDeclaration.js | 0 .../chunks}/standard/frag/stdFrontEnd.js | 0 .../chunks}/standard/frag/thickness.js | 0 .../chunks}/standard/frag/transmission.js | 0 .../wgsl/collections/particle-chunks-wgsl.js | 89 +++++ .../wgsl/collections/shader-chunks-wgsl.js | 344 +++++++++++++++++ 449 files changed, 890 insertions(+), 890 deletions(-) delete mode 100644 src/scene/shader-lib/collections/particle-chunks-glsl.js delete mode 100644 src/scene/shader-lib/collections/particle-chunks-wgsl.js delete mode 100644 src/scene/shader-lib/collections/shader-chunks-glsl.js delete mode 100644 src/scene/shader-lib/collections/shader-chunks-wgsl.js rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/chunk-validation.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/bayer.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/decode.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/encode.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/envAtlas.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/envProc.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/float-as-uint.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/fog.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/gamma.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/linearizeDepth.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/msdf.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/outputTex2D.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/pick.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/screenDepth.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/spherical.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/tonemapping/tonemapping.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/tonemapping/tonemappingAces.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/tonemapping/tonemappingAces2.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/tonemapping/tonemappingFilmic.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/tonemapping/tonemappingHejl.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/tonemapping/tonemappingLinear.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/tonemapping/tonemappingNeutral.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/frag/tonemapping/tonemappingNone.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/vert/fullscreenQuad.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/vert/msdf.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/vert/normalCore.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/vert/quad.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/vert/skin.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/vert/skinBatch.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/vert/transform.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/vert/transformCore.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/common/vert/transformInstancing.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/frag/gsplat.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplat.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatCenter.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatColor.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatCommon.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatCompressedData.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatCompressedSH.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatCorner.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatData.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatOutput.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatSH.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatSogsColor.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatSogsData.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatSogsSH.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/gsplat/vert/gsplatSource.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/internal/frag/cookie-blit-2d.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/internal/frag/cookie-blit-cube.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/internal/frag/immediateLine.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/internal/frag/reproject.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/internal/morph/frag/morph.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/internal/morph/vert/morph.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/internal/vert/cookie-blit.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/internal/vert/immediateLine.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/internal/vert/reproject.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lightmapper/frag/bakeDirLmEnd.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lightmapper/frag/bakeLmEnd.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lightmapper/frag/bilateralDeNoise.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lightmapper/frag/dilate.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/TBN.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/ambient.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/aoDiffuseOcc.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/aoSpecOcc.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/base.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/baseNineSliced.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/baseNineSlicedTiled.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/blurVSM.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/clusteredLight.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/clusteredLightCookies.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/clusteredLightShadows.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/clusteredLightUtils.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/combine.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/cookie.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/cubeMapProject.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/cubeMapRotate.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/debug-output.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/debug-process-frontend.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/end.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/falloffInvSquared.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/falloffLinear.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/fresnelSchlick.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/iridescenceDiffraction.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lightDiffuseLambert.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lightDirPoint.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lightSheen.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lightSpecularAnisoGGX.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lightSpecularBlinn.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/lightDeclaration.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/lightEvaluation.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/lightFunctionLight.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/lightFunctionShadow.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/lighting.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/shadowCascades.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/shadowEVSM.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/shadowPCF1.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/shadowPCF3.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/shadowPCF5.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/shadowPCSS.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lighting/shadowSoft.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/lightmapAdd.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/litMain.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/ltc.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/metalnessModulate.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/output.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/outputAlpha.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/pass-forward/litForwardBackend.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/pass-forward/litForwardDeclaration.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/pass-forward/litForwardMain.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/pass-forward/litForwardPostCode.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/pass-forward/litForwardPreCode.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/pass-other/litOtherMain.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/pass-shadow/litShadowMain.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/reflDir.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/reflDirAniso.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/reflectionCC.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/reflectionCube.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/reflectionEnv.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/reflectionEnvHQ.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/reflectionSheen.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/reflectionSphere.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/refractionCube.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/refractionDynamic.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/spot.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/startNineSliced.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/startNineSlicedTiled.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/twoSidedLighting.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/frag/viewDir.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/vert/litMain.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/vert/normal.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/vert/uv0.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/vert/uv1.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/vert/uvTransform.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/vert/uvTransformUniforms.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/lit/vert/viewNormal.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle-shader.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle-simulation.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleInputFloat.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleInputRgba8.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleOutputFloat.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleOutputRgba8.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleUpdaterAABB.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleUpdaterEnd.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleUpdaterInit.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleUpdaterNoRespawn.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleUpdaterOnStop.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleUpdaterRespawn.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleUpdaterSphere.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particleUpdaterStart.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle_blendAdd.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle_blendMultiply.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle_blendNormal.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle_end.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle_halflambert.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle_lambert.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle_lighting.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle_normalMap.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/frag/particle_soft.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle-shader.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particleAnimFrameClamp.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particleAnimFrameLoop.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particleAnimTex.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_TBN.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_billboard.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_cpu.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_cpu_end.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_customFace.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_end.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_init.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_localShift.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_mesh.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_normal.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_pointAlong.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_soft.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_stretch.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/particle/vert/particle_wrap.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/render-pass/frag/coc.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/render-pass/frag/compose.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/render-pass/frag/depthAwareBlur.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/render-pass/frag/dofBlur.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/render-pass/frag/downsample.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/render-pass/frag/sampleCatmullRom.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/render-pass/frag/ssao.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/render-pass/frag/taaResolve.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/render-pass/frag/upsample.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/skybox/frag/skybox.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/skybox/vert/skybox.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/alphaTest.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/anisotropy.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/ao.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/clearCoat.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/clearCoatGloss.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/clearCoatNormal.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/detailModes.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/diffuse.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/emissive.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/gloss.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/ior.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/iridescence.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/iridescenceThickness.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/lightmap.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/litShaderArgs.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/litShaderCore.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/metalness.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/normalMap.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/opacity-dither.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/opacity.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/parallax.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/sheen.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/sheenGloss.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/specular.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/specularityFactor.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/stdDeclaration.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/stdFrontEnd.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/thickness.js (100%) rename src/scene/shader-lib/{chunks-glsl => glsl/chunks}/standard/frag/transmission.js (100%) create mode 100644 src/scene/shader-lib/glsl/collections/particle-chunks-glsl.js create mode 100644 src/scene/shader-lib/glsl/collections/shader-chunks-glsl.js rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/bayer.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/decode.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/encode.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/envAtlas.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/envProc.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/float-as-uint.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/fog.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/gamma.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/linearizeDepth.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/msdf.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/outputTex2D.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/pick.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/screenDepth.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/spherical.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/tonemapping/tonemapping.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/tonemapping/tonemappingAces.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/tonemapping/tonemappingAces2.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/tonemapping/tonemappingFilmic.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/tonemapping/tonemappingHejl.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/tonemapping/tonemappingLinear.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/tonemapping/tonemappingNeutral.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/frag/tonemapping/tonemappingNone.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/vert/fullscreenQuad.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/vert/msdf.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/vert/normalCore.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/vert/quad.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/vert/skin.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/vert/skinBatch.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/vert/transform.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/vert/transformCore.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/common/vert/transformInstancing.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/frag/gsplat.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplat.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatCenter.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatColor.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatCommon.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatCompressedData.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatCompressedSH.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatCorner.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatData.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatOutput.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatSH.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatSogsColor.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatSogsData.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatSogsSH.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/gsplat/vert/gsplatSource.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/internal/frag/cookie-blit-2d.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/internal/frag/cookie-blit-cube.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/internal/frag/immediateLine.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/internal/frag/reproject.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/internal/morph/frag/morph.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/internal/morph/vert/morph.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/internal/vert/cookie-blit.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/internal/vert/immediateLine.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/internal/vert/reproject.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lightmapper/frag/bakeDirLmEnd.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lightmapper/frag/bakeLmEnd.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lightmapper/frag/bilateralDeNoise.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lightmapper/frag/dilate.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/TBN.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/ambient.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/aoDiffuseOcc.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/aoSpecOcc.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/base.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/baseNineSliced.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/baseNineSlicedTiled.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/blurVSM.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/clusteredLight.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/clusteredLightCookies.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/clusteredLightShadows.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/clusteredLightUtils.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/combine.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/cubeMapProject.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/cubeMapRotate.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/debug-output.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/debug-process-frontend.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/end.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/falloffInvSquared.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/falloffLinear.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/fresnelSchlick.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/iridescenceDiffraction.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lightDiffuseLambert.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lightDirPoint.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lightSheen.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lightSpecularAnisoGGX.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lightSpecularBlinn.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/lightDeclaration.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/lightEvaluation.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/lightFunctionLight.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/lightFunctionShadow.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/lighting.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/shadowCascades.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/shadowEVSM.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/shadowPCF1.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/shadowPCF3.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/shadowPCF5.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lighting/shadowSoft.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/lightmapAdd.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/litMain.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/ltc.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/metalnessModulate.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/output.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/outputAlpha.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/pass-forward/litForwardBackend.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/pass-forward/litForwardDeclaration.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/pass-forward/litForwardMain.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/pass-forward/litForwardPostCode.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/pass-forward/litForwardPreCode.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/pass-other/litOtherMain.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/pass-shadow/litShadowMain.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/reflDir.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/reflDirAniso.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/reflectionCC.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/reflectionCube.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/reflectionEnv.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/reflectionEnvHQ.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/reflectionSheen.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/reflectionSphere.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/refractionCube.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/refractionDynamic.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/spot.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/startNineSliced.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/startNineSlicedTiled.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/twoSidedLighting.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/frag/viewDir.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/vert/litMain.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/vert/normal.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/vert/uv0.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/vert/uv1.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/vert/uvTransform.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/lit/vert/uvTransformUniforms.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle-shader.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle-simulation.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleInputFloat.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleInputRgba8.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleOutputFloat.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleOutputRgba8.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleUpdaterAABB.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleUpdaterEnd.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleUpdaterInit.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleUpdaterNoRespawn.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleUpdaterOnStop.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleUpdaterRespawn.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleUpdaterSphere.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particleUpdaterStart.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle_blendAdd.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle_blendMultiply.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle_blendNormal.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle_end.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle_halflambert.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle_lambert.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle_lighting.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle_normalMap.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/frag/particle_soft.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle-shader.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particleAnimFrameClamp.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particleAnimFrameLoop.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particleAnimTex.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_TBN.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_billboard.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_cpu.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_cpu_end.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_customFace.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_end.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_init.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_localShift.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_mesh.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_normal.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_pointAlong.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_soft.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_stretch.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/particle/vert/particle_wrap.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/render-pass/frag/coc.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/render-pass/frag/depthAwareBlur.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/render-pass/frag/dofBlur.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/render-pass/frag/downsample.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/render-pass/frag/sampleCatmullRom.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/render-pass/frag/ssao.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/render-pass/frag/taaResolve.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/render-pass/frag/upsample.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/skybox/frag/skybox.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/skybox/vert/skybox.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/alphaTest.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/anisotropy.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/ao.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/clearCoat.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/clearCoatGloss.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/clearCoatNormal.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/detailModes.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/diffuse.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/emissive.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/gloss.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/ior.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/iridescence.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/iridescenceThickness.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/lightmap.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/litShaderArgs.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/litShaderCore.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/metalness.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/normalMap.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/opacity-dither.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/opacity.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/parallax.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/sheen.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/sheenGloss.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/specular.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/specularityFactor.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/stdDeclaration.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/stdFrontEnd.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/thickness.js (100%) rename src/scene/shader-lib/{chunks-wgsl => wgsl/chunks}/standard/frag/transmission.js (100%) create mode 100644 src/scene/shader-lib/wgsl/collections/particle-chunks-wgsl.js create mode 100644 src/scene/shader-lib/wgsl/collections/shader-chunks-wgsl.js diff --git a/src/extras/render-passes/render-pass-coc.js b/src/extras/render-passes/render-pass-coc.js index 9e0cd6fabac..1156656dca5 100644 --- a/src/extras/render-passes/render-pass-coc.js +++ b/src/extras/render-passes/render-pass-coc.js @@ -3,7 +3,7 @@ import { PROJECTION_ORTHOGRAPHIC } from '../../scene/constants.js'; import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; import glslCocPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/coc.js'; -import wgslCocPS from '../../scene/shader-lib/chunks-wgsl/render-pass/frag/coc.js'; +import wgslCocPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/coc.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; /** diff --git a/src/extras/render-passes/render-pass-depth-aware-blur.js b/src/extras/render-passes/render-pass-depth-aware-blur.js index 1ce8895d18a..5a4ec182e00 100644 --- a/src/extras/render-passes/render-pass-depth-aware-blur.js +++ b/src/extras/render-passes/render-pass-depth-aware-blur.js @@ -2,7 +2,7 @@ import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../ import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; import glslDepthAwareBlurPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/depthAwareBlur.js'; -import wgslDepthAwareBlurPS from '../../scene/shader-lib/chunks-wgsl/render-pass/frag/depthAwareBlur.js'; +import wgslDepthAwareBlurPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/depthAwareBlur.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; /** diff --git a/src/extras/render-passes/render-pass-dof-blur.js b/src/extras/render-passes/render-pass-dof-blur.js index 1cf67d1a950..6dcbdb23d61 100644 --- a/src/extras/render-passes/render-pass-dof-blur.js +++ b/src/extras/render-passes/render-pass-dof-blur.js @@ -2,7 +2,7 @@ import { Kernel } from '../../core/math/kernel.js'; import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../../platform/graphics/constants.js'; import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; import glsldofBlurPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/dofBlur.js'; -import wgsldofBlurPS from '../../scene/shader-lib/chunks-wgsl/render-pass/frag/dofBlur.js'; +import wgsldofBlurPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/dofBlur.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; diff --git a/src/extras/render-passes/render-pass-downsample.js b/src/extras/render-passes/render-pass-downsample.js index 136f3c8e279..3497701d539 100644 --- a/src/extras/render-passes/render-pass-downsample.js +++ b/src/extras/render-passes/render-pass-downsample.js @@ -2,7 +2,7 @@ import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../ import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; import glslDownsamplePS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/downsample.js'; -import wgslDownsamplePS from '../../scene/shader-lib/chunks-wgsl/render-pass/frag/downsample.js'; +import wgslDownsamplePS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/downsample.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; /** diff --git a/src/extras/render-passes/render-pass-ssao.js b/src/extras/render-passes/render-pass-ssao.js index 8280a3c5d7a..76b88970da3 100644 --- a/src/extras/render-passes/render-pass-ssao.js +++ b/src/extras/render-passes/render-pass-ssao.js @@ -11,7 +11,7 @@ import { RenderPassDepthAwareBlur } from './render-pass-depth-aware-blur.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; import glslSsaoPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/ssao.js'; -import wgslSsaoPS from '../../scene/shader-lib/chunks-wgsl/render-pass/frag/ssao.js'; +import wgslSsaoPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/ssao.js'; /** * Render pass implementation of Screen-Space Ambient Occlusion (SSAO) based on the non-linear depth diff --git a/src/extras/render-passes/render-pass-taa.js b/src/extras/render-passes/render-pass-taa.js index 4774cae788f..3bb9e2bdc0a 100644 --- a/src/extras/render-passes/render-pass-taa.js +++ b/src/extras/render-passes/render-pass-taa.js @@ -11,9 +11,9 @@ import { RenderTarget } from '../../platform/graphics/render-target.js'; import { PROJECTION_ORTHOGRAPHIC } from '../../scene/constants.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; import glslSampleCatmullRomPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/sampleCatmullRom.js'; -import wgslSampleCatmullRomPS from '../../scene/shader-lib/chunks-wgsl/render-pass/frag/sampleCatmullRom.js'; +import wgslSampleCatmullRomPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/sampleCatmullRom.js'; import glsltaaResolvePS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/taaResolve.js'; -import wgsltaaResolvePS from '../../scene/shader-lib/chunks-wgsl/render-pass/frag/taaResolve.js'; +import wgsltaaResolvePS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/taaResolve.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; /** diff --git a/src/extras/render-passes/render-pass-upsample.js b/src/extras/render-passes/render-pass-upsample.js index 82f3306afaf..a69e2d3b112 100644 --- a/src/extras/render-passes/render-pass-upsample.js +++ b/src/extras/render-passes/render-pass-upsample.js @@ -2,7 +2,7 @@ import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../ import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; import glslUpsamplePS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/upsample.js'; -import wgslUpsamplePS from '../../scene/shader-lib/chunks-wgsl/render-pass/frag/upsample.js'; +import wgslUpsamplePS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/upsample.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; /** diff --git a/src/framework/app-base.js b/src/framework/app-base.js index 9c10ff4ada7..ae50e71d74f 100644 --- a/src/framework/app-base.js +++ b/src/framework/app-base.js @@ -54,8 +54,8 @@ import { SceneRegistry } from './scene-registry.js'; import { script } from './script.js'; import { ApplicationStats } from './stats.js'; import { getApplication, setApplication } from './globals.js'; -import { shaderChunksGLSL } from '../scene/shader-lib/collections/shader-chunks-glsl.js'; -import { shaderChunksWGSL } from '../scene/shader-lib/collections/shader-chunks-wgsl.js'; +import { shaderChunksGLSL } from '../scene/shader-lib/glsl/collections/shader-chunks-glsl.js'; +import { shaderChunksWGSL } from '../scene/shader-lib/wgsl/collections/shader-chunks-wgsl.js'; import { ShaderChunks } from '../scene/shader-lib/shader-chunks.js'; /** diff --git a/src/framework/components/particle-system/system.js b/src/framework/components/particle-system/system.js index bf82eee833b..4c62a8c7cfc 100644 --- a/src/framework/components/particle-system/system.js +++ b/src/framework/components/particle-system/system.js @@ -5,8 +5,8 @@ import { Asset } from '../../asset/asset.js'; import { ComponentSystem } from '../system.js'; import { ParticleSystemComponent } from './component.js'; import { ParticleSystemComponentData } from './data.js'; -import { particleChunksGLSL } from '../../../scene/shader-lib/collections/particle-chunks-glsl.js'; -import { particleChunksWGSL } from '../../../scene/shader-lib/collections/particle-chunks-wgsl.js'; +import { particleChunksGLSL } from '../../../scene/shader-lib/glsl/collections/particle-chunks-glsl.js'; +import { particleChunksWGSL } from '../../../scene/shader-lib/wgsl/collections/particle-chunks-wgsl.js'; import { SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../../../platform/graphics/constants.js'; import { ShaderChunks } from '../../../scene/shader-lib/shader-chunks.js'; diff --git a/src/framework/lightmapper/lightmap-filters.js b/src/framework/lightmapper/lightmap-filters.js index f834174f039..19abd1a4d5c 100644 --- a/src/framework/lightmapper/lightmap-filters.js +++ b/src/framework/lightmapper/lightmap-filters.js @@ -2,8 +2,8 @@ import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../../platform/graphics/constants.js'; import glslBilateralDeNoisePS from '../../scene/shader-lib/chunks-glsl/lightmapper/frag/bilateralDeNoise.js'; import glslDilatePS from '../../scene/shader-lib/chunks-glsl/lightmapper/frag/dilate.js'; -import wgslBilateralDeNoisePS from '../../scene/shader-lib/chunks-wgsl/lightmapper/frag/bilateralDeNoise.js'; -import wgslDilatePS from '../../scene/shader-lib/chunks-wgsl/lightmapper/frag/dilate.js'; +import wgslBilateralDeNoisePS from '../../scene/shader-lib/wgsl/chunks/lightmapper/frag/bilateralDeNoise.js'; +import wgslDilatePS from '../../scene/shader-lib/wgsl/chunks/lightmapper/frag/dilate.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; // size of the kernel - needs to match the constant in the shader diff --git a/src/scene/shader-lib/collections/particle-chunks-glsl.js b/src/scene/shader-lib/collections/particle-chunks-glsl.js deleted file mode 100644 index 424b66d591f..00000000000 --- a/src/scene/shader-lib/collections/particle-chunks-glsl.js +++ /dev/null @@ -1,89 +0,0 @@ -import particlePS from '../chunks-glsl/particle/frag/particle.js'; -import particleVS from '../chunks-glsl/particle/vert/particle.js'; -import particleAnimFrameClampVS from '../chunks-glsl/particle/vert/particleAnimFrameClamp.js'; -import particleAnimFrameLoopVS from '../chunks-glsl/particle/vert/particleAnimFrameLoop.js'; -import particleAnimTexVS from '../chunks-glsl/particle/vert/particleAnimTex.js'; -import particleInputFloatPS from '../chunks-glsl/particle/frag/particleInputFloat.js'; -import particleInputRgba8PS from '../chunks-glsl/particle/frag/particleInputRgba8.js'; -import particleOutputFloatPS from '../chunks-glsl/particle/frag/particleOutputFloat.js'; -import particleOutputRgba8PS from '../chunks-glsl/particle/frag/particleOutputRgba8.js'; -import particleUpdaterAABBPS from '../chunks-glsl/particle/frag/particleUpdaterAABB.js'; -import particleUpdaterEndPS from '../chunks-glsl/particle/frag/particleUpdaterEnd.js'; -import particleUpdaterInitPS from '../chunks-glsl/particle/frag/particleUpdaterInit.js'; -import particleUpdaterNoRespawnPS from '../chunks-glsl/particle/frag/particleUpdaterNoRespawn.js'; -import particleUpdaterOnStopPS from '../chunks-glsl/particle/frag/particleUpdaterOnStop.js'; -import particleUpdaterRespawnPS from '../chunks-glsl/particle/frag/particleUpdaterRespawn.js'; -import particleUpdaterSpherePS from '../chunks-glsl/particle/frag/particleUpdaterSphere.js'; -import particleUpdaterStartPS from '../chunks-glsl/particle/frag/particleUpdaterStart.js'; -import particle_billboardVS from '../chunks-glsl/particle/vert/particle_billboard.js'; -import particle_blendAddPS from '../chunks-glsl/particle/frag/particle_blendAdd.js'; -import particle_blendMultiplyPS from '../chunks-glsl/particle/frag/particle_blendMultiply.js'; -import particle_blendNormalPS from '../chunks-glsl/particle/frag/particle_blendNormal.js'; -import particle_cpuVS from '../chunks-glsl/particle/vert/particle_cpu.js'; -import particle_cpu_endVS from '../chunks-glsl/particle/vert/particle_cpu_end.js'; -import particle_customFaceVS from '../chunks-glsl/particle/vert/particle_customFace.js'; -import particle_endPS from '../chunks-glsl/particle/frag/particle_end.js'; -import particle_endVS from '../chunks-glsl/particle/vert/particle_end.js'; -import particle_halflambertPS from '../chunks-glsl/particle/frag/particle_halflambert.js'; -import particle_initVS from '../chunks-glsl/particle/vert/particle_init.js'; -import particle_lambertPS from '../chunks-glsl/particle/frag/particle_lambert.js'; -import particle_lightingPS from '../chunks-glsl/particle/frag/particle_lighting.js'; -import particle_localShiftVS from '../chunks-glsl/particle/vert/particle_localShift.js'; -import particle_meshVS from '../chunks-glsl/particle/vert/particle_mesh.js'; -import particle_normalVS from '../chunks-glsl/particle/vert/particle_normal.js'; -import particle_normalMapPS from '../chunks-glsl/particle/frag/particle_normalMap.js'; -import particle_pointAlongVS from '../chunks-glsl/particle/vert/particle_pointAlong.js'; -import particle_simulationPS from '../chunks-glsl/particle/frag/particle-simulation.js'; -import particle_shaderPS from '../chunks-glsl/particle/frag/particle-shader.js'; -import particle_shaderVS from '../chunks-glsl/particle/vert/particle-shader.js'; -import particle_softPS from '../chunks-glsl/particle/frag/particle_soft.js'; -import particle_softVS from '../chunks-glsl/particle/vert/particle_soft.js'; -import particle_stretchVS from '../chunks-glsl/particle/vert/particle_stretch.js'; -import particle_TBNVS from '../chunks-glsl/particle/vert/particle_TBN.js'; -import particle_wrapVS from '../chunks-glsl/particle/vert/particle_wrap.js'; - -export const particleChunksGLSL = { - particlePS, - particleVS, - particleAnimFrameClampVS, - particleAnimFrameLoopVS, - particleAnimTexVS, - particleInputFloatPS, - particleInputRgba8PS, - particleOutputFloatPS, - particleOutputRgba8PS, - particleUpdaterAABBPS, - particleUpdaterEndPS, - particleUpdaterInitPS, - particleUpdaterNoRespawnPS, - particleUpdaterOnStopPS, - particleUpdaterRespawnPS, - particleUpdaterSpherePS, - particleUpdaterStartPS, - particle_billboardVS, - particle_blendAddPS, - particle_blendMultiplyPS, - particle_blendNormalPS, - particle_cpuVS, - particle_cpu_endVS, - particle_customFaceVS, - particle_endPS, - particle_endVS, - particle_halflambertPS, - particle_initVS, - particle_lambertPS, - particle_lightingPS, - particle_localShiftVS, - particle_meshVS, - particle_normalVS, - particle_normalMapPS, - particle_pointAlongVS, - particle_simulationPS, - particle_shaderPS, - particle_shaderVS, - particle_softPS, - particle_softVS, - particle_stretchVS, - particle_TBNVS, - particle_wrapVS -}; diff --git a/src/scene/shader-lib/collections/particle-chunks-wgsl.js b/src/scene/shader-lib/collections/particle-chunks-wgsl.js deleted file mode 100644 index f373771907c..00000000000 --- a/src/scene/shader-lib/collections/particle-chunks-wgsl.js +++ /dev/null @@ -1,89 +0,0 @@ -import particlePS from '../chunks-wgsl/particle/frag/particle.js'; -import particleVS from '../chunks-wgsl/particle/vert/particle.js'; -import particleAnimFrameClampVS from '../chunks-wgsl/particle/vert/particleAnimFrameClamp.js'; -import particleAnimFrameLoopVS from '../chunks-wgsl/particle/vert/particleAnimFrameLoop.js'; -import particleAnimTexVS from '../chunks-wgsl/particle/vert/particleAnimTex.js'; -import particleInputFloatPS from '../chunks-wgsl/particle/frag/particleInputFloat.js'; -import particleInputRgba8PS from '../chunks-wgsl/particle/frag/particleInputRgba8.js'; -import particleOutputFloatPS from '../chunks-wgsl/particle/frag/particleOutputFloat.js'; -import particleOutputRgba8PS from '../chunks-wgsl/particle/frag/particleOutputRgba8.js'; -import particleUpdaterAABBPS from '../chunks-wgsl/particle/frag/particleUpdaterAABB.js'; -import particleUpdaterEndPS from '../chunks-wgsl/particle/frag/particleUpdaterEnd.js'; -import particleUpdaterInitPS from '../chunks-wgsl/particle/frag/particleUpdaterInit.js'; -import particleUpdaterNoRespawnPS from '../chunks-wgsl/particle/frag/particleUpdaterNoRespawn.js'; -import particleUpdaterOnStopPS from '../chunks-wgsl/particle/frag/particleUpdaterOnStop.js'; -import particleUpdaterRespawnPS from '../chunks-wgsl/particle/frag/particleUpdaterRespawn.js'; -import particleUpdaterSpherePS from '../chunks-wgsl/particle/frag/particleUpdaterSphere.js'; -import particleUpdaterStartPS from '../chunks-wgsl/particle/frag/particleUpdaterStart.js'; -import particle_billboardVS from '../chunks-wgsl/particle/vert/particle_billboard.js'; -import particle_blendAddPS from '../chunks-wgsl/particle/frag/particle_blendAdd.js'; -import particle_blendMultiplyPS from '../chunks-wgsl/particle/frag/particle_blendMultiply.js'; -import particle_blendNormalPS from '../chunks-wgsl/particle/frag/particle_blendNormal.js'; -import particle_cpuVS from '../chunks-wgsl/particle/vert/particle_cpu.js'; -import particle_cpu_endVS from '../chunks-wgsl/particle/vert/particle_cpu_end.js'; -import particle_customFaceVS from '../chunks-wgsl/particle/vert/particle_customFace.js'; -import particle_endPS from '../chunks-wgsl/particle/frag/particle_end.js'; -import particle_endVS from '../chunks-wgsl/particle/vert/particle_end.js'; -import particle_halflambertPS from '../chunks-wgsl/particle/frag/particle_halflambert.js'; -import particle_initVS from '../chunks-wgsl/particle/vert/particle_init.js'; -import particle_lambertPS from '../chunks-wgsl/particle/frag/particle_lambert.js'; -import particle_lightingPS from '../chunks-wgsl/particle/frag/particle_lighting.js'; -import particle_localShiftVS from '../chunks-wgsl/particle/vert/particle_localShift.js'; -import particle_meshVS from '../chunks-wgsl/particle/vert/particle_mesh.js'; -import particle_normalVS from '../chunks-wgsl/particle/vert/particle_normal.js'; -import particle_normalMapPS from '../chunks-wgsl/particle/frag/particle_normalMap.js'; -import particle_pointAlongVS from '../chunks-wgsl/particle/vert/particle_pointAlong.js'; -import particle_simulationPS from '../chunks-wgsl/particle/frag/particle-simulation.js'; -import particle_shaderPS from '../chunks-wgsl/particle/frag/particle-shader.js'; -import particle_shaderVS from '../chunks-wgsl/particle/vert/particle-shader.js'; -import particle_softPS from '../chunks-wgsl/particle/frag/particle_soft.js'; -import particle_softVS from '../chunks-wgsl/particle/vert/particle_soft.js'; -import particle_stretchVS from '../chunks-wgsl/particle/vert/particle_stretch.js'; -import particle_TBNVS from '../chunks-wgsl/particle/vert/particle_TBN.js'; -import particle_wrapVS from '../chunks-wgsl/particle/vert/particle_wrap.js'; - -export const particleChunksWGSL = { - particlePS, - particleVS, - particleAnimFrameClampVS, - particleAnimFrameLoopVS, - particleAnimTexVS, - particleInputFloatPS, - particleInputRgba8PS, - particleOutputFloatPS, - particleOutputRgba8PS, - particleUpdaterAABBPS, - particleUpdaterEndPS, - particleUpdaterInitPS, - particleUpdaterNoRespawnPS, - particleUpdaterOnStopPS, - particleUpdaterRespawnPS, - particleUpdaterSpherePS, - particleUpdaterStartPS, - particle_billboardVS, - particle_blendAddPS, - particle_blendMultiplyPS, - particle_blendNormalPS, - particle_cpuVS, - particle_cpu_endVS, - particle_customFaceVS, - particle_endPS, - particle_endVS, - particle_halflambertPS, - particle_initVS, - particle_lambertPS, - particle_lightingPS, - particle_localShiftVS, - particle_meshVS, - particle_normalVS, - particle_normalMapPS, - particle_pointAlongVS, - particle_simulationPS, - particle_shaderPS, - particle_shaderVS, - particle_softPS, - particle_softVS, - particle_stretchVS, - particle_TBNVS, - particle_wrapVS -}; diff --git a/src/scene/shader-lib/collections/shader-chunks-glsl.js b/src/scene/shader-lib/collections/shader-chunks-glsl.js deleted file mode 100644 index 8389ef7ba98..00000000000 --- a/src/scene/shader-lib/collections/shader-chunks-glsl.js +++ /dev/null @@ -1,354 +0,0 @@ -import alphaTestPS from '../chunks-glsl/standard/frag/alphaTest.js'; -import ambientPS from '../chunks-glsl/lit/frag/ambient.js'; -import anisotropyPS from '../chunks-glsl/standard/frag/anisotropy.js'; -import aoPS from '../chunks-glsl/standard/frag/ao.js'; -import aoDiffuseOccPS from '../chunks-glsl/lit/frag/aoDiffuseOcc.js'; -import aoSpecOccPS from '../chunks-glsl/lit/frag/aoSpecOcc.js'; -import bakeDirLmEndPS from '../chunks-glsl/lightmapper/frag/bakeDirLmEnd.js'; -import bakeLmEndPS from '../chunks-glsl/lightmapper/frag/bakeLmEnd.js'; -import basePS from '../chunks-glsl/lit/frag/base.js'; -import baseNineSlicedPS from '../chunks-glsl/lit/frag/baseNineSliced.js'; -import baseNineSlicedTiledPS from '../chunks-glsl/lit/frag/baseNineSlicedTiled.js'; -import bayerPS from '../chunks-glsl/common/frag/bayer.js'; -import blurVSMPS from '../chunks-glsl/lit/frag/blurVSM.js'; -import clearCoatPS from '../chunks-glsl/standard/frag/clearCoat.js'; -import clearCoatGlossPS from '../chunks-glsl/standard/frag/clearCoatGloss.js'; -import clearCoatNormalPS from '../chunks-glsl/standard/frag/clearCoatNormal.js'; -import clusteredLightUtilsPS from '../chunks-glsl/lit/frag/clusteredLightUtils.js'; -import clusteredLightCookiesPS from '../chunks-glsl/lit/frag/clusteredLightCookies.js'; -import clusteredLightShadowsPS from '../chunks-glsl/lit/frag/clusteredLightShadows.js'; -import clusteredLightPS from '../chunks-glsl/lit/frag/clusteredLight.js'; -import combinePS from '../chunks-glsl/lit/frag/combine.js'; -import cookieBlit2DPS from '../chunks-glsl/internal/frag/cookie-blit-2d.js'; -import cookieBlitCubePS from '../chunks-glsl/internal/frag/cookie-blit-cube.js'; -import cookieBlitVS from '../chunks-glsl/internal/vert/cookie-blit.js'; -import cookiePS from '../chunks-glsl/lit/frag/cookie.js'; -import cubeMapProjectPS from '../chunks-glsl/lit/frag/cubeMapProject.js'; -import cubeMapRotatePS from '../chunks-glsl/lit/frag/cubeMapRotate.js'; -import debugOutputPS from '../chunks-glsl/lit/frag/debug-output.js'; -import debugProcessFrontendPS from '../chunks-glsl/lit/frag/debug-process-frontend.js'; -import decodePS from '../chunks-glsl/common/frag/decode.js'; -import detailModesPS from '../chunks-glsl/standard/frag/detailModes.js'; -import diffusePS from '../chunks-glsl/standard/frag/diffuse.js'; -import emissivePS from '../chunks-glsl/standard/frag/emissive.js'; -import encodePS from '../chunks-glsl/common/frag/encode.js'; -import endPS from '../chunks-glsl/lit/frag/end.js'; -import envAtlasPS from '../chunks-glsl/common/frag/envAtlas.js'; -import envProcPS from '../chunks-glsl/common/frag/envProc.js'; -import falloffInvSquaredPS from '../chunks-glsl/lit/frag/falloffInvSquared.js'; -import falloffLinearPS from '../chunks-glsl/lit/frag/falloffLinear.js'; -import floatAsUintPS from '../chunks-glsl/common/frag/float-as-uint.js'; -import fogPS from '../chunks-glsl/common/frag/fog.js'; -import fresnelSchlickPS from '../chunks-glsl/lit/frag/fresnelSchlick.js'; -import fullscreenQuadVS from '../chunks-glsl/common/vert/fullscreenQuad.js'; -import gammaPS from '../chunks-glsl/common/frag/gamma.js'; -import gles3PS from '../../../platform/graphics/shader-chunks/frag/gles3.js'; -import gles3VS from '../../../platform/graphics/shader-chunks/vert/gles3.js'; -import glossPS from '../chunks-glsl/standard/frag/gloss.js'; -import gsplatCenterVS from '../chunks-glsl/gsplat/vert/gsplatCenter.js'; -import gsplatColorVS from '../chunks-glsl/gsplat/vert/gsplatColor.js'; -import gsplatCommonVS from '../chunks-glsl/gsplat/vert/gsplatCommon.js'; -import gsplatCompressedDataVS from '../chunks-glsl/gsplat/vert/gsplatCompressedData.js'; -import gsplatCompressedSHVS from '../chunks-glsl/gsplat/vert/gsplatCompressedSH.js'; -import gsplatSogsColorVS from '../chunks-glsl/gsplat/vert/gsplatSogsColor.js'; -import gsplatSogsDataVS from '../chunks-glsl/gsplat/vert/gsplatSogsData.js'; -import gsplatSogsSHVS from '../chunks-glsl/gsplat/vert/gsplatSogsSH.js'; -import gsplatCornerVS from '../chunks-glsl/gsplat/vert/gsplatCorner.js'; -import gsplatDataVS from '../chunks-glsl/gsplat/vert/gsplatData.js'; -import gsplatOutputVS from '../chunks-glsl/gsplat/vert/gsplatOutput.js'; -import gsplatPS from '../chunks-glsl/gsplat/frag/gsplat.js'; -import gsplatSHVS from '../chunks-glsl/gsplat/vert/gsplatSH.js'; -import gsplatSourceVS from '../chunks-glsl/gsplat/vert/gsplatSource.js'; -import gsplatVS from '../chunks-glsl/gsplat/vert/gsplat.js'; -import quadVS from '../chunks-glsl/common/vert/quad.js'; -import immediateLinePS from '../chunks-glsl/internal/frag/immediateLine.js'; -import immediateLineVS from '../chunks-glsl/internal/vert/immediateLine.js'; -import iridescenceDiffractionPS from '../chunks-glsl/lit/frag/iridescenceDiffraction.js'; -import iridescencePS from '../chunks-glsl/standard/frag/iridescence.js'; -import iridescenceThicknessPS from '../chunks-glsl/standard/frag/iridescenceThickness.js'; -import iorPS from '../chunks-glsl/standard/frag/ior.js'; -import lightDeclarationPS from '../chunks-glsl/lit/frag/lighting/lightDeclaration.js'; -import lightDiffuseLambertPS from '../chunks-glsl/lit/frag/lightDiffuseLambert.js'; -import lightDirPointPS from '../chunks-glsl/lit/frag/lightDirPoint.js'; -import lightEvaluationPS from '../chunks-glsl/lit/frag/lighting/lightEvaluation.js'; -import lightFunctionLightPS from '../chunks-glsl/lit/frag/lighting/lightFunctionLight.js'; -import lightFunctionShadowPS from '../chunks-glsl/lit/frag/lighting/lightFunctionShadow.js'; -import lightingPS from '../chunks-glsl/lit/frag/lighting/lighting.js'; -import lightmapAddPS from '../chunks-glsl/lit/frag/lightmapAdd.js'; -import lightmapPS from '../chunks-glsl/standard/frag/lightmap.js'; -import lightSpecularAnisoGGXPS from '../chunks-glsl/lit/frag/lightSpecularAnisoGGX.js'; -import lightSpecularBlinnPS from '../chunks-glsl/lit/frag/lightSpecularBlinn.js'; -import lightSheenPS from '../chunks-glsl/lit/frag/lightSheen.js'; -import linearizeDepthPS from '../chunks-glsl/common/frag/linearizeDepth.js'; -import litForwardBackendPS from '../chunks-glsl/lit/frag/pass-forward/litForwardBackend.js'; -import litForwardDeclarationPS from '../chunks-glsl/lit/frag/pass-forward/litForwardDeclaration.js'; -import litForwardMainPS from '../chunks-glsl/lit/frag/pass-forward/litForwardMain.js'; -import litForwardPostCodePS from '../chunks-glsl/lit/frag/pass-forward/litForwardPostCode.js'; -import litForwardPreCodePS from '../chunks-glsl/lit/frag/pass-forward/litForwardPreCode.js'; -import litMainPS from '../chunks-glsl/lit/frag/litMain.js'; -import litMainVS from '../chunks-glsl/lit/vert/litMain.js'; -import litOtherMainPS from '../chunks-glsl/lit/frag/pass-other/litOtherMain.js'; -import litShaderArgsPS from '../chunks-glsl/standard/frag/litShaderArgs.js'; -import litShaderCorePS from '../chunks-glsl/standard/frag/litShaderCore.js'; -import litShadowMainPS from '../chunks-glsl/lit/frag/pass-shadow/litShadowMain.js'; -import ltcPS from '../chunks-glsl/lit/frag/ltc.js'; -import metalnessPS from '../chunks-glsl/standard/frag/metalness.js'; -import msdfPS from '../chunks-glsl/common/frag/msdf.js'; -import metalnessModulatePS from '../chunks-glsl/lit/frag/metalnessModulate.js'; -import morphPS from '../chunks-glsl/internal/morph/frag/morph.js'; -import morphVS from '../chunks-glsl/internal/morph/vert/morph.js'; -import msdfVS from '../chunks-glsl/common/vert/msdf.js'; -import normalVS from '../chunks-glsl/lit/vert/normal.js'; -import normalCoreVS from '../chunks-glsl/common/vert/normalCore.js'; -import normalMapPS from '../chunks-glsl/standard/frag/normalMap.js'; -import opacityPS from '../chunks-glsl/standard/frag/opacity.js'; -import opacityDitherPS from '../chunks-glsl/standard/frag/opacity-dither.js'; -import outputPS from '../chunks-glsl/lit/frag/output.js'; -import outputAlphaPS from '../chunks-glsl/lit/frag/outputAlpha.js'; -import outputTex2DPS from '../chunks-glsl/common/frag/outputTex2D.js'; -import sheenPS from '../chunks-glsl/standard/frag/sheen.js'; -import sheenGlossPS from '../chunks-glsl/standard/frag/sheenGloss.js'; -import parallaxPS from '../chunks-glsl/standard/frag/parallax.js'; -import pickPS from '../chunks-glsl/common/frag/pick.js'; -import reflDirPS from '../chunks-glsl/lit/frag/reflDir.js'; -import reflDirAnisoPS from '../chunks-glsl/lit/frag/reflDirAniso.js'; -import reflectionCCPS from '../chunks-glsl/lit/frag/reflectionCC.js'; -import reflectionCubePS from '../chunks-glsl/lit/frag/reflectionCube.js'; -import reflectionEnvHQPS from '../chunks-glsl/lit/frag/reflectionEnvHQ.js'; -import reflectionEnvPS from '../chunks-glsl/lit/frag/reflectionEnv.js'; -import reflectionSpherePS from '../chunks-glsl/lit/frag/reflectionSphere.js'; -import reflectionSheenPS from '../chunks-glsl/lit/frag/reflectionSheen.js'; -import refractionCubePS from '../chunks-glsl/lit/frag/refractionCube.js'; -import refractionDynamicPS from '../chunks-glsl/lit/frag/refractionDynamic.js'; -import reprojectPS from '../chunks-glsl/internal/frag/reproject.js'; -import reprojectVS from '../chunks-glsl/internal/vert/reproject.js'; -import screenDepthPS from '../chunks-glsl/common/frag/screenDepth.js'; -import shadowCascadesPS from '../chunks-glsl/lit/frag/lighting/shadowCascades.js'; -import shadowEVSMPS from '../chunks-glsl/lit/frag/lighting/shadowEVSM.js'; -import shadowPCF1PS from '../chunks-glsl/lit/frag/lighting/shadowPCF1.js'; -import shadowPCF3PS from '../chunks-glsl/lit/frag/lighting/shadowPCF3.js'; -import shadowPCF5PS from '../chunks-glsl/lit/frag/lighting/shadowPCF5.js'; -import shadowPCSSPS from '../chunks-glsl/lit/frag/lighting/shadowPCSS.js'; -import shadowSoftPS from '../chunks-glsl/lit/frag/lighting/shadowSoft.js'; -import skinBatchVS from '../chunks-glsl/common/vert/skinBatch.js'; -import skinVS from '../chunks-glsl/common/vert/skin.js'; -import skyboxPS from '../chunks-glsl/skybox/frag/skybox.js'; -import skyboxVS from '../chunks-glsl/skybox/vert/skybox.js'; -import specularPS from '../chunks-glsl/standard/frag/specular.js'; -import sphericalPS from '../chunks-glsl/common/frag/spherical.js'; -import specularityFactorPS from '../chunks-glsl/standard/frag/specularityFactor.js'; -import spotPS from '../chunks-glsl/lit/frag/spot.js'; -import startNineSlicedPS from '../chunks-glsl/lit/frag/startNineSliced.js'; -import startNineSlicedTiledPS from '../chunks-glsl/lit/frag/startNineSlicedTiled.js'; -import stdDeclarationPS from '../chunks-glsl/standard/frag/stdDeclaration.js'; -import stdFrontEndPS from '../chunks-glsl/standard/frag/stdFrontEnd.js'; -import TBNPS from '../chunks-glsl/lit/frag/TBN.js'; -import thicknessPS from '../chunks-glsl/standard/frag/thickness.js'; -import tonemappingPS from '../chunks-glsl/common/frag/tonemapping/tonemapping.js'; -import tonemappingAcesPS from '../chunks-glsl/common/frag/tonemapping/tonemappingAces.js'; -import tonemappingAces2PS from '../chunks-glsl/common/frag/tonemapping/tonemappingAces2.js'; -import tonemappingFilmicPS from '../chunks-glsl/common/frag/tonemapping/tonemappingFilmic.js'; -import tonemappingHejlPS from '../chunks-glsl/common/frag/tonemapping/tonemappingHejl.js'; -import tonemappingLinearPS from '../chunks-glsl/common/frag/tonemapping/tonemappingLinear.js'; -import tonemappingNeutralPS from '../chunks-glsl/common/frag/tonemapping/tonemappingNeutral.js'; -import tonemappingNonePS from '../chunks-glsl/common/frag/tonemapping/tonemappingNone.js'; -import transformVS from '../chunks-glsl/common/vert/transform.js'; -import transformCoreVS from '../chunks-glsl/common/vert/transformCore.js'; -import transformInstancingVS from '../chunks-glsl/common/vert/transformInstancing.js'; -import transmissionPS from '../chunks-glsl/standard/frag/transmission.js'; -import twoSidedLightingPS from '../chunks-glsl/lit/frag/twoSidedLighting.js'; -import uv0VS from '../chunks-glsl/lit/vert/uv0.js'; -import uv1VS from '../chunks-glsl/lit/vert/uv1.js'; -import uvTransformVS from '../chunks-glsl/lit/vert/uvTransform.js'; -import uvTransformUniformsPS from '../chunks-glsl/lit/vert/uvTransformUniforms.js'; -import viewDirPS from '../chunks-glsl/lit/frag/viewDir.js'; -import webgpuPS from '../../../platform/graphics/shader-chunks/frag/webgpu.js'; -import webgpuVS from '../../../platform/graphics/shader-chunks/vert/webgpu.js'; - -/** - * Object containing all default shader chunks used by shader generators. - * - * @type {Record} - * @category Graphics - * @ignore - */ -const shaderChunksGLSL = { - alphaTestPS, - ambientPS, - anisotropyPS, - aoPS, - aoDiffuseOccPS, - aoSpecOccPS, - bakeDirLmEndPS, - bakeLmEndPS, - basePS, - baseNineSlicedPS, - baseNineSlicedTiledPS, - bayerPS, - blurVSMPS, - clearCoatPS, - clearCoatGlossPS, - clearCoatNormalPS, - clusteredLightCookiesPS, - clusteredLightShadowsPS, - clusteredLightUtilsPS, - clusteredLightPS, - combinePS, - cookieBlit2DPS, - cookieBlitCubePS, - cookieBlitVS, - cookiePS, - cubeMapProjectPS, - cubeMapRotatePS, - debugOutputPS, - debugProcessFrontendPS, - detailModesPS, - diffusePS, - decodePS, - emissivePS, - encodePS, - endPS, - envAtlasPS, - envProcPS, - falloffInvSquaredPS, - falloffLinearPS, - floatAsUintPS, - fogPS, - fresnelSchlickPS, - frontendCodePS: '', // empty chunk, supplied by the shader generator - frontendDeclPS: '', // empty chunk, supplied by the shader generator - fullscreenQuadVS, - gammaPS, - gles3PS, - gles3VS, - glossPS, - gsplatCenterVS, - gsplatCornerVS, - gsplatColorVS, - gsplatCommonVS, - gsplatCompressedDataVS, - gsplatCompressedSHVS, - gsplatSogsColorVS, - gsplatSogsDataVS, - gsplatSogsSHVS, - gsplatDataVS, - gsplatOutputVS, - gsplatPS, - gsplatSHVS, - gsplatSourceVS, - gsplatVS, - quadVS, - immediateLinePS, - immediateLineVS, - iridescenceDiffractionPS, - iridescencePS, - iridescenceThicknessPS, - iorPS, - lightDeclarationPS, - lightDiffuseLambertPS, - lightDirPointPS, - lightEvaluationPS, - lightFunctionLightPS, - lightFunctionShadowPS, - lightingPS, - lightmapAddPS, - lightmapPS, - lightSpecularAnisoGGXPS, - lightSpecularBlinnPS, - lightSheenPS, - linearizeDepthPS, - litForwardBackendPS, - litForwardDeclarationPS, - litForwardMainPS, - litForwardPostCodePS, - litForwardPreCodePS, - litMainPS, - litMainVS, - litOtherMainPS, - litShaderArgsPS, - litShaderCorePS, - litShadowMainPS, - litUserDeclarationPS: '', // empty chunk allowing user to add custom code - litUserDeclarationVS: '', // empty chunk allowing user to add custom code - litUserCodePS: '', // empty chunk allowing user to add custom code - litUserCodeVS: '', // empty chunk allowing user to add custom code - litUserMainStartPS: '', // empty chunk allowing user to add custom code - litUserMainStartVS: '', // empty chunk allowing user to add custom code - litUserMainEndPS: '', // empty chunk allowing user to add custom code - litUserMainEndVS: '', // empty chunk allowing user to add custom code - ltcPS, - metalnessPS, - metalnessModulatePS, - morphPS, - morphVS, - msdfPS, - msdfVS, - normalVS, - normalCoreVS, - normalMapPS, - opacityPS, - opacityDitherPS, - outputPS, - outputAlphaPS, - outputTex2DPS, - sheenPS, - sheenGlossPS, - parallaxPS, - pickPS, - reflDirPS, - reflDirAnisoPS, - reflectionCCPS, - reflectionCubePS, - reflectionEnvHQPS, - reflectionEnvPS, - reflectionSpherePS, - reflectionSheenPS, - refractionCubePS, - refractionDynamicPS, - reprojectPS, - reprojectVS, - screenDepthPS, - shadowCascadesPS, - shadowEVSMPS, - shadowPCF1PS, - shadowPCF3PS, - shadowPCF5PS, - shadowPCSSPS, - shadowSoftPS, - skinBatchVS, - skinVS, - skyboxPS, - skyboxVS, - specularPS, - sphericalPS, - specularityFactorPS, - spotPS, - startNineSlicedPS, - startNineSlicedTiledPS, - stdDeclarationPS, - stdFrontEndPS, - TBNPS, - thicknessPS, - tonemappingPS, - tonemappingAcesPS, - tonemappingAces2PS, - tonemappingFilmicPS, - tonemappingHejlPS, - tonemappingLinearPS, - tonemappingNeutralPS, - tonemappingNonePS, - transformVS, - transformCoreVS, - transformInstancingVS, - transmissionPS, - twoSidedLightingPS, - uv0VS, - uv1VS, - uvTransformVS, - uvTransformUniformsPS, - viewDirPS, - webgpuPS, - webgpuVS -}; - -export { shaderChunksGLSL }; diff --git a/src/scene/shader-lib/collections/shader-chunks-wgsl.js b/src/scene/shader-lib/collections/shader-chunks-wgsl.js deleted file mode 100644 index 02771b089da..00000000000 --- a/src/scene/shader-lib/collections/shader-chunks-wgsl.js +++ /dev/null @@ -1,344 +0,0 @@ -import alphaTestPS from '../chunks-wgsl/standard/frag/alphaTest.js'; -import ambientPS from '../chunks-wgsl/lit/frag/ambient.js'; -import anisotropyPS from '../chunks-wgsl/standard/frag/anisotropy.js'; -import aoPS from '../chunks-wgsl/standard/frag/ao.js'; -import aoDiffuseOccPS from '../chunks-wgsl/lit/frag/aoDiffuseOcc.js'; -import aoSpecOccPS from '../chunks-wgsl/lit/frag/aoSpecOcc.js'; -import bakeDirLmEndPS from '../chunks-wgsl/lightmapper/frag/bakeDirLmEnd.js'; -import bakeLmEndPS from '../chunks-wgsl/lightmapper/frag/bakeLmEnd.js'; -import basePS from '../chunks-wgsl/lit/frag/base.js'; -import baseNineSlicedPS from '../chunks-wgsl/lit/frag/baseNineSliced.js'; -import baseNineSlicedTiledPS from '../chunks-wgsl/lit/frag/baseNineSlicedTiled.js'; -import bayerPS from '../chunks-wgsl/common/frag/bayer.js'; -import blurVSMPS from '../chunks-wgsl/lit/frag/blurVSM.js'; -import clearCoatPS from '../chunks-wgsl/standard/frag/clearCoat.js'; -import clearCoatGlossPS from '../chunks-wgsl/standard/frag/clearCoatGloss.js'; -import clearCoatNormalPS from '../chunks-wgsl/standard/frag/clearCoatNormal.js'; -import clusteredLightUtilsPS from '../chunks-wgsl/lit/frag/clusteredLightUtils.js'; -import clusteredLightCookiesPS from '../chunks-wgsl/lit/frag/clusteredLightCookies.js'; -import clusteredLightShadowsPS from '../chunks-wgsl/lit/frag/clusteredLightShadows.js'; -import clusteredLightPS from '../chunks-wgsl/lit/frag/clusteredLight.js'; -import combinePS from '../chunks-wgsl/lit/frag/combine.js'; -import cookieBlit2DPS from '../chunks-wgsl/internal/frag/cookie-blit-2d.js'; -import cookieBlitCubePS from '../chunks-wgsl/internal/frag/cookie-blit-cube.js'; -import cookieBlitVS from '../chunks-wgsl/internal/vert/cookie-blit.js'; -// import cookiePS from './lit/frag/cookie.js'; -import cubeMapProjectPS from '../chunks-wgsl/lit/frag/cubeMapProject.js'; -import cubeMapRotatePS from '../chunks-wgsl/lit/frag/cubeMapRotate.js'; -import debugOutputPS from '../chunks-wgsl/lit/frag/debug-output.js'; -import debugProcessFrontendPS from '../chunks-wgsl/lit/frag/debug-process-frontend.js'; -import decodePS from '../chunks-wgsl/common/frag/decode.js'; -import detailModesPS from '../chunks-wgsl/standard/frag/detailModes.js'; -import diffusePS from '../chunks-wgsl/standard/frag/diffuse.js'; -import emissivePS from '../chunks-wgsl/standard/frag/emissive.js'; -import encodePS from '../chunks-wgsl/common/frag/encode.js'; -import endPS from '../chunks-wgsl/lit/frag/end.js'; -import envAtlasPS from '../chunks-wgsl/common/frag/envAtlas.js'; -import envProcPS from '../chunks-wgsl/common/frag/envProc.js'; -import falloffInvSquaredPS from '../chunks-wgsl/lit/frag/falloffInvSquared.js'; -import falloffLinearPS from '../chunks-wgsl/lit/frag/falloffLinear.js'; -import floatAsUintPS from '../chunks-wgsl/common/frag/float-as-uint.js'; -import fogPS from '../chunks-wgsl/common/frag/fog.js'; -import fresnelSchlickPS from '../chunks-wgsl/lit/frag/fresnelSchlick.js'; -import fullscreenQuadVS from '../chunks-wgsl/common/vert/fullscreenQuad.js'; -import gammaPS from '../chunks-wgsl/common/frag/gamma.js'; -import glossPS from '../chunks-wgsl/standard/frag/gloss.js'; -import gsplatCenterVS from '../chunks-wgsl/gsplat/vert/gsplatCenter.js'; -import gsplatColorVS from '../chunks-wgsl/gsplat/vert/gsplatColor.js'; -import gsplatCommonVS from '../chunks-wgsl/gsplat/vert/gsplatCommon.js'; -import gsplatCompressedDataVS from '../chunks-wgsl/gsplat/vert/gsplatCompressedData.js'; -import gsplatCompressedSHVS from '../chunks-wgsl/gsplat/vert/gsplatCompressedSH.js'; -import gsplatCornerVS from '../chunks-wgsl/gsplat/vert/gsplatCorner.js'; -import gsplatDataVS from '../chunks-wgsl/gsplat/vert/gsplatData.js'; -import gsplatOutputVS from '../chunks-wgsl/gsplat/vert/gsplatOutput.js'; -import gsplatPS from '../chunks-wgsl/gsplat/frag/gsplat.js'; -import gsplatSHVS from '../chunks-wgsl/gsplat/vert/gsplatSH.js'; -import gsplatSourceVS from '../chunks-wgsl/gsplat/vert/gsplatSource.js'; -import gsplatVS from '../chunks-wgsl/gsplat/vert/gsplat.js'; -import quadVS from '../chunks-wgsl/common/vert/quad.js'; -import immediateLinePS from '../chunks-wgsl/internal/frag/immediateLine.js'; -import immediateLineVS from '../chunks-wgsl/internal/vert/immediateLine.js'; -import iridescenceDiffractionPS from '../chunks-wgsl/lit/frag/iridescenceDiffraction.js'; -import iridescencePS from '../chunks-wgsl/standard/frag/iridescence.js'; -import iridescenceThicknessPS from '../chunks-wgsl/standard/frag/iridescenceThickness.js'; -import iorPS from '../chunks-wgsl/standard/frag/ior.js'; -import lightDeclarationPS from '../chunks-wgsl/lit/frag/lighting/lightDeclaration.js'; -import lightDiffuseLambertPS from '../chunks-wgsl/lit/frag/lightDiffuseLambert.js'; -import lightDirPointPS from '../chunks-wgsl/lit/frag/lightDirPoint.js'; -import lightEvaluationPS from '../chunks-wgsl/lit/frag/lighting/lightEvaluation.js'; -import lightFunctionLightPS from '../chunks-wgsl/lit/frag/lighting/lightFunctionLight.js'; -import lightFunctionShadowPS from '../chunks-wgsl/lit/frag/lighting/lightFunctionShadow.js'; -import lightingPS from '../chunks-wgsl/lit/frag/lighting/lighting.js'; -import lightmapAddPS from '../chunks-wgsl/lit/frag/lightmapAdd.js'; -import lightmapPS from '../chunks-wgsl/standard/frag/lightmap.js'; -import lightSpecularAnisoGGXPS from '../chunks-wgsl/lit/frag/lightSpecularAnisoGGX.js'; -import lightSpecularBlinnPS from '../chunks-wgsl/lit/frag/lightSpecularBlinn.js'; -import lightSheenPS from '../chunks-wgsl/lit/frag/lightSheen.js'; -import linearizeDepthPS from '../chunks-wgsl/common/frag/linearizeDepth.js'; -import litForwardBackendPS from '../chunks-wgsl/lit/frag/pass-forward/litForwardBackend.js'; -import litForwardDeclarationPS from '../chunks-wgsl/lit/frag/pass-forward/litForwardDeclaration.js'; -import litForwardMainPS from '../chunks-wgsl/lit/frag/pass-forward/litForwardMain.js'; -import litForwardPostCodePS from '../chunks-wgsl/lit/frag/pass-forward/litForwardPostCode.js'; -import litForwardPreCodePS from '../chunks-wgsl/lit/frag/pass-forward/litForwardPreCode.js'; -import litMainPS from '../chunks-wgsl/lit/frag/litMain.js'; -import litMainVS from '../chunks-wgsl/lit/vert/litMain.js'; -import litOtherMainPS from '../chunks-wgsl/lit/frag/pass-other/litOtherMain.js'; -import litShaderArgsPS from '../chunks-wgsl/standard/frag/litShaderArgs.js'; -import litShaderCorePS from '../chunks-wgsl/standard/frag/litShaderCore.js'; -import litShadowMainPS from '../chunks-wgsl/lit/frag/pass-shadow/litShadowMain.js'; -import ltcPS from '../chunks-wgsl/lit/frag/ltc.js'; -import metalnessPS from '../chunks-wgsl/standard/frag/metalness.js'; -import msdfPS from '../chunks-wgsl/common/frag/msdf.js'; -import metalnessModulatePS from '../chunks-wgsl/lit/frag/metalnessModulate.js'; -import morphPS from '../chunks-wgsl/internal/morph/frag/morph.js'; -import morphVS from '../chunks-wgsl/internal/morph/vert/morph.js'; -import msdfVS from '../chunks-wgsl/common/vert/msdf.js'; -import normalVS from '../chunks-wgsl/lit/vert/normal.js'; -import normalCoreVS from '../chunks-wgsl/common/vert/normalCore.js'; -import normalMapPS from '../chunks-wgsl/standard/frag/normalMap.js'; -import opacityPS from '../chunks-wgsl/standard/frag/opacity.js'; -import opacityDitherPS from '../chunks-wgsl/standard/frag/opacity-dither.js'; -import outputPS from '../chunks-wgsl/lit/frag/output.js'; -import outputAlphaPS from '../chunks-wgsl/lit/frag/outputAlpha.js'; -import outputTex2DPS from '../chunks-wgsl/common/frag/outputTex2D.js'; -import sheenPS from '../chunks-wgsl/standard/frag/sheen.js'; -import sheenGlossPS from '../chunks-wgsl/standard/frag/sheenGloss.js'; -import parallaxPS from '../chunks-wgsl/standard/frag/parallax.js'; -import pickPS from '../chunks-wgsl/common/frag/pick.js'; -import reflDirPS from '../chunks-wgsl/lit/frag/reflDir.js'; -import reflDirAnisoPS from '../chunks-wgsl/lit/frag/reflDirAniso.js'; -import reflectionCCPS from '../chunks-wgsl/lit/frag/reflectionCC.js'; -import reflectionCubePS from '../chunks-wgsl/lit/frag/reflectionCube.js'; -import reflectionEnvHQPS from '../chunks-wgsl/lit/frag/reflectionEnvHQ.js'; -import reflectionEnvPS from '../chunks-wgsl/lit/frag/reflectionEnv.js'; -import reflectionSpherePS from '../chunks-wgsl/lit/frag/reflectionSphere.js'; -import reflectionSheenPS from '../chunks-wgsl/lit/frag/reflectionSheen.js'; -import refractionCubePS from '../chunks-wgsl/lit/frag/refractionCube.js'; -import refractionDynamicPS from '../chunks-wgsl/lit/frag/refractionDynamic.js'; -import reprojectPS from '../chunks-wgsl/internal/frag/reproject.js'; -import reprojectVS from '../chunks-wgsl/internal/vert/reproject.js'; -import screenDepthPS from '../chunks-wgsl/common/frag/screenDepth.js'; -import shadowCascadesPS from '../chunks-wgsl/lit/frag/lighting/shadowCascades.js'; -import shadowEVSMPS from '../chunks-wgsl/lit/frag/lighting/shadowEVSM.js'; -import shadowPCF1PS from '../chunks-wgsl/lit/frag/lighting/shadowPCF1.js'; -import shadowPCF3PS from '../chunks-wgsl/lit/frag/lighting/shadowPCF3.js'; -import shadowPCF5PS from '../chunks-wgsl/lit/frag/lighting/shadowPCF5.js'; -// import shadowPCSSPS from './lit/frag/lighting/shadowPCSS.js'; // omni / spot PCSS is not supported on WebGPU currently, as this is only for non-clustered lights -import shadowSoftPS from '../chunks-wgsl/lit/frag/lighting/shadowSoft.js'; -import skinBatchVS from '../chunks-wgsl/common/vert/skinBatch.js'; -import skinVS from '../chunks-wgsl/common/vert/skin.js'; -import skyboxPS from '../chunks-wgsl/skybox/frag/skybox.js'; -import skyboxVS from '../chunks-wgsl/skybox/vert/skybox.js'; -import specularPS from '../chunks-wgsl/standard/frag/specular.js'; -import sphericalPS from '../chunks-wgsl/common/frag/spherical.js'; -import specularityFactorPS from '../chunks-wgsl/standard/frag/specularityFactor.js'; -import spotPS from '../chunks-wgsl/lit/frag/spot.js'; -import startNineSlicedPS from '../chunks-wgsl/lit/frag/startNineSliced.js'; -import startNineSlicedTiledPS from '../chunks-wgsl/lit/frag/startNineSlicedTiled.js'; -import stdDeclarationPS from '../chunks-wgsl/standard/frag/stdDeclaration.js'; -import stdFrontEndPS from '../chunks-wgsl/standard/frag/stdFrontEnd.js'; -import TBNPS from '../chunks-wgsl/lit/frag/TBN.js'; -import thicknessPS from '../chunks-wgsl/standard/frag/thickness.js'; -import tonemappingPS from '../chunks-wgsl/common/frag/tonemapping/tonemapping.js'; -import tonemappingAcesPS from '../chunks-wgsl/common/frag/tonemapping/tonemappingAces.js'; -import tonemappingAces2PS from '../chunks-wgsl/common/frag/tonemapping/tonemappingAces2.js'; -import tonemappingFilmicPS from '../chunks-wgsl/common/frag/tonemapping/tonemappingFilmic.js'; -import tonemappingHejlPS from '../chunks-wgsl/common/frag/tonemapping/tonemappingHejl.js'; -import tonemappingLinearPS from '../chunks-wgsl/common/frag/tonemapping/tonemappingLinear.js'; -import tonemappingNeutralPS from '../chunks-wgsl/common/frag/tonemapping/tonemappingNeutral.js'; -import tonemappingNonePS from '../chunks-wgsl/common/frag/tonemapping/tonemappingNone.js'; -import transformVS from '../chunks-wgsl/common/vert/transform.js'; -import transformCoreVS from '../chunks-wgsl/common/vert/transformCore.js'; -import transformInstancingVS from '../chunks-wgsl/common/vert/transformInstancing.js'; -import transmissionPS from '../chunks-wgsl/standard/frag/transmission.js'; -import twoSidedLightingPS from '../chunks-wgsl/lit/frag/twoSidedLighting.js'; -import uv0VS from '../chunks-wgsl/lit/vert/uv0.js'; -import uv1VS from '../chunks-wgsl/lit/vert/uv1.js'; -import uvTransformVS from '../chunks-wgsl/lit/vert/uvTransform.js'; -import uvTransformUniformsPS from '../chunks-wgsl/lit/vert/uvTransformUniforms.js'; -import viewDirPS from '../chunks-wgsl/lit/frag/viewDir.js'; -import webgpuPS from '../../../platform/graphics/shader-chunks/frag/webgpu-wgsl.js'; -import webgpuVS from '../../../platform/graphics/shader-chunks/vert/webgpu-wgsl.js'; - -/** - * Object containing all default WGSL shader chunks used by shader generators. - * - * @type {Record} - * @category Graphics - * @ignore - */ -const shaderChunksWGSL = { - alphaTestPS, - ambientPS, - anisotropyPS, - aoPS, - aoDiffuseOccPS, - aoSpecOccPS, - bakeDirLmEndPS, - bakeLmEndPS, - basePS, - baseNineSlicedPS, - baseNineSlicedTiledPS, - bayerPS, - blurVSMPS, - clearCoatPS, - clearCoatGlossPS, - clearCoatNormalPS, - clusteredLightCookiesPS, - clusteredLightShadowsPS, - clusteredLightUtilsPS, - clusteredLightPS, - combinePS, - cookieBlit2DPS, - cookieBlitCubePS, - cookieBlitVS, - // cookiePS, - cubeMapProjectPS, - cubeMapRotatePS, - debugOutputPS, - debugProcessFrontendPS, - detailModesPS, - diffusePS, - decodePS, - emissivePS, - encodePS, - endPS, - envAtlasPS, - envProcPS, - falloffInvSquaredPS, - falloffLinearPS, - floatAsUintPS, - fogPS, - fresnelSchlickPS, - frontendCodePS: '', // empty chunk, supplied by the shader generator - frontendDeclPS: '', // empty chunk, supplied by the shader generator - fullscreenQuadVS, - gammaPS, - glossPS, - gsplatCenterVS, - gsplatCornerVS, - gsplatColorVS, - gsplatCommonVS, - gsplatCompressedDataVS, - gsplatCompressedSHVS, - gsplatDataVS, - gsplatOutputVS, - gsplatPS, - gsplatSHVS, - gsplatSourceVS, - gsplatVS, - quadVS, - immediateLinePS, - immediateLineVS, - iridescenceDiffractionPS, - iridescencePS, - iridescenceThicknessPS, - iorPS, - lightDeclarationPS, - lightDiffuseLambertPS, - lightDirPointPS, - lightEvaluationPS, - lightFunctionLightPS, - lightFunctionShadowPS, - lightingPS, - lightmapAddPS, - lightmapPS, - lightSpecularAnisoGGXPS, - lightSpecularBlinnPS, - lightSheenPS, - linearizeDepthPS, - litForwardBackendPS, - litForwardDeclarationPS, - litForwardMainPS, - litForwardPostCodePS, - litForwardPreCodePS, - litMainPS, - litMainVS, - litOtherMainPS, - litShaderArgsPS, - litShaderCorePS, - litShadowMainPS, - litUserDeclarationPS: '', // empty chunk allowing user to add custom code - litUserDeclarationVS: '', // empty chunk allowing user to add custom code - litUserCodePS: '', // empty chunk allowing user to add custom code - litUserCodeVS: '', // empty chunk allowing user to add custom code - litUserMainStartPS: '', // empty chunk allowing user to add custom code - litUserMainStartVS: '', // empty chunk allowing user to add custom code - litUserMainEndPS: '', // empty chunk allowing user to add custom code - litUserMainEndVS: '', // empty chunk allowing user to add custom code - ltcPS, - metalnessPS, - metalnessModulatePS, - morphPS, - morphVS, - msdfPS, - msdfVS, - normalVS, - normalCoreVS, - normalMapPS, - opacityPS, - opacityDitherPS, - outputPS, - outputAlphaPS, - outputTex2DPS, - sheenPS, - sheenGlossPS, - parallaxPS, - pickPS, - reflDirPS, - reflDirAnisoPS, - reflectionCCPS, - reflectionCubePS, - reflectionEnvHQPS, - reflectionEnvPS, - reflectionSpherePS, - reflectionSheenPS, - refractionCubePS, - refractionDynamicPS, - reprojectPS, - reprojectVS, - screenDepthPS, - shadowCascadesPS, - shadowEVSMPS, - shadowPCF1PS, - shadowPCF3PS, - shadowPCF5PS, - // shadowPCSSPS, - shadowSoftPS, - skinBatchVS, - skinVS, - skyboxPS, - skyboxVS, - specularPS, - sphericalPS, - specularityFactorPS, - spotPS, - startNineSlicedPS, - startNineSlicedTiledPS, - stdDeclarationPS, - stdFrontEndPS, - TBNPS, - thicknessPS, - tonemappingPS, - tonemappingAcesPS, - tonemappingAces2PS, - tonemappingFilmicPS, - tonemappingHejlPS, - tonemappingLinearPS, - tonemappingNeutralPS, - tonemappingNonePS, - transformVS, - transformCoreVS, - transformInstancingVS, - transmissionPS, - twoSidedLightingPS, - uv0VS, - uv1VS, - uvTransformVS, - uvTransformUniformsPS, - viewDirPS, - webgpuPS, - webgpuVS -}; - -export { shaderChunksWGSL }; diff --git a/src/scene/shader-lib/chunks-glsl/chunk-validation.js b/src/scene/shader-lib/glsl/chunks/chunk-validation.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/chunk-validation.js rename to src/scene/shader-lib/glsl/chunks/chunk-validation.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/bayer.js b/src/scene/shader-lib/glsl/chunks/common/frag/bayer.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/bayer.js rename to src/scene/shader-lib/glsl/chunks/common/frag/bayer.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/decode.js b/src/scene/shader-lib/glsl/chunks/common/frag/decode.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/decode.js rename to src/scene/shader-lib/glsl/chunks/common/frag/decode.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/encode.js b/src/scene/shader-lib/glsl/chunks/common/frag/encode.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/encode.js rename to src/scene/shader-lib/glsl/chunks/common/frag/encode.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/envAtlas.js b/src/scene/shader-lib/glsl/chunks/common/frag/envAtlas.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/envAtlas.js rename to src/scene/shader-lib/glsl/chunks/common/frag/envAtlas.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/envProc.js b/src/scene/shader-lib/glsl/chunks/common/frag/envProc.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/envProc.js rename to src/scene/shader-lib/glsl/chunks/common/frag/envProc.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/float-as-uint.js b/src/scene/shader-lib/glsl/chunks/common/frag/float-as-uint.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/float-as-uint.js rename to src/scene/shader-lib/glsl/chunks/common/frag/float-as-uint.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/fog.js b/src/scene/shader-lib/glsl/chunks/common/frag/fog.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/fog.js rename to src/scene/shader-lib/glsl/chunks/common/frag/fog.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/gamma.js b/src/scene/shader-lib/glsl/chunks/common/frag/gamma.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/gamma.js rename to src/scene/shader-lib/glsl/chunks/common/frag/gamma.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/linearizeDepth.js b/src/scene/shader-lib/glsl/chunks/common/frag/linearizeDepth.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/linearizeDepth.js rename to src/scene/shader-lib/glsl/chunks/common/frag/linearizeDepth.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/msdf.js b/src/scene/shader-lib/glsl/chunks/common/frag/msdf.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/msdf.js rename to src/scene/shader-lib/glsl/chunks/common/frag/msdf.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/outputTex2D.js b/src/scene/shader-lib/glsl/chunks/common/frag/outputTex2D.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/outputTex2D.js rename to src/scene/shader-lib/glsl/chunks/common/frag/outputTex2D.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/pick.js b/src/scene/shader-lib/glsl/chunks/common/frag/pick.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/pick.js rename to src/scene/shader-lib/glsl/chunks/common/frag/pick.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/screenDepth.js b/src/scene/shader-lib/glsl/chunks/common/frag/screenDepth.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/screenDepth.js rename to src/scene/shader-lib/glsl/chunks/common/frag/screenDepth.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/spherical.js b/src/scene/shader-lib/glsl/chunks/common/frag/spherical.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/spherical.js rename to src/scene/shader-lib/glsl/chunks/common/frag/spherical.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemapping.js b/src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemapping.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemapping.js rename to src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemapping.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingAces.js b/src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingAces.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingAces.js rename to src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingAces.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingAces2.js b/src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingAces2.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingAces2.js rename to src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingAces2.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingFilmic.js b/src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingFilmic.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingFilmic.js rename to src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingFilmic.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingHejl.js b/src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingHejl.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingHejl.js rename to src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingHejl.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingLinear.js b/src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingLinear.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingLinear.js rename to src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingLinear.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingNeutral.js b/src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingNeutral.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingNeutral.js rename to src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingNeutral.js diff --git a/src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingNone.js b/src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingNone.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/frag/tonemapping/tonemappingNone.js rename to src/scene/shader-lib/glsl/chunks/common/frag/tonemapping/tonemappingNone.js diff --git a/src/scene/shader-lib/chunks-glsl/common/vert/fullscreenQuad.js b/src/scene/shader-lib/glsl/chunks/common/vert/fullscreenQuad.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/vert/fullscreenQuad.js rename to src/scene/shader-lib/glsl/chunks/common/vert/fullscreenQuad.js diff --git a/src/scene/shader-lib/chunks-glsl/common/vert/msdf.js b/src/scene/shader-lib/glsl/chunks/common/vert/msdf.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/vert/msdf.js rename to src/scene/shader-lib/glsl/chunks/common/vert/msdf.js diff --git a/src/scene/shader-lib/chunks-glsl/common/vert/normalCore.js b/src/scene/shader-lib/glsl/chunks/common/vert/normalCore.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/vert/normalCore.js rename to src/scene/shader-lib/glsl/chunks/common/vert/normalCore.js diff --git a/src/scene/shader-lib/chunks-glsl/common/vert/quad.js b/src/scene/shader-lib/glsl/chunks/common/vert/quad.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/vert/quad.js rename to src/scene/shader-lib/glsl/chunks/common/vert/quad.js diff --git a/src/scene/shader-lib/chunks-glsl/common/vert/skin.js b/src/scene/shader-lib/glsl/chunks/common/vert/skin.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/vert/skin.js rename to src/scene/shader-lib/glsl/chunks/common/vert/skin.js diff --git a/src/scene/shader-lib/chunks-glsl/common/vert/skinBatch.js b/src/scene/shader-lib/glsl/chunks/common/vert/skinBatch.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/vert/skinBatch.js rename to src/scene/shader-lib/glsl/chunks/common/vert/skinBatch.js diff --git a/src/scene/shader-lib/chunks-glsl/common/vert/transform.js b/src/scene/shader-lib/glsl/chunks/common/vert/transform.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/vert/transform.js rename to src/scene/shader-lib/glsl/chunks/common/vert/transform.js diff --git a/src/scene/shader-lib/chunks-glsl/common/vert/transformCore.js b/src/scene/shader-lib/glsl/chunks/common/vert/transformCore.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/vert/transformCore.js rename to src/scene/shader-lib/glsl/chunks/common/vert/transformCore.js diff --git a/src/scene/shader-lib/chunks-glsl/common/vert/transformInstancing.js b/src/scene/shader-lib/glsl/chunks/common/vert/transformInstancing.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/common/vert/transformInstancing.js rename to src/scene/shader-lib/glsl/chunks/common/vert/transformInstancing.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/frag/gsplat.js b/src/scene/shader-lib/glsl/chunks/gsplat/frag/gsplat.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/frag/gsplat.js rename to src/scene/shader-lib/glsl/chunks/gsplat/frag/gsplat.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplat.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplat.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplat.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplat.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCenter.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCenter.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCenter.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCenter.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatColor.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatColor.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatColor.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatColor.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCommon.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCommon.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCommon.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCommon.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCompressedData.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCompressedData.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCompressedData.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCompressedData.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCompressedSH.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCompressedSH.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCompressedSH.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCompressedSH.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCorner.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCorner.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatCorner.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatCorner.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatData.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatData.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatData.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatData.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatOutput.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatOutput.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatOutput.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatOutput.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSH.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSH.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSH.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSH.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSogsColor.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSogsColor.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSogsColor.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSogsColor.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSogsData.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSogsData.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSogsData.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSogsData.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSogsSH.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSogsSH.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSogsSH.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSogsSH.js diff --git a/src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSource.js b/src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSource.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/gsplat/vert/gsplatSource.js rename to src/scene/shader-lib/glsl/chunks/gsplat/vert/gsplatSource.js diff --git a/src/scene/shader-lib/chunks-glsl/internal/frag/cookie-blit-2d.js b/src/scene/shader-lib/glsl/chunks/internal/frag/cookie-blit-2d.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/internal/frag/cookie-blit-2d.js rename to src/scene/shader-lib/glsl/chunks/internal/frag/cookie-blit-2d.js diff --git a/src/scene/shader-lib/chunks-glsl/internal/frag/cookie-blit-cube.js b/src/scene/shader-lib/glsl/chunks/internal/frag/cookie-blit-cube.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/internal/frag/cookie-blit-cube.js rename to src/scene/shader-lib/glsl/chunks/internal/frag/cookie-blit-cube.js diff --git a/src/scene/shader-lib/chunks-glsl/internal/frag/immediateLine.js b/src/scene/shader-lib/glsl/chunks/internal/frag/immediateLine.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/internal/frag/immediateLine.js rename to src/scene/shader-lib/glsl/chunks/internal/frag/immediateLine.js diff --git a/src/scene/shader-lib/chunks-glsl/internal/frag/reproject.js b/src/scene/shader-lib/glsl/chunks/internal/frag/reproject.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/internal/frag/reproject.js rename to src/scene/shader-lib/glsl/chunks/internal/frag/reproject.js diff --git a/src/scene/shader-lib/chunks-glsl/internal/morph/frag/morph.js b/src/scene/shader-lib/glsl/chunks/internal/morph/frag/morph.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/internal/morph/frag/morph.js rename to src/scene/shader-lib/glsl/chunks/internal/morph/frag/morph.js diff --git a/src/scene/shader-lib/chunks-glsl/internal/morph/vert/morph.js b/src/scene/shader-lib/glsl/chunks/internal/morph/vert/morph.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/internal/morph/vert/morph.js rename to src/scene/shader-lib/glsl/chunks/internal/morph/vert/morph.js diff --git a/src/scene/shader-lib/chunks-glsl/internal/vert/cookie-blit.js b/src/scene/shader-lib/glsl/chunks/internal/vert/cookie-blit.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/internal/vert/cookie-blit.js rename to src/scene/shader-lib/glsl/chunks/internal/vert/cookie-blit.js diff --git a/src/scene/shader-lib/chunks-glsl/internal/vert/immediateLine.js b/src/scene/shader-lib/glsl/chunks/internal/vert/immediateLine.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/internal/vert/immediateLine.js rename to src/scene/shader-lib/glsl/chunks/internal/vert/immediateLine.js diff --git a/src/scene/shader-lib/chunks-glsl/internal/vert/reproject.js b/src/scene/shader-lib/glsl/chunks/internal/vert/reproject.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/internal/vert/reproject.js rename to src/scene/shader-lib/glsl/chunks/internal/vert/reproject.js diff --git a/src/scene/shader-lib/chunks-glsl/lightmapper/frag/bakeDirLmEnd.js b/src/scene/shader-lib/glsl/chunks/lightmapper/frag/bakeDirLmEnd.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lightmapper/frag/bakeDirLmEnd.js rename to src/scene/shader-lib/glsl/chunks/lightmapper/frag/bakeDirLmEnd.js diff --git a/src/scene/shader-lib/chunks-glsl/lightmapper/frag/bakeLmEnd.js b/src/scene/shader-lib/glsl/chunks/lightmapper/frag/bakeLmEnd.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lightmapper/frag/bakeLmEnd.js rename to src/scene/shader-lib/glsl/chunks/lightmapper/frag/bakeLmEnd.js diff --git a/src/scene/shader-lib/chunks-glsl/lightmapper/frag/bilateralDeNoise.js b/src/scene/shader-lib/glsl/chunks/lightmapper/frag/bilateralDeNoise.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lightmapper/frag/bilateralDeNoise.js rename to src/scene/shader-lib/glsl/chunks/lightmapper/frag/bilateralDeNoise.js diff --git a/src/scene/shader-lib/chunks-glsl/lightmapper/frag/dilate.js b/src/scene/shader-lib/glsl/chunks/lightmapper/frag/dilate.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lightmapper/frag/dilate.js rename to src/scene/shader-lib/glsl/chunks/lightmapper/frag/dilate.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/TBN.js b/src/scene/shader-lib/glsl/chunks/lit/frag/TBN.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/TBN.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/TBN.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/ambient.js b/src/scene/shader-lib/glsl/chunks/lit/frag/ambient.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/ambient.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/ambient.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/aoDiffuseOcc.js b/src/scene/shader-lib/glsl/chunks/lit/frag/aoDiffuseOcc.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/aoDiffuseOcc.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/aoDiffuseOcc.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/aoSpecOcc.js b/src/scene/shader-lib/glsl/chunks/lit/frag/aoSpecOcc.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/aoSpecOcc.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/aoSpecOcc.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/base.js b/src/scene/shader-lib/glsl/chunks/lit/frag/base.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/base.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/base.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/baseNineSliced.js b/src/scene/shader-lib/glsl/chunks/lit/frag/baseNineSliced.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/baseNineSliced.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/baseNineSliced.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/baseNineSlicedTiled.js b/src/scene/shader-lib/glsl/chunks/lit/frag/baseNineSlicedTiled.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/baseNineSlicedTiled.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/baseNineSlicedTiled.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/blurVSM.js b/src/scene/shader-lib/glsl/chunks/lit/frag/blurVSM.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/blurVSM.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/blurVSM.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/clusteredLight.js b/src/scene/shader-lib/glsl/chunks/lit/frag/clusteredLight.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/clusteredLight.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/clusteredLight.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/clusteredLightCookies.js b/src/scene/shader-lib/glsl/chunks/lit/frag/clusteredLightCookies.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/clusteredLightCookies.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/clusteredLightCookies.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/clusteredLightShadows.js b/src/scene/shader-lib/glsl/chunks/lit/frag/clusteredLightShadows.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/clusteredLightShadows.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/clusteredLightShadows.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/clusteredLightUtils.js b/src/scene/shader-lib/glsl/chunks/lit/frag/clusteredLightUtils.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/clusteredLightUtils.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/clusteredLightUtils.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/combine.js b/src/scene/shader-lib/glsl/chunks/lit/frag/combine.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/combine.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/combine.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/cookie.js b/src/scene/shader-lib/glsl/chunks/lit/frag/cookie.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/cookie.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/cookie.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/cubeMapProject.js b/src/scene/shader-lib/glsl/chunks/lit/frag/cubeMapProject.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/cubeMapProject.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/cubeMapProject.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/cubeMapRotate.js b/src/scene/shader-lib/glsl/chunks/lit/frag/cubeMapRotate.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/cubeMapRotate.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/cubeMapRotate.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/debug-output.js b/src/scene/shader-lib/glsl/chunks/lit/frag/debug-output.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/debug-output.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/debug-output.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/debug-process-frontend.js b/src/scene/shader-lib/glsl/chunks/lit/frag/debug-process-frontend.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/debug-process-frontend.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/debug-process-frontend.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/end.js b/src/scene/shader-lib/glsl/chunks/lit/frag/end.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/end.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/end.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/falloffInvSquared.js b/src/scene/shader-lib/glsl/chunks/lit/frag/falloffInvSquared.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/falloffInvSquared.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/falloffInvSquared.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/falloffLinear.js b/src/scene/shader-lib/glsl/chunks/lit/frag/falloffLinear.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/falloffLinear.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/falloffLinear.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/fresnelSchlick.js b/src/scene/shader-lib/glsl/chunks/lit/frag/fresnelSchlick.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/fresnelSchlick.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/fresnelSchlick.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/iridescenceDiffraction.js b/src/scene/shader-lib/glsl/chunks/lit/frag/iridescenceDiffraction.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/iridescenceDiffraction.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/iridescenceDiffraction.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lightDiffuseLambert.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lightDiffuseLambert.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lightDiffuseLambert.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lightDiffuseLambert.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lightDirPoint.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lightDirPoint.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lightDirPoint.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lightDirPoint.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lightSheen.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lightSheen.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lightSheen.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lightSheen.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lightSpecularAnisoGGX.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lightSpecularAnisoGGX.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lightSpecularAnisoGGX.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lightSpecularAnisoGGX.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lightSpecularBlinn.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lightSpecularBlinn.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lightSpecularBlinn.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lightSpecularBlinn.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lightDeclaration.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lightDeclaration.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lightDeclaration.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lightDeclaration.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lightEvaluation.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lightEvaluation.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lightEvaluation.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lightEvaluation.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lightFunctionLight.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lightFunctionLight.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lightFunctionLight.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lightFunctionLight.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lightFunctionShadow.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lightFunctionShadow.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lightFunctionShadow.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lightFunctionShadow.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lighting.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lighting.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/lighting.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/lighting.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowCascades.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowCascades.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowCascades.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowCascades.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowEVSM.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowEVSM.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowEVSM.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowEVSM.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowPCF1.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowPCF1.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowPCF1.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowPCF1.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowPCF3.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowPCF3.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowPCF3.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowPCF3.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowPCF5.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowPCF5.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowPCF5.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowPCF5.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowPCSS.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowPCSS.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowPCSS.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowPCSS.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowSoft.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowSoft.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lighting/shadowSoft.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lighting/shadowSoft.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/lightmapAdd.js b/src/scene/shader-lib/glsl/chunks/lit/frag/lightmapAdd.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/lightmapAdd.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/lightmapAdd.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/litMain.js b/src/scene/shader-lib/glsl/chunks/lit/frag/litMain.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/litMain.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/litMain.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/ltc.js b/src/scene/shader-lib/glsl/chunks/lit/frag/ltc.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/ltc.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/ltc.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/metalnessModulate.js b/src/scene/shader-lib/glsl/chunks/lit/frag/metalnessModulate.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/metalnessModulate.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/metalnessModulate.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/output.js b/src/scene/shader-lib/glsl/chunks/lit/frag/output.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/output.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/output.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/outputAlpha.js b/src/scene/shader-lib/glsl/chunks/lit/frag/outputAlpha.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/outputAlpha.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/outputAlpha.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardBackend.js b/src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardBackend.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardBackend.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardBackend.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardDeclaration.js b/src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardDeclaration.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardDeclaration.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardDeclaration.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardMain.js b/src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardMain.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardMain.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardMain.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardPostCode.js b/src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardPostCode.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardPostCode.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardPostCode.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardPreCode.js b/src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardPreCode.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/pass-forward/litForwardPreCode.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/pass-forward/litForwardPreCode.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/pass-other/litOtherMain.js b/src/scene/shader-lib/glsl/chunks/lit/frag/pass-other/litOtherMain.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/pass-other/litOtherMain.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/pass-other/litOtherMain.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/pass-shadow/litShadowMain.js b/src/scene/shader-lib/glsl/chunks/lit/frag/pass-shadow/litShadowMain.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/pass-shadow/litShadowMain.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/pass-shadow/litShadowMain.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/reflDir.js b/src/scene/shader-lib/glsl/chunks/lit/frag/reflDir.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/reflDir.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/reflDir.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/reflDirAniso.js b/src/scene/shader-lib/glsl/chunks/lit/frag/reflDirAniso.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/reflDirAniso.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/reflDirAniso.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/reflectionCC.js b/src/scene/shader-lib/glsl/chunks/lit/frag/reflectionCC.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/reflectionCC.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/reflectionCC.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/reflectionCube.js b/src/scene/shader-lib/glsl/chunks/lit/frag/reflectionCube.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/reflectionCube.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/reflectionCube.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/reflectionEnv.js b/src/scene/shader-lib/glsl/chunks/lit/frag/reflectionEnv.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/reflectionEnv.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/reflectionEnv.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/reflectionEnvHQ.js b/src/scene/shader-lib/glsl/chunks/lit/frag/reflectionEnvHQ.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/reflectionEnvHQ.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/reflectionEnvHQ.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/reflectionSheen.js b/src/scene/shader-lib/glsl/chunks/lit/frag/reflectionSheen.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/reflectionSheen.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/reflectionSheen.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/reflectionSphere.js b/src/scene/shader-lib/glsl/chunks/lit/frag/reflectionSphere.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/reflectionSphere.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/reflectionSphere.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/refractionCube.js b/src/scene/shader-lib/glsl/chunks/lit/frag/refractionCube.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/refractionCube.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/refractionCube.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/refractionDynamic.js b/src/scene/shader-lib/glsl/chunks/lit/frag/refractionDynamic.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/refractionDynamic.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/refractionDynamic.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/spot.js b/src/scene/shader-lib/glsl/chunks/lit/frag/spot.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/spot.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/spot.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/startNineSliced.js b/src/scene/shader-lib/glsl/chunks/lit/frag/startNineSliced.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/startNineSliced.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/startNineSliced.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/startNineSlicedTiled.js b/src/scene/shader-lib/glsl/chunks/lit/frag/startNineSlicedTiled.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/startNineSlicedTiled.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/startNineSlicedTiled.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/twoSidedLighting.js b/src/scene/shader-lib/glsl/chunks/lit/frag/twoSidedLighting.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/twoSidedLighting.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/twoSidedLighting.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/frag/viewDir.js b/src/scene/shader-lib/glsl/chunks/lit/frag/viewDir.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/frag/viewDir.js rename to src/scene/shader-lib/glsl/chunks/lit/frag/viewDir.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/vert/litMain.js b/src/scene/shader-lib/glsl/chunks/lit/vert/litMain.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/vert/litMain.js rename to src/scene/shader-lib/glsl/chunks/lit/vert/litMain.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/vert/normal.js b/src/scene/shader-lib/glsl/chunks/lit/vert/normal.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/vert/normal.js rename to src/scene/shader-lib/glsl/chunks/lit/vert/normal.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/vert/uv0.js b/src/scene/shader-lib/glsl/chunks/lit/vert/uv0.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/vert/uv0.js rename to src/scene/shader-lib/glsl/chunks/lit/vert/uv0.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/vert/uv1.js b/src/scene/shader-lib/glsl/chunks/lit/vert/uv1.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/vert/uv1.js rename to src/scene/shader-lib/glsl/chunks/lit/vert/uv1.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/vert/uvTransform.js b/src/scene/shader-lib/glsl/chunks/lit/vert/uvTransform.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/vert/uvTransform.js rename to src/scene/shader-lib/glsl/chunks/lit/vert/uvTransform.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/vert/uvTransformUniforms.js b/src/scene/shader-lib/glsl/chunks/lit/vert/uvTransformUniforms.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/vert/uvTransformUniforms.js rename to src/scene/shader-lib/glsl/chunks/lit/vert/uvTransformUniforms.js diff --git a/src/scene/shader-lib/chunks-glsl/lit/vert/viewNormal.js b/src/scene/shader-lib/glsl/chunks/lit/vert/viewNormal.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/lit/vert/viewNormal.js rename to src/scene/shader-lib/glsl/chunks/lit/vert/viewNormal.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle-shader.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle-shader.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle-shader.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle-shader.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle-simulation.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle-simulation.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle-simulation.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle-simulation.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleInputFloat.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleInputFloat.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleInputFloat.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleInputFloat.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleInputRgba8.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleInputRgba8.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleInputRgba8.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleInputRgba8.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleOutputFloat.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleOutputFloat.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleOutputFloat.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleOutputFloat.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleOutputRgba8.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleOutputRgba8.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleOutputRgba8.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleOutputRgba8.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterAABB.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterAABB.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterAABB.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterAABB.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterEnd.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterEnd.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterEnd.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterEnd.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterInit.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterInit.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterInit.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterInit.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterNoRespawn.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterNoRespawn.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterNoRespawn.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterNoRespawn.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterOnStop.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterOnStop.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterOnStop.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterOnStop.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterRespawn.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterRespawn.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterRespawn.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterRespawn.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterSphere.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterSphere.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterSphere.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterSphere.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterStart.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterStart.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particleUpdaterStart.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particleUpdaterStart.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle_blendAdd.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle_blendAdd.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle_blendAdd.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle_blendAdd.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle_blendMultiply.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle_blendMultiply.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle_blendMultiply.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle_blendMultiply.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle_blendNormal.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle_blendNormal.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle_blendNormal.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle_blendNormal.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle_end.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle_end.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle_end.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle_end.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle_halflambert.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle_halflambert.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle_halflambert.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle_halflambert.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle_lambert.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle_lambert.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle_lambert.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle_lambert.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle_lighting.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle_lighting.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle_lighting.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle_lighting.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle_normalMap.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle_normalMap.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle_normalMap.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle_normalMap.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/frag/particle_soft.js b/src/scene/shader-lib/glsl/chunks/particle/frag/particle_soft.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/frag/particle_soft.js rename to src/scene/shader-lib/glsl/chunks/particle/frag/particle_soft.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle-shader.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle-shader.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle-shader.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle-shader.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particleAnimFrameClamp.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particleAnimFrameClamp.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particleAnimFrameClamp.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particleAnimFrameClamp.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particleAnimFrameLoop.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particleAnimFrameLoop.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particleAnimFrameLoop.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particleAnimFrameLoop.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particleAnimTex.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particleAnimTex.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particleAnimTex.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particleAnimTex.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_TBN.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_TBN.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_TBN.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_TBN.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_billboard.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_billboard.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_billboard.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_billboard.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_cpu.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_cpu.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_cpu.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_cpu.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_cpu_end.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_cpu_end.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_cpu_end.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_cpu_end.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_customFace.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_customFace.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_customFace.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_customFace.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_end.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_end.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_end.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_end.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_init.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_init.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_init.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_init.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_localShift.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_localShift.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_localShift.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_localShift.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_mesh.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_mesh.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_mesh.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_mesh.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_normal.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_normal.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_normal.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_normal.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_pointAlong.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_pointAlong.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_pointAlong.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_pointAlong.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_soft.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_soft.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_soft.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_soft.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_stretch.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_stretch.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_stretch.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_stretch.js diff --git a/src/scene/shader-lib/chunks-glsl/particle/vert/particle_wrap.js b/src/scene/shader-lib/glsl/chunks/particle/vert/particle_wrap.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/particle/vert/particle_wrap.js rename to src/scene/shader-lib/glsl/chunks/particle/vert/particle_wrap.js diff --git a/src/scene/shader-lib/chunks-glsl/render-pass/frag/coc.js b/src/scene/shader-lib/glsl/chunks/render-pass/frag/coc.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/render-pass/frag/coc.js rename to src/scene/shader-lib/glsl/chunks/render-pass/frag/coc.js diff --git a/src/scene/shader-lib/chunks-glsl/render-pass/frag/compose.js b/src/scene/shader-lib/glsl/chunks/render-pass/frag/compose.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/render-pass/frag/compose.js rename to src/scene/shader-lib/glsl/chunks/render-pass/frag/compose.js diff --git a/src/scene/shader-lib/chunks-glsl/render-pass/frag/depthAwareBlur.js b/src/scene/shader-lib/glsl/chunks/render-pass/frag/depthAwareBlur.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/render-pass/frag/depthAwareBlur.js rename to src/scene/shader-lib/glsl/chunks/render-pass/frag/depthAwareBlur.js diff --git a/src/scene/shader-lib/chunks-glsl/render-pass/frag/dofBlur.js b/src/scene/shader-lib/glsl/chunks/render-pass/frag/dofBlur.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/render-pass/frag/dofBlur.js rename to src/scene/shader-lib/glsl/chunks/render-pass/frag/dofBlur.js diff --git a/src/scene/shader-lib/chunks-glsl/render-pass/frag/downsample.js b/src/scene/shader-lib/glsl/chunks/render-pass/frag/downsample.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/render-pass/frag/downsample.js rename to src/scene/shader-lib/glsl/chunks/render-pass/frag/downsample.js diff --git a/src/scene/shader-lib/chunks-glsl/render-pass/frag/sampleCatmullRom.js b/src/scene/shader-lib/glsl/chunks/render-pass/frag/sampleCatmullRom.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/render-pass/frag/sampleCatmullRom.js rename to src/scene/shader-lib/glsl/chunks/render-pass/frag/sampleCatmullRom.js diff --git a/src/scene/shader-lib/chunks-glsl/render-pass/frag/ssao.js b/src/scene/shader-lib/glsl/chunks/render-pass/frag/ssao.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/render-pass/frag/ssao.js rename to src/scene/shader-lib/glsl/chunks/render-pass/frag/ssao.js diff --git a/src/scene/shader-lib/chunks-glsl/render-pass/frag/taaResolve.js b/src/scene/shader-lib/glsl/chunks/render-pass/frag/taaResolve.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/render-pass/frag/taaResolve.js rename to src/scene/shader-lib/glsl/chunks/render-pass/frag/taaResolve.js diff --git a/src/scene/shader-lib/chunks-glsl/render-pass/frag/upsample.js b/src/scene/shader-lib/glsl/chunks/render-pass/frag/upsample.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/render-pass/frag/upsample.js rename to src/scene/shader-lib/glsl/chunks/render-pass/frag/upsample.js diff --git a/src/scene/shader-lib/chunks-glsl/skybox/frag/skybox.js b/src/scene/shader-lib/glsl/chunks/skybox/frag/skybox.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/skybox/frag/skybox.js rename to src/scene/shader-lib/glsl/chunks/skybox/frag/skybox.js diff --git a/src/scene/shader-lib/chunks-glsl/skybox/vert/skybox.js b/src/scene/shader-lib/glsl/chunks/skybox/vert/skybox.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/skybox/vert/skybox.js rename to src/scene/shader-lib/glsl/chunks/skybox/vert/skybox.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/alphaTest.js b/src/scene/shader-lib/glsl/chunks/standard/frag/alphaTest.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/alphaTest.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/alphaTest.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/anisotropy.js b/src/scene/shader-lib/glsl/chunks/standard/frag/anisotropy.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/anisotropy.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/anisotropy.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/ao.js b/src/scene/shader-lib/glsl/chunks/standard/frag/ao.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/ao.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/ao.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/clearCoat.js b/src/scene/shader-lib/glsl/chunks/standard/frag/clearCoat.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/clearCoat.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/clearCoat.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/clearCoatGloss.js b/src/scene/shader-lib/glsl/chunks/standard/frag/clearCoatGloss.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/clearCoatGloss.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/clearCoatGloss.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/clearCoatNormal.js b/src/scene/shader-lib/glsl/chunks/standard/frag/clearCoatNormal.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/clearCoatNormal.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/clearCoatNormal.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/detailModes.js b/src/scene/shader-lib/glsl/chunks/standard/frag/detailModes.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/detailModes.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/detailModes.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/diffuse.js b/src/scene/shader-lib/glsl/chunks/standard/frag/diffuse.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/diffuse.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/diffuse.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/emissive.js b/src/scene/shader-lib/glsl/chunks/standard/frag/emissive.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/emissive.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/emissive.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/gloss.js b/src/scene/shader-lib/glsl/chunks/standard/frag/gloss.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/gloss.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/gloss.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/ior.js b/src/scene/shader-lib/glsl/chunks/standard/frag/ior.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/ior.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/ior.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/iridescence.js b/src/scene/shader-lib/glsl/chunks/standard/frag/iridescence.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/iridescence.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/iridescence.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/iridescenceThickness.js b/src/scene/shader-lib/glsl/chunks/standard/frag/iridescenceThickness.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/iridescenceThickness.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/iridescenceThickness.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/lightmap.js b/src/scene/shader-lib/glsl/chunks/standard/frag/lightmap.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/lightmap.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/lightmap.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/litShaderArgs.js b/src/scene/shader-lib/glsl/chunks/standard/frag/litShaderArgs.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/litShaderArgs.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/litShaderArgs.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/litShaderCore.js b/src/scene/shader-lib/glsl/chunks/standard/frag/litShaderCore.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/litShaderCore.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/litShaderCore.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/metalness.js b/src/scene/shader-lib/glsl/chunks/standard/frag/metalness.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/metalness.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/metalness.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/normalMap.js b/src/scene/shader-lib/glsl/chunks/standard/frag/normalMap.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/normalMap.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/normalMap.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/opacity-dither.js b/src/scene/shader-lib/glsl/chunks/standard/frag/opacity-dither.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/opacity-dither.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/opacity-dither.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/opacity.js b/src/scene/shader-lib/glsl/chunks/standard/frag/opacity.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/opacity.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/opacity.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/parallax.js b/src/scene/shader-lib/glsl/chunks/standard/frag/parallax.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/parallax.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/parallax.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/sheen.js b/src/scene/shader-lib/glsl/chunks/standard/frag/sheen.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/sheen.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/sheen.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/sheenGloss.js b/src/scene/shader-lib/glsl/chunks/standard/frag/sheenGloss.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/sheenGloss.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/sheenGloss.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/specular.js b/src/scene/shader-lib/glsl/chunks/standard/frag/specular.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/specular.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/specular.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/specularityFactor.js b/src/scene/shader-lib/glsl/chunks/standard/frag/specularityFactor.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/specularityFactor.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/specularityFactor.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/stdDeclaration.js b/src/scene/shader-lib/glsl/chunks/standard/frag/stdDeclaration.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/stdDeclaration.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/stdDeclaration.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/stdFrontEnd.js b/src/scene/shader-lib/glsl/chunks/standard/frag/stdFrontEnd.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/stdFrontEnd.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/stdFrontEnd.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/thickness.js b/src/scene/shader-lib/glsl/chunks/standard/frag/thickness.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/thickness.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/thickness.js diff --git a/src/scene/shader-lib/chunks-glsl/standard/frag/transmission.js b/src/scene/shader-lib/glsl/chunks/standard/frag/transmission.js similarity index 100% rename from src/scene/shader-lib/chunks-glsl/standard/frag/transmission.js rename to src/scene/shader-lib/glsl/chunks/standard/frag/transmission.js diff --git a/src/scene/shader-lib/glsl/collections/particle-chunks-glsl.js b/src/scene/shader-lib/glsl/collections/particle-chunks-glsl.js new file mode 100644 index 00000000000..883189441ef --- /dev/null +++ b/src/scene/shader-lib/glsl/collections/particle-chunks-glsl.js @@ -0,0 +1,89 @@ +import particlePS from '../chunks/particle/frag/particle.js'; +import particleVS from '../chunks/particle/vert/particle.js'; +import particleAnimFrameClampVS from '../chunks/particle/vert/particleAnimFrameClamp.js'; +import particleAnimFrameLoopVS from '../chunks/particle/vert/particleAnimFrameLoop.js'; +import particleAnimTexVS from '../chunks/particle/vert/particleAnimTex.js'; +import particleInputFloatPS from '../chunks/particle/frag/particleInputFloat.js'; +import particleInputRgba8PS from '../chunks/particle/frag/particleInputRgba8.js'; +import particleOutputFloatPS from '../chunks/particle/frag/particleOutputFloat.js'; +import particleOutputRgba8PS from '../chunks/particle/frag/particleOutputRgba8.js'; +import particleUpdaterAABBPS from '../chunks/particle/frag/particleUpdaterAABB.js'; +import particleUpdaterEndPS from '../chunks/particle/frag/particleUpdaterEnd.js'; +import particleUpdaterInitPS from '../chunks/particle/frag/particleUpdaterInit.js'; +import particleUpdaterNoRespawnPS from '../chunks/particle/frag/particleUpdaterNoRespawn.js'; +import particleUpdaterOnStopPS from '../chunks/particle/frag/particleUpdaterOnStop.js'; +import particleUpdaterRespawnPS from '../chunks/particle/frag/particleUpdaterRespawn.js'; +import particleUpdaterSpherePS from '../chunks/particle/frag/particleUpdaterSphere.js'; +import particleUpdaterStartPS from '../chunks/particle/frag/particleUpdaterStart.js'; +import particle_billboardVS from '../chunks/particle/vert/particle_billboard.js'; +import particle_blendAddPS from '../chunks/particle/frag/particle_blendAdd.js'; +import particle_blendMultiplyPS from '../chunks/particle/frag/particle_blendMultiply.js'; +import particle_blendNormalPS from '../chunks/particle/frag/particle_blendNormal.js'; +import particle_cpuVS from '../chunks/particle/vert/particle_cpu.js'; +import particle_cpu_endVS from '../chunks/particle/vert/particle_cpu_end.js'; +import particle_customFaceVS from '../chunks/particle/vert/particle_customFace.js'; +import particle_endPS from '../chunks/particle/frag/particle_end.js'; +import particle_endVS from '../chunks/particle/vert/particle_end.js'; +import particle_halflambertPS from '../chunks/particle/frag/particle_halflambert.js'; +import particle_initVS from '../chunks/particle/vert/particle_init.js'; +import particle_lambertPS from '../chunks/particle/frag/particle_lambert.js'; +import particle_lightingPS from '../chunks/particle/frag/particle_lighting.js'; +import particle_localShiftVS from '../chunks/particle/vert/particle_localShift.js'; +import particle_meshVS from '../chunks/particle/vert/particle_mesh.js'; +import particle_normalVS from '../chunks/particle/vert/particle_normal.js'; +import particle_normalMapPS from '../chunks/particle/frag/particle_normalMap.js'; +import particle_pointAlongVS from '../chunks/particle/vert/particle_pointAlong.js'; +import particle_simulationPS from '../chunks/particle/frag/particle-simulation.js'; +import particle_shaderPS from '../chunks/particle/frag/particle-shader.js'; +import particle_shaderVS from '../chunks/particle/vert/particle-shader.js'; +import particle_softPS from '../chunks/particle/frag/particle_soft.js'; +import particle_softVS from '../chunks/particle/vert/particle_soft.js'; +import particle_stretchVS from '../chunks/particle/vert/particle_stretch.js'; +import particle_TBNVS from '../chunks/particle/vert/particle_TBN.js'; +import particle_wrapVS from '../chunks/particle/vert/particle_wrap.js'; + +export const particleChunksGLSL = { + particlePS, + particleVS, + particleAnimFrameClampVS, + particleAnimFrameLoopVS, + particleAnimTexVS, + particleInputFloatPS, + particleInputRgba8PS, + particleOutputFloatPS, + particleOutputRgba8PS, + particleUpdaterAABBPS, + particleUpdaterEndPS, + particleUpdaterInitPS, + particleUpdaterNoRespawnPS, + particleUpdaterOnStopPS, + particleUpdaterRespawnPS, + particleUpdaterSpherePS, + particleUpdaterStartPS, + particle_billboardVS, + particle_blendAddPS, + particle_blendMultiplyPS, + particle_blendNormalPS, + particle_cpuVS, + particle_cpu_endVS, + particle_customFaceVS, + particle_endPS, + particle_endVS, + particle_halflambertPS, + particle_initVS, + particle_lambertPS, + particle_lightingPS, + particle_localShiftVS, + particle_meshVS, + particle_normalVS, + particle_normalMapPS, + particle_pointAlongVS, + particle_simulationPS, + particle_shaderPS, + particle_shaderVS, + particle_softPS, + particle_softVS, + particle_stretchVS, + particle_TBNVS, + particle_wrapVS +}; diff --git a/src/scene/shader-lib/glsl/collections/shader-chunks-glsl.js b/src/scene/shader-lib/glsl/collections/shader-chunks-glsl.js new file mode 100644 index 00000000000..cb7d15a0ab5 --- /dev/null +++ b/src/scene/shader-lib/glsl/collections/shader-chunks-glsl.js @@ -0,0 +1,354 @@ +import alphaTestPS from '../chunks/standard/frag/alphaTest.js'; +import ambientPS from '../chunks/lit/frag/ambient.js'; +import anisotropyPS from '../chunks/standard/frag/anisotropy.js'; +import aoPS from '../chunks/standard/frag/ao.js'; +import aoDiffuseOccPS from '../chunks/lit/frag/aoDiffuseOcc.js'; +import aoSpecOccPS from '../chunks/lit/frag/aoSpecOcc.js'; +import bakeDirLmEndPS from '../chunks/lightmapper/frag/bakeDirLmEnd.js'; +import bakeLmEndPS from '../chunks/lightmapper/frag/bakeLmEnd.js'; +import basePS from '../chunks/lit/frag/base.js'; +import baseNineSlicedPS from '../chunks/lit/frag/baseNineSliced.js'; +import baseNineSlicedTiledPS from '../chunks/lit/frag/baseNineSlicedTiled.js'; +import bayerPS from '../chunks/common/frag/bayer.js'; +import blurVSMPS from '../chunks/lit/frag/blurVSM.js'; +import clearCoatPS from '../chunks/standard/frag/clearCoat.js'; +import clearCoatGlossPS from '../chunks/standard/frag/clearCoatGloss.js'; +import clearCoatNormalPS from '../chunks/standard/frag/clearCoatNormal.js'; +import clusteredLightUtilsPS from '../chunks/lit/frag/clusteredLightUtils.js'; +import clusteredLightCookiesPS from '../chunks/lit/frag/clusteredLightCookies.js'; +import clusteredLightShadowsPS from '../chunks/lit/frag/clusteredLightShadows.js'; +import clusteredLightPS from '../chunks/lit/frag/clusteredLight.js'; +import combinePS from '../chunks/lit/frag/combine.js'; +import cookieBlit2DPS from '../chunks/internal/frag/cookie-blit-2d.js'; +import cookieBlitCubePS from '../chunks/internal/frag/cookie-blit-cube.js'; +import cookieBlitVS from '../chunks/internal/vert/cookie-blit.js'; +import cookiePS from '../chunks/lit/frag/cookie.js'; +import cubeMapProjectPS from '../chunks/lit/frag/cubeMapProject.js'; +import cubeMapRotatePS from '../chunks/lit/frag/cubeMapRotate.js'; +import debugOutputPS from '../chunks/lit/frag/debug-output.js'; +import debugProcessFrontendPS from '../chunks/lit/frag/debug-process-frontend.js'; +import decodePS from '../chunks/common/frag/decode.js'; +import detailModesPS from '../chunks/standard/frag/detailModes.js'; +import diffusePS from '../chunks/standard/frag/diffuse.js'; +import emissivePS from '../chunks/standard/frag/emissive.js'; +import encodePS from '../chunks/common/frag/encode.js'; +import endPS from '../chunks/lit/frag/end.js'; +import envAtlasPS from '../chunks/common/frag/envAtlas.js'; +import envProcPS from '../chunks/common/frag/envProc.js'; +import falloffInvSquaredPS from '../chunks/lit/frag/falloffInvSquared.js'; +import falloffLinearPS from '../chunks/lit/frag/falloffLinear.js'; +import floatAsUintPS from '../chunks/common/frag/float-as-uint.js'; +import fogPS from '../chunks/common/frag/fog.js'; +import fresnelSchlickPS from '../chunks/lit/frag/fresnelSchlick.js'; +import fullscreenQuadVS from '../chunks/common/vert/fullscreenQuad.js'; +import gammaPS from '../chunks/common/frag/gamma.js'; +import gles3PS from '../../../../platform/graphics/shader-chunks/frag/gles3.js'; +import gles3VS from '../../../../platform/graphics/shader-chunks/vert/gles3.js'; +import glossPS from '../chunks/standard/frag/gloss.js'; +import gsplatCenterVS from '../chunks/gsplat/vert/gsplatCenter.js'; +import gsplatColorVS from '../chunks/gsplat/vert/gsplatColor.js'; +import gsplatCommonVS from '../chunks/gsplat/vert/gsplatCommon.js'; +import gsplatCompressedDataVS from '../chunks/gsplat/vert/gsplatCompressedData.js'; +import gsplatCompressedSHVS from '../chunks/gsplat/vert/gsplatCompressedSH.js'; +import gsplatSogsColorVS from '../chunks/gsplat/vert/gsplatSogsColor.js'; +import gsplatSogsDataVS from '../chunks/gsplat/vert/gsplatSogsData.js'; +import gsplatSogsSHVS from '../chunks/gsplat/vert/gsplatSogsSH.js'; +import gsplatCornerVS from '../chunks/gsplat/vert/gsplatCorner.js'; +import gsplatDataVS from '../chunks/gsplat/vert/gsplatData.js'; +import gsplatOutputVS from '../chunks/gsplat/vert/gsplatOutput.js'; +import gsplatPS from '../chunks/gsplat/frag/gsplat.js'; +import gsplatSHVS from '../chunks/gsplat/vert/gsplatSH.js'; +import gsplatSourceVS from '../chunks/gsplat/vert/gsplatSource.js'; +import gsplatVS from '../chunks/gsplat/vert/gsplat.js'; +import quadVS from '../chunks/common/vert/quad.js'; +import immediateLinePS from '../chunks/internal/frag/immediateLine.js'; +import immediateLineVS from '../chunks/internal/vert/immediateLine.js'; +import iridescenceDiffractionPS from '../chunks/lit/frag/iridescenceDiffraction.js'; +import iridescencePS from '../chunks/standard/frag/iridescence.js'; +import iridescenceThicknessPS from '../chunks/standard/frag/iridescenceThickness.js'; +import iorPS from '../chunks/standard/frag/ior.js'; +import lightDeclarationPS from '../chunks/lit/frag/lighting/lightDeclaration.js'; +import lightDiffuseLambertPS from '../chunks/lit/frag/lightDiffuseLambert.js'; +import lightDirPointPS from '../chunks/lit/frag/lightDirPoint.js'; +import lightEvaluationPS from '../chunks/lit/frag/lighting/lightEvaluation.js'; +import lightFunctionLightPS from '../chunks/lit/frag/lighting/lightFunctionLight.js'; +import lightFunctionShadowPS from '../chunks/lit/frag/lighting/lightFunctionShadow.js'; +import lightingPS from '../chunks/lit/frag/lighting/lighting.js'; +import lightmapAddPS from '../chunks/lit/frag/lightmapAdd.js'; +import lightmapPS from '../chunks/standard/frag/lightmap.js'; +import lightSpecularAnisoGGXPS from '../chunks/lit/frag/lightSpecularAnisoGGX.js'; +import lightSpecularBlinnPS from '../chunks/lit/frag/lightSpecularBlinn.js'; +import lightSheenPS from '../chunks/lit/frag/lightSheen.js'; +import linearizeDepthPS from '../chunks/common/frag/linearizeDepth.js'; +import litForwardBackendPS from '../chunks/lit/frag/pass-forward/litForwardBackend.js'; +import litForwardDeclarationPS from '../chunks/lit/frag/pass-forward/litForwardDeclaration.js'; +import litForwardMainPS from '../chunks/lit/frag/pass-forward/litForwardMain.js'; +import litForwardPostCodePS from '../chunks/lit/frag/pass-forward/litForwardPostCode.js'; +import litForwardPreCodePS from '../chunks/lit/frag/pass-forward/litForwardPreCode.js'; +import litMainPS from '../chunks/lit/frag/litMain.js'; +import litMainVS from '../chunks/lit/vert/litMain.js'; +import litOtherMainPS from '../chunks/lit/frag/pass-other/litOtherMain.js'; +import litShaderArgsPS from '../chunks/standard/frag/litShaderArgs.js'; +import litShaderCorePS from '../chunks/standard/frag/litShaderCore.js'; +import litShadowMainPS from '../chunks/lit/frag/pass-shadow/litShadowMain.js'; +import ltcPS from '../chunks/lit/frag/ltc.js'; +import metalnessPS from '../chunks/standard/frag/metalness.js'; +import msdfPS from '../chunks/common/frag/msdf.js'; +import metalnessModulatePS from '../chunks/lit/frag/metalnessModulate.js'; +import morphPS from '../chunks/internal/morph/frag/morph.js'; +import morphVS from '../chunks/internal/morph/vert/morph.js'; +import msdfVS from '../chunks/common/vert/msdf.js'; +import normalVS from '../chunks/lit/vert/normal.js'; +import normalCoreVS from '../chunks/common/vert/normalCore.js'; +import normalMapPS from '../chunks/standard/frag/normalMap.js'; +import opacityPS from '../chunks/standard/frag/opacity.js'; +import opacityDitherPS from '../chunks/standard/frag/opacity-dither.js'; +import outputPS from '../chunks/lit/frag/output.js'; +import outputAlphaPS from '../chunks/lit/frag/outputAlpha.js'; +import outputTex2DPS from '../chunks/common/frag/outputTex2D.js'; +import sheenPS from '../chunks/standard/frag/sheen.js'; +import sheenGlossPS from '../chunks/standard/frag/sheenGloss.js'; +import parallaxPS from '../chunks/standard/frag/parallax.js'; +import pickPS from '../chunks/common/frag/pick.js'; +import reflDirPS from '../chunks/lit/frag/reflDir.js'; +import reflDirAnisoPS from '../chunks/lit/frag/reflDirAniso.js'; +import reflectionCCPS from '../chunks/lit/frag/reflectionCC.js'; +import reflectionCubePS from '../chunks/lit/frag/reflectionCube.js'; +import reflectionEnvHQPS from '../chunks/lit/frag/reflectionEnvHQ.js'; +import reflectionEnvPS from '../chunks/lit/frag/reflectionEnv.js'; +import reflectionSpherePS from '../chunks/lit/frag/reflectionSphere.js'; +import reflectionSheenPS from '../chunks/lit/frag/reflectionSheen.js'; +import refractionCubePS from '../chunks/lit/frag/refractionCube.js'; +import refractionDynamicPS from '../chunks/lit/frag/refractionDynamic.js'; +import reprojectPS from '../chunks/internal/frag/reproject.js'; +import reprojectVS from '../chunks/internal/vert/reproject.js'; +import screenDepthPS from '../chunks/common/frag/screenDepth.js'; +import shadowCascadesPS from '../chunks/lit/frag/lighting/shadowCascades.js'; +import shadowEVSMPS from '../chunks/lit/frag/lighting/shadowEVSM.js'; +import shadowPCF1PS from '../chunks/lit/frag/lighting/shadowPCF1.js'; +import shadowPCF3PS from '../chunks/lit/frag/lighting/shadowPCF3.js'; +import shadowPCF5PS from '../chunks/lit/frag/lighting/shadowPCF5.js'; +import shadowPCSSPS from '../chunks/lit/frag/lighting/shadowPCSS.js'; +import shadowSoftPS from '../chunks/lit/frag/lighting/shadowSoft.js'; +import skinBatchVS from '../chunks/common/vert/skinBatch.js'; +import skinVS from '../chunks/common/vert/skin.js'; +import skyboxPS from '../chunks/skybox/frag/skybox.js'; +import skyboxVS from '../chunks/skybox/vert/skybox.js'; +import specularPS from '../chunks/standard/frag/specular.js'; +import sphericalPS from '../chunks/common/frag/spherical.js'; +import specularityFactorPS from '../chunks/standard/frag/specularityFactor.js'; +import spotPS from '../chunks/lit/frag/spot.js'; +import startNineSlicedPS from '../chunks/lit/frag/startNineSliced.js'; +import startNineSlicedTiledPS from '../chunks/lit/frag/startNineSlicedTiled.js'; +import stdDeclarationPS from '../chunks/standard/frag/stdDeclaration.js'; +import stdFrontEndPS from '../chunks/standard/frag/stdFrontEnd.js'; +import TBNPS from '../chunks/lit/frag/TBN.js'; +import thicknessPS from '../chunks/standard/frag/thickness.js'; +import tonemappingPS from '../chunks/common/frag/tonemapping/tonemapping.js'; +import tonemappingAcesPS from '../chunks/common/frag/tonemapping/tonemappingAces.js'; +import tonemappingAces2PS from '../chunks/common/frag/tonemapping/tonemappingAces2.js'; +import tonemappingFilmicPS from '../chunks/common/frag/tonemapping/tonemappingFilmic.js'; +import tonemappingHejlPS from '../chunks/common/frag/tonemapping/tonemappingHejl.js'; +import tonemappingLinearPS from '../chunks/common/frag/tonemapping/tonemappingLinear.js'; +import tonemappingNeutralPS from '../chunks/common/frag/tonemapping/tonemappingNeutral.js'; +import tonemappingNonePS from '../chunks/common/frag/tonemapping/tonemappingNone.js'; +import transformVS from '../chunks/common/vert/transform.js'; +import transformCoreVS from '../chunks/common/vert/transformCore.js'; +import transformInstancingVS from '../chunks/common/vert/transformInstancing.js'; +import transmissionPS from '../chunks/standard/frag/transmission.js'; +import twoSidedLightingPS from '../chunks/lit/frag/twoSidedLighting.js'; +import uv0VS from '../chunks/lit/vert/uv0.js'; +import uv1VS from '../chunks/lit/vert/uv1.js'; +import uvTransformVS from '../chunks/lit/vert/uvTransform.js'; +import uvTransformUniformsPS from '../chunks/lit/vert/uvTransformUniforms.js'; +import viewDirPS from '../chunks/lit/frag/viewDir.js'; +import webgpuPS from '../../../../platform/graphics/shader-chunks/frag/webgpu.js'; +import webgpuVS from '../../../../platform/graphics/shader-chunks/vert/webgpu.js'; + +/** + * Object containing all default shader chunks used by shader generators. + * + * @type {Record} + * @category Graphics + * @ignore + */ +const shaderChunksGLSL = { + alphaTestPS, + ambientPS, + anisotropyPS, + aoPS, + aoDiffuseOccPS, + aoSpecOccPS, + bakeDirLmEndPS, + bakeLmEndPS, + basePS, + baseNineSlicedPS, + baseNineSlicedTiledPS, + bayerPS, + blurVSMPS, + clearCoatPS, + clearCoatGlossPS, + clearCoatNormalPS, + clusteredLightCookiesPS, + clusteredLightShadowsPS, + clusteredLightUtilsPS, + clusteredLightPS, + combinePS, + cookieBlit2DPS, + cookieBlitCubePS, + cookieBlitVS, + cookiePS, + cubeMapProjectPS, + cubeMapRotatePS, + debugOutputPS, + debugProcessFrontendPS, + detailModesPS, + diffusePS, + decodePS, + emissivePS, + encodePS, + endPS, + envAtlasPS, + envProcPS, + falloffInvSquaredPS, + falloffLinearPS, + floatAsUintPS, + fogPS, + fresnelSchlickPS, + frontendCodePS: '', // empty chunk, supplied by the shader generator + frontendDeclPS: '', // empty chunk, supplied by the shader generator + fullscreenQuadVS, + gammaPS, + gles3PS, + gles3VS, + glossPS, + gsplatCenterVS, + gsplatCornerVS, + gsplatColorVS, + gsplatCommonVS, + gsplatCompressedDataVS, + gsplatCompressedSHVS, + gsplatSogsColorVS, + gsplatSogsDataVS, + gsplatSogsSHVS, + gsplatDataVS, + gsplatOutputVS, + gsplatPS, + gsplatSHVS, + gsplatSourceVS, + gsplatVS, + quadVS, + immediateLinePS, + immediateLineVS, + iridescenceDiffractionPS, + iridescencePS, + iridescenceThicknessPS, + iorPS, + lightDeclarationPS, + lightDiffuseLambertPS, + lightDirPointPS, + lightEvaluationPS, + lightFunctionLightPS, + lightFunctionShadowPS, + lightingPS, + lightmapAddPS, + lightmapPS, + lightSpecularAnisoGGXPS, + lightSpecularBlinnPS, + lightSheenPS, + linearizeDepthPS, + litForwardBackendPS, + litForwardDeclarationPS, + litForwardMainPS, + litForwardPostCodePS, + litForwardPreCodePS, + litMainPS, + litMainVS, + litOtherMainPS, + litShaderArgsPS, + litShaderCorePS, + litShadowMainPS, + litUserDeclarationPS: '', // empty chunk allowing user to add custom code + litUserDeclarationVS: '', // empty chunk allowing user to add custom code + litUserCodePS: '', // empty chunk allowing user to add custom code + litUserCodeVS: '', // empty chunk allowing user to add custom code + litUserMainStartPS: '', // empty chunk allowing user to add custom code + litUserMainStartVS: '', // empty chunk allowing user to add custom code + litUserMainEndPS: '', // empty chunk allowing user to add custom code + litUserMainEndVS: '', // empty chunk allowing user to add custom code + ltcPS, + metalnessPS, + metalnessModulatePS, + morphPS, + morphVS, + msdfPS, + msdfVS, + normalVS, + normalCoreVS, + normalMapPS, + opacityPS, + opacityDitherPS, + outputPS, + outputAlphaPS, + outputTex2DPS, + sheenPS, + sheenGlossPS, + parallaxPS, + pickPS, + reflDirPS, + reflDirAnisoPS, + reflectionCCPS, + reflectionCubePS, + reflectionEnvHQPS, + reflectionEnvPS, + reflectionSpherePS, + reflectionSheenPS, + refractionCubePS, + refractionDynamicPS, + reprojectPS, + reprojectVS, + screenDepthPS, + shadowCascadesPS, + shadowEVSMPS, + shadowPCF1PS, + shadowPCF3PS, + shadowPCF5PS, + shadowPCSSPS, + shadowSoftPS, + skinBatchVS, + skinVS, + skyboxPS, + skyboxVS, + specularPS, + sphericalPS, + specularityFactorPS, + spotPS, + startNineSlicedPS, + startNineSlicedTiledPS, + stdDeclarationPS, + stdFrontEndPS, + TBNPS, + thicknessPS, + tonemappingPS, + tonemappingAcesPS, + tonemappingAces2PS, + tonemappingFilmicPS, + tonemappingHejlPS, + tonemappingLinearPS, + tonemappingNeutralPS, + tonemappingNonePS, + transformVS, + transformCoreVS, + transformInstancingVS, + transmissionPS, + twoSidedLightingPS, + uv0VS, + uv1VS, + uvTransformVS, + uvTransformUniformsPS, + viewDirPS, + webgpuPS, + webgpuVS +}; + +export { shaderChunksGLSL }; diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/bayer.js b/src/scene/shader-lib/wgsl/chunks/common/frag/bayer.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/bayer.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/bayer.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/decode.js b/src/scene/shader-lib/wgsl/chunks/common/frag/decode.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/decode.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/decode.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/encode.js b/src/scene/shader-lib/wgsl/chunks/common/frag/encode.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/encode.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/encode.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/envAtlas.js b/src/scene/shader-lib/wgsl/chunks/common/frag/envAtlas.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/envAtlas.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/envAtlas.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/envProc.js b/src/scene/shader-lib/wgsl/chunks/common/frag/envProc.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/envProc.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/envProc.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/float-as-uint.js b/src/scene/shader-lib/wgsl/chunks/common/frag/float-as-uint.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/float-as-uint.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/float-as-uint.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/fog.js b/src/scene/shader-lib/wgsl/chunks/common/frag/fog.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/fog.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/fog.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/gamma.js b/src/scene/shader-lib/wgsl/chunks/common/frag/gamma.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/gamma.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/gamma.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/linearizeDepth.js b/src/scene/shader-lib/wgsl/chunks/common/frag/linearizeDepth.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/linearizeDepth.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/linearizeDepth.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/msdf.js b/src/scene/shader-lib/wgsl/chunks/common/frag/msdf.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/msdf.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/msdf.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/outputTex2D.js b/src/scene/shader-lib/wgsl/chunks/common/frag/outputTex2D.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/outputTex2D.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/outputTex2D.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/pick.js b/src/scene/shader-lib/wgsl/chunks/common/frag/pick.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/pick.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/pick.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/screenDepth.js b/src/scene/shader-lib/wgsl/chunks/common/frag/screenDepth.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/screenDepth.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/screenDepth.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/spherical.js b/src/scene/shader-lib/wgsl/chunks/common/frag/spherical.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/spherical.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/spherical.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemapping.js b/src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemapping.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemapping.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemapping.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingAces.js b/src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingAces.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingAces.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingAces.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingAces2.js b/src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingAces2.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingAces2.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingAces2.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingFilmic.js b/src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingFilmic.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingFilmic.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingFilmic.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingHejl.js b/src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingHejl.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingHejl.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingHejl.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingLinear.js b/src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingLinear.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingLinear.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingLinear.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingNeutral.js b/src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingNeutral.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingNeutral.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingNeutral.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingNone.js b/src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingNone.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/frag/tonemapping/tonemappingNone.js rename to src/scene/shader-lib/wgsl/chunks/common/frag/tonemapping/tonemappingNone.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/vert/fullscreenQuad.js b/src/scene/shader-lib/wgsl/chunks/common/vert/fullscreenQuad.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/vert/fullscreenQuad.js rename to src/scene/shader-lib/wgsl/chunks/common/vert/fullscreenQuad.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/vert/msdf.js b/src/scene/shader-lib/wgsl/chunks/common/vert/msdf.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/vert/msdf.js rename to src/scene/shader-lib/wgsl/chunks/common/vert/msdf.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/vert/normalCore.js b/src/scene/shader-lib/wgsl/chunks/common/vert/normalCore.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/vert/normalCore.js rename to src/scene/shader-lib/wgsl/chunks/common/vert/normalCore.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/vert/quad.js b/src/scene/shader-lib/wgsl/chunks/common/vert/quad.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/vert/quad.js rename to src/scene/shader-lib/wgsl/chunks/common/vert/quad.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/vert/skin.js b/src/scene/shader-lib/wgsl/chunks/common/vert/skin.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/vert/skin.js rename to src/scene/shader-lib/wgsl/chunks/common/vert/skin.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/vert/skinBatch.js b/src/scene/shader-lib/wgsl/chunks/common/vert/skinBatch.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/vert/skinBatch.js rename to src/scene/shader-lib/wgsl/chunks/common/vert/skinBatch.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/vert/transform.js b/src/scene/shader-lib/wgsl/chunks/common/vert/transform.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/vert/transform.js rename to src/scene/shader-lib/wgsl/chunks/common/vert/transform.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/vert/transformCore.js b/src/scene/shader-lib/wgsl/chunks/common/vert/transformCore.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/vert/transformCore.js rename to src/scene/shader-lib/wgsl/chunks/common/vert/transformCore.js diff --git a/src/scene/shader-lib/chunks-wgsl/common/vert/transformInstancing.js b/src/scene/shader-lib/wgsl/chunks/common/vert/transformInstancing.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/common/vert/transformInstancing.js rename to src/scene/shader-lib/wgsl/chunks/common/vert/transformInstancing.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/frag/gsplat.js b/src/scene/shader-lib/wgsl/chunks/gsplat/frag/gsplat.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/frag/gsplat.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/frag/gsplat.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplat.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplat.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplat.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplat.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCenter.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCenter.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCenter.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCenter.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatColor.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatColor.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatColor.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatColor.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCommon.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCommon.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCommon.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCommon.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCompressedData.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCompressedData.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCompressedData.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCompressedData.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCompressedSH.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCompressedSH.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCompressedSH.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCompressedSH.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCorner.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCorner.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatCorner.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatCorner.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatData.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatData.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatData.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatData.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatOutput.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatOutput.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatOutput.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatOutput.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSH.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSH.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSH.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSH.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSogsColor.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSogsColor.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSogsColor.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSogsColor.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSogsData.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSogsData.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSogsData.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSogsData.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSogsSH.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSogsSH.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSogsSH.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSogsSH.js diff --git a/src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSource.js b/src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSource.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/gsplat/vert/gsplatSource.js rename to src/scene/shader-lib/wgsl/chunks/gsplat/vert/gsplatSource.js diff --git a/src/scene/shader-lib/chunks-wgsl/internal/frag/cookie-blit-2d.js b/src/scene/shader-lib/wgsl/chunks/internal/frag/cookie-blit-2d.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/internal/frag/cookie-blit-2d.js rename to src/scene/shader-lib/wgsl/chunks/internal/frag/cookie-blit-2d.js diff --git a/src/scene/shader-lib/chunks-wgsl/internal/frag/cookie-blit-cube.js b/src/scene/shader-lib/wgsl/chunks/internal/frag/cookie-blit-cube.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/internal/frag/cookie-blit-cube.js rename to src/scene/shader-lib/wgsl/chunks/internal/frag/cookie-blit-cube.js diff --git a/src/scene/shader-lib/chunks-wgsl/internal/frag/immediateLine.js b/src/scene/shader-lib/wgsl/chunks/internal/frag/immediateLine.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/internal/frag/immediateLine.js rename to src/scene/shader-lib/wgsl/chunks/internal/frag/immediateLine.js diff --git a/src/scene/shader-lib/chunks-wgsl/internal/frag/reproject.js b/src/scene/shader-lib/wgsl/chunks/internal/frag/reproject.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/internal/frag/reproject.js rename to src/scene/shader-lib/wgsl/chunks/internal/frag/reproject.js diff --git a/src/scene/shader-lib/chunks-wgsl/internal/morph/frag/morph.js b/src/scene/shader-lib/wgsl/chunks/internal/morph/frag/morph.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/internal/morph/frag/morph.js rename to src/scene/shader-lib/wgsl/chunks/internal/morph/frag/morph.js diff --git a/src/scene/shader-lib/chunks-wgsl/internal/morph/vert/morph.js b/src/scene/shader-lib/wgsl/chunks/internal/morph/vert/morph.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/internal/morph/vert/morph.js rename to src/scene/shader-lib/wgsl/chunks/internal/morph/vert/morph.js diff --git a/src/scene/shader-lib/chunks-wgsl/internal/vert/cookie-blit.js b/src/scene/shader-lib/wgsl/chunks/internal/vert/cookie-blit.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/internal/vert/cookie-blit.js rename to src/scene/shader-lib/wgsl/chunks/internal/vert/cookie-blit.js diff --git a/src/scene/shader-lib/chunks-wgsl/internal/vert/immediateLine.js b/src/scene/shader-lib/wgsl/chunks/internal/vert/immediateLine.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/internal/vert/immediateLine.js rename to src/scene/shader-lib/wgsl/chunks/internal/vert/immediateLine.js diff --git a/src/scene/shader-lib/chunks-wgsl/internal/vert/reproject.js b/src/scene/shader-lib/wgsl/chunks/internal/vert/reproject.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/internal/vert/reproject.js rename to src/scene/shader-lib/wgsl/chunks/internal/vert/reproject.js diff --git a/src/scene/shader-lib/chunks-wgsl/lightmapper/frag/bakeDirLmEnd.js b/src/scene/shader-lib/wgsl/chunks/lightmapper/frag/bakeDirLmEnd.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lightmapper/frag/bakeDirLmEnd.js rename to src/scene/shader-lib/wgsl/chunks/lightmapper/frag/bakeDirLmEnd.js diff --git a/src/scene/shader-lib/chunks-wgsl/lightmapper/frag/bakeLmEnd.js b/src/scene/shader-lib/wgsl/chunks/lightmapper/frag/bakeLmEnd.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lightmapper/frag/bakeLmEnd.js rename to src/scene/shader-lib/wgsl/chunks/lightmapper/frag/bakeLmEnd.js diff --git a/src/scene/shader-lib/chunks-wgsl/lightmapper/frag/bilateralDeNoise.js b/src/scene/shader-lib/wgsl/chunks/lightmapper/frag/bilateralDeNoise.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lightmapper/frag/bilateralDeNoise.js rename to src/scene/shader-lib/wgsl/chunks/lightmapper/frag/bilateralDeNoise.js diff --git a/src/scene/shader-lib/chunks-wgsl/lightmapper/frag/dilate.js b/src/scene/shader-lib/wgsl/chunks/lightmapper/frag/dilate.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lightmapper/frag/dilate.js rename to src/scene/shader-lib/wgsl/chunks/lightmapper/frag/dilate.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/TBN.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/TBN.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/TBN.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/TBN.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/ambient.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/ambient.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/ambient.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/ambient.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/aoDiffuseOcc.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/aoDiffuseOcc.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/aoDiffuseOcc.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/aoDiffuseOcc.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/aoSpecOcc.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/aoSpecOcc.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/aoSpecOcc.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/aoSpecOcc.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/base.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/base.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/base.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/base.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/baseNineSliced.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/baseNineSliced.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/baseNineSliced.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/baseNineSliced.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/baseNineSlicedTiled.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/baseNineSlicedTiled.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/baseNineSlicedTiled.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/baseNineSlicedTiled.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/blurVSM.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/blurVSM.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/blurVSM.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/blurVSM.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/clusteredLight.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/clusteredLight.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/clusteredLight.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/clusteredLight.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/clusteredLightCookies.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/clusteredLightCookies.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/clusteredLightCookies.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/clusteredLightCookies.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/clusteredLightShadows.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/clusteredLightShadows.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/clusteredLightShadows.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/clusteredLightShadows.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/clusteredLightUtils.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/clusteredLightUtils.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/clusteredLightUtils.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/clusteredLightUtils.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/combine.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/combine.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/combine.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/combine.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/cubeMapProject.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/cubeMapProject.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/cubeMapProject.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/cubeMapProject.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/cubeMapRotate.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/cubeMapRotate.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/cubeMapRotate.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/cubeMapRotate.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/debug-output.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/debug-output.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/debug-output.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/debug-output.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/debug-process-frontend.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/debug-process-frontend.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/debug-process-frontend.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/debug-process-frontend.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/end.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/end.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/end.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/end.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/falloffInvSquared.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/falloffInvSquared.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/falloffInvSquared.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/falloffInvSquared.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/falloffLinear.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/falloffLinear.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/falloffLinear.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/falloffLinear.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/fresnelSchlick.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/fresnelSchlick.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/fresnelSchlick.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/fresnelSchlick.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/iridescenceDiffraction.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/iridescenceDiffraction.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/iridescenceDiffraction.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/iridescenceDiffraction.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lightDiffuseLambert.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lightDiffuseLambert.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lightDiffuseLambert.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lightDiffuseLambert.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lightDirPoint.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lightDirPoint.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lightDirPoint.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lightDirPoint.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lightSheen.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lightSheen.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lightSheen.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lightSheen.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lightSpecularAnisoGGX.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lightSpecularAnisoGGX.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lightSpecularAnisoGGX.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lightSpecularAnisoGGX.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lightSpecularBlinn.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lightSpecularBlinn.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lightSpecularBlinn.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lightSpecularBlinn.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lightDeclaration.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lightDeclaration.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lightDeclaration.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lightDeclaration.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lightEvaluation.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lightEvaluation.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lightEvaluation.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lightEvaluation.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lightFunctionLight.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lightFunctionLight.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lightFunctionLight.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lightFunctionLight.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lightFunctionShadow.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lightFunctionShadow.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lightFunctionShadow.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lightFunctionShadow.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lighting.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lighting.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/lighting.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/lighting.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowCascades.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowCascades.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowCascades.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowCascades.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowEVSM.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowEVSM.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowEVSM.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowEVSM.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowPCF1.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowPCF1.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowPCF1.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowPCF1.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowPCF3.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowPCF3.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowPCF3.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowPCF3.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowPCF5.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowPCF5.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowPCF5.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowPCF5.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowSoft.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowSoft.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lighting/shadowSoft.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lighting/shadowSoft.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/lightmapAdd.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/lightmapAdd.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/lightmapAdd.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/lightmapAdd.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/litMain.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/litMain.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/litMain.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/litMain.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/ltc.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/ltc.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/ltc.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/ltc.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/metalnessModulate.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/metalnessModulate.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/metalnessModulate.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/metalnessModulate.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/output.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/output.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/output.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/output.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/outputAlpha.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/outputAlpha.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/outputAlpha.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/outputAlpha.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardBackend.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardBackend.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardBackend.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardBackend.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardDeclaration.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardDeclaration.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardDeclaration.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardDeclaration.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardMain.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardMain.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardMain.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardMain.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardPostCode.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardPostCode.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardPostCode.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardPostCode.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardPreCode.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardPreCode.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/pass-forward/litForwardPreCode.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/pass-forward/litForwardPreCode.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/pass-other/litOtherMain.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/pass-other/litOtherMain.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/pass-other/litOtherMain.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/pass-other/litOtherMain.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/pass-shadow/litShadowMain.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/pass-shadow/litShadowMain.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/pass-shadow/litShadowMain.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/pass-shadow/litShadowMain.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/reflDir.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/reflDir.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/reflDir.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/reflDir.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/reflDirAniso.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/reflDirAniso.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/reflDirAniso.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/reflDirAniso.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionCC.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionCC.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionCC.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionCC.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionCube.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionCube.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionCube.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionCube.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionEnv.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionEnv.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionEnv.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionEnv.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionEnvHQ.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionEnvHQ.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionEnvHQ.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionEnvHQ.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionSheen.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionSheen.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionSheen.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionSheen.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionSphere.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionSphere.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/reflectionSphere.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/reflectionSphere.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/refractionCube.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/refractionCube.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/refractionCube.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/refractionCube.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/refractionDynamic.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/refractionDynamic.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/refractionDynamic.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/refractionDynamic.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/spot.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/spot.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/spot.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/spot.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/startNineSliced.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/startNineSliced.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/startNineSliced.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/startNineSliced.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/startNineSlicedTiled.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/startNineSlicedTiled.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/startNineSlicedTiled.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/startNineSlicedTiled.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/twoSidedLighting.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/twoSidedLighting.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/twoSidedLighting.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/twoSidedLighting.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/frag/viewDir.js b/src/scene/shader-lib/wgsl/chunks/lit/frag/viewDir.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/frag/viewDir.js rename to src/scene/shader-lib/wgsl/chunks/lit/frag/viewDir.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/vert/litMain.js b/src/scene/shader-lib/wgsl/chunks/lit/vert/litMain.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/vert/litMain.js rename to src/scene/shader-lib/wgsl/chunks/lit/vert/litMain.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/vert/normal.js b/src/scene/shader-lib/wgsl/chunks/lit/vert/normal.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/vert/normal.js rename to src/scene/shader-lib/wgsl/chunks/lit/vert/normal.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/vert/uv0.js b/src/scene/shader-lib/wgsl/chunks/lit/vert/uv0.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/vert/uv0.js rename to src/scene/shader-lib/wgsl/chunks/lit/vert/uv0.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/vert/uv1.js b/src/scene/shader-lib/wgsl/chunks/lit/vert/uv1.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/vert/uv1.js rename to src/scene/shader-lib/wgsl/chunks/lit/vert/uv1.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/vert/uvTransform.js b/src/scene/shader-lib/wgsl/chunks/lit/vert/uvTransform.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/vert/uvTransform.js rename to src/scene/shader-lib/wgsl/chunks/lit/vert/uvTransform.js diff --git a/src/scene/shader-lib/chunks-wgsl/lit/vert/uvTransformUniforms.js b/src/scene/shader-lib/wgsl/chunks/lit/vert/uvTransformUniforms.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/lit/vert/uvTransformUniforms.js rename to src/scene/shader-lib/wgsl/chunks/lit/vert/uvTransformUniforms.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle-shader.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle-shader.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle-shader.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle-shader.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle-simulation.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle-simulation.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle-simulation.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle-simulation.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleInputFloat.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleInputFloat.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleInputFloat.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleInputFloat.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleInputRgba8.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleInputRgba8.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleInputRgba8.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleInputRgba8.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleOutputFloat.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleOutputFloat.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleOutputFloat.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleOutputFloat.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleOutputRgba8.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleOutputRgba8.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleOutputRgba8.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleOutputRgba8.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterAABB.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterAABB.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterAABB.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterAABB.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterEnd.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterEnd.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterEnd.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterEnd.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterInit.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterInit.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterInit.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterInit.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterNoRespawn.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterNoRespawn.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterNoRespawn.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterNoRespawn.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterOnStop.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterOnStop.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterOnStop.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterOnStop.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterRespawn.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterRespawn.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterRespawn.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterRespawn.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterSphere.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterSphere.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterSphere.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterSphere.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterStart.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterStart.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particleUpdaterStart.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particleUpdaterStart.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle_blendAdd.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle_blendAdd.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle_blendAdd.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle_blendAdd.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle_blendMultiply.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle_blendMultiply.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle_blendMultiply.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle_blendMultiply.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle_blendNormal.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle_blendNormal.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle_blendNormal.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle_blendNormal.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle_end.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle_end.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle_end.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle_end.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle_halflambert.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle_halflambert.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle_halflambert.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle_halflambert.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle_lambert.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle_lambert.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle_lambert.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle_lambert.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle_lighting.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle_lighting.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle_lighting.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle_lighting.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle_normalMap.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle_normalMap.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle_normalMap.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle_normalMap.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/frag/particle_soft.js b/src/scene/shader-lib/wgsl/chunks/particle/frag/particle_soft.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/frag/particle_soft.js rename to src/scene/shader-lib/wgsl/chunks/particle/frag/particle_soft.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle-shader.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle-shader.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle-shader.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle-shader.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particleAnimFrameClamp.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particleAnimFrameClamp.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particleAnimFrameClamp.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particleAnimFrameClamp.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particleAnimFrameLoop.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particleAnimFrameLoop.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particleAnimFrameLoop.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particleAnimFrameLoop.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particleAnimTex.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particleAnimTex.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particleAnimTex.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particleAnimTex.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_TBN.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_TBN.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_TBN.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_TBN.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_billboard.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_billboard.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_billboard.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_billboard.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_cpu.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_cpu.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_cpu.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_cpu.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_cpu_end.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_cpu_end.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_cpu_end.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_cpu_end.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_customFace.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_customFace.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_customFace.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_customFace.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_end.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_end.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_end.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_end.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_init.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_init.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_init.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_init.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_localShift.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_localShift.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_localShift.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_localShift.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_mesh.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_mesh.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_mesh.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_mesh.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_normal.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_normal.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_normal.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_normal.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_pointAlong.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_pointAlong.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_pointAlong.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_pointAlong.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_soft.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_soft.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_soft.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_soft.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_stretch.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_stretch.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_stretch.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_stretch.js diff --git a/src/scene/shader-lib/chunks-wgsl/particle/vert/particle_wrap.js b/src/scene/shader-lib/wgsl/chunks/particle/vert/particle_wrap.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/particle/vert/particle_wrap.js rename to src/scene/shader-lib/wgsl/chunks/particle/vert/particle_wrap.js diff --git a/src/scene/shader-lib/chunks-wgsl/render-pass/frag/coc.js b/src/scene/shader-lib/wgsl/chunks/render-pass/frag/coc.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/render-pass/frag/coc.js rename to src/scene/shader-lib/wgsl/chunks/render-pass/frag/coc.js diff --git a/src/scene/shader-lib/chunks-wgsl/render-pass/frag/depthAwareBlur.js b/src/scene/shader-lib/wgsl/chunks/render-pass/frag/depthAwareBlur.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/render-pass/frag/depthAwareBlur.js rename to src/scene/shader-lib/wgsl/chunks/render-pass/frag/depthAwareBlur.js diff --git a/src/scene/shader-lib/chunks-wgsl/render-pass/frag/dofBlur.js b/src/scene/shader-lib/wgsl/chunks/render-pass/frag/dofBlur.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/render-pass/frag/dofBlur.js rename to src/scene/shader-lib/wgsl/chunks/render-pass/frag/dofBlur.js diff --git a/src/scene/shader-lib/chunks-wgsl/render-pass/frag/downsample.js b/src/scene/shader-lib/wgsl/chunks/render-pass/frag/downsample.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/render-pass/frag/downsample.js rename to src/scene/shader-lib/wgsl/chunks/render-pass/frag/downsample.js diff --git a/src/scene/shader-lib/chunks-wgsl/render-pass/frag/sampleCatmullRom.js b/src/scene/shader-lib/wgsl/chunks/render-pass/frag/sampleCatmullRom.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/render-pass/frag/sampleCatmullRom.js rename to src/scene/shader-lib/wgsl/chunks/render-pass/frag/sampleCatmullRom.js diff --git a/src/scene/shader-lib/chunks-wgsl/render-pass/frag/ssao.js b/src/scene/shader-lib/wgsl/chunks/render-pass/frag/ssao.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/render-pass/frag/ssao.js rename to src/scene/shader-lib/wgsl/chunks/render-pass/frag/ssao.js diff --git a/src/scene/shader-lib/chunks-wgsl/render-pass/frag/taaResolve.js b/src/scene/shader-lib/wgsl/chunks/render-pass/frag/taaResolve.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/render-pass/frag/taaResolve.js rename to src/scene/shader-lib/wgsl/chunks/render-pass/frag/taaResolve.js diff --git a/src/scene/shader-lib/chunks-wgsl/render-pass/frag/upsample.js b/src/scene/shader-lib/wgsl/chunks/render-pass/frag/upsample.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/render-pass/frag/upsample.js rename to src/scene/shader-lib/wgsl/chunks/render-pass/frag/upsample.js diff --git a/src/scene/shader-lib/chunks-wgsl/skybox/frag/skybox.js b/src/scene/shader-lib/wgsl/chunks/skybox/frag/skybox.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/skybox/frag/skybox.js rename to src/scene/shader-lib/wgsl/chunks/skybox/frag/skybox.js diff --git a/src/scene/shader-lib/chunks-wgsl/skybox/vert/skybox.js b/src/scene/shader-lib/wgsl/chunks/skybox/vert/skybox.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/skybox/vert/skybox.js rename to src/scene/shader-lib/wgsl/chunks/skybox/vert/skybox.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/alphaTest.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/alphaTest.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/alphaTest.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/alphaTest.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/anisotropy.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/anisotropy.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/anisotropy.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/anisotropy.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/ao.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/ao.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/ao.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/ao.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/clearCoat.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/clearCoat.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/clearCoat.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/clearCoat.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/clearCoatGloss.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/clearCoatGloss.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/clearCoatGloss.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/clearCoatGloss.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/clearCoatNormal.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/clearCoatNormal.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/clearCoatNormal.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/clearCoatNormal.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/detailModes.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/detailModes.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/detailModes.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/detailModes.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/diffuse.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/diffuse.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/diffuse.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/diffuse.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/emissive.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/emissive.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/emissive.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/emissive.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/gloss.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/gloss.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/gloss.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/gloss.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/ior.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/ior.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/ior.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/ior.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/iridescence.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/iridescence.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/iridescence.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/iridescence.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/iridescenceThickness.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/iridescenceThickness.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/iridescenceThickness.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/iridescenceThickness.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/lightmap.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/lightmap.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/lightmap.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/lightmap.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/litShaderArgs.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/litShaderArgs.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/litShaderArgs.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/litShaderArgs.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/litShaderCore.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/litShaderCore.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/litShaderCore.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/litShaderCore.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/metalness.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/metalness.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/metalness.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/metalness.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/normalMap.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/normalMap.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/normalMap.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/normalMap.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/opacity-dither.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/opacity-dither.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/opacity-dither.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/opacity-dither.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/opacity.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/opacity.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/opacity.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/opacity.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/parallax.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/parallax.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/parallax.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/parallax.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/sheen.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/sheen.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/sheen.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/sheen.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/sheenGloss.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/sheenGloss.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/sheenGloss.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/sheenGloss.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/specular.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/specular.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/specular.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/specular.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/specularityFactor.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/specularityFactor.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/specularityFactor.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/specularityFactor.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/stdDeclaration.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/stdDeclaration.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/stdDeclaration.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/stdDeclaration.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/stdFrontEnd.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/stdFrontEnd.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/stdFrontEnd.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/stdFrontEnd.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/thickness.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/thickness.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/thickness.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/thickness.js diff --git a/src/scene/shader-lib/chunks-wgsl/standard/frag/transmission.js b/src/scene/shader-lib/wgsl/chunks/standard/frag/transmission.js similarity index 100% rename from src/scene/shader-lib/chunks-wgsl/standard/frag/transmission.js rename to src/scene/shader-lib/wgsl/chunks/standard/frag/transmission.js diff --git a/src/scene/shader-lib/wgsl/collections/particle-chunks-wgsl.js b/src/scene/shader-lib/wgsl/collections/particle-chunks-wgsl.js new file mode 100644 index 00000000000..55b6102f8c4 --- /dev/null +++ b/src/scene/shader-lib/wgsl/collections/particle-chunks-wgsl.js @@ -0,0 +1,89 @@ +import particlePS from '../chunks/particle/frag/particle.js'; +import particleVS from '../chunks/particle/vert/particle.js'; +import particleAnimFrameClampVS from '../chunks/particle/vert/particleAnimFrameClamp.js'; +import particleAnimFrameLoopVS from '../chunks/particle/vert/particleAnimFrameLoop.js'; +import particleAnimTexVS from '../chunks/particle/vert/particleAnimTex.js'; +import particleInputFloatPS from '../chunks/particle/frag/particleInputFloat.js'; +import particleInputRgba8PS from '../chunks/particle/frag/particleInputRgba8.js'; +import particleOutputFloatPS from '../chunks/particle/frag/particleOutputFloat.js'; +import particleOutputRgba8PS from '../chunks/particle/frag/particleOutputRgba8.js'; +import particleUpdaterAABBPS from '../chunks/particle/frag/particleUpdaterAABB.js'; +import particleUpdaterEndPS from '../chunks/particle/frag/particleUpdaterEnd.js'; +import particleUpdaterInitPS from '../chunks/particle/frag/particleUpdaterInit.js'; +import particleUpdaterNoRespawnPS from '../chunks/particle/frag/particleUpdaterNoRespawn.js'; +import particleUpdaterOnStopPS from '../chunks/particle/frag/particleUpdaterOnStop.js'; +import particleUpdaterRespawnPS from '../chunks/particle/frag/particleUpdaterRespawn.js'; +import particleUpdaterSpherePS from '../chunks/particle/frag/particleUpdaterSphere.js'; +import particleUpdaterStartPS from '../chunks/particle/frag/particleUpdaterStart.js'; +import particle_billboardVS from '../chunks/particle/vert/particle_billboard.js'; +import particle_blendAddPS from '../chunks/particle/frag/particle_blendAdd.js'; +import particle_blendMultiplyPS from '../chunks/particle/frag/particle_blendMultiply.js'; +import particle_blendNormalPS from '../chunks/particle/frag/particle_blendNormal.js'; +import particle_cpuVS from '../chunks/particle/vert/particle_cpu.js'; +import particle_cpu_endVS from '../chunks/particle/vert/particle_cpu_end.js'; +import particle_customFaceVS from '../chunks/particle/vert/particle_customFace.js'; +import particle_endPS from '../chunks/particle/frag/particle_end.js'; +import particle_endVS from '../chunks/particle/vert/particle_end.js'; +import particle_halflambertPS from '../chunks/particle/frag/particle_halflambert.js'; +import particle_initVS from '../chunks/particle/vert/particle_init.js'; +import particle_lambertPS from '../chunks/particle/frag/particle_lambert.js'; +import particle_lightingPS from '../chunks/particle/frag/particle_lighting.js'; +import particle_localShiftVS from '../chunks/particle/vert/particle_localShift.js'; +import particle_meshVS from '../chunks/particle/vert/particle_mesh.js'; +import particle_normalVS from '../chunks/particle/vert/particle_normal.js'; +import particle_normalMapPS from '../chunks/particle/frag/particle_normalMap.js'; +import particle_pointAlongVS from '../chunks/particle/vert/particle_pointAlong.js'; +import particle_simulationPS from '../chunks/particle/frag/particle-simulation.js'; +import particle_shaderPS from '../chunks/particle/frag/particle-shader.js'; +import particle_shaderVS from '../chunks/particle/vert/particle-shader.js'; +import particle_softPS from '../chunks/particle/frag/particle_soft.js'; +import particle_softVS from '../chunks/particle/vert/particle_soft.js'; +import particle_stretchVS from '../chunks/particle/vert/particle_stretch.js'; +import particle_TBNVS from '../chunks/particle/vert/particle_TBN.js'; +import particle_wrapVS from '../chunks/particle/vert/particle_wrap.js'; + +export const particleChunksWGSL = { + particlePS, + particleVS, + particleAnimFrameClampVS, + particleAnimFrameLoopVS, + particleAnimTexVS, + particleInputFloatPS, + particleInputRgba8PS, + particleOutputFloatPS, + particleOutputRgba8PS, + particleUpdaterAABBPS, + particleUpdaterEndPS, + particleUpdaterInitPS, + particleUpdaterNoRespawnPS, + particleUpdaterOnStopPS, + particleUpdaterRespawnPS, + particleUpdaterSpherePS, + particleUpdaterStartPS, + particle_billboardVS, + particle_blendAddPS, + particle_blendMultiplyPS, + particle_blendNormalPS, + particle_cpuVS, + particle_cpu_endVS, + particle_customFaceVS, + particle_endPS, + particle_endVS, + particle_halflambertPS, + particle_initVS, + particle_lambertPS, + particle_lightingPS, + particle_localShiftVS, + particle_meshVS, + particle_normalVS, + particle_normalMapPS, + particle_pointAlongVS, + particle_simulationPS, + particle_shaderPS, + particle_shaderVS, + particle_softPS, + particle_softVS, + particle_stretchVS, + particle_TBNVS, + particle_wrapVS +}; diff --git a/src/scene/shader-lib/wgsl/collections/shader-chunks-wgsl.js b/src/scene/shader-lib/wgsl/collections/shader-chunks-wgsl.js new file mode 100644 index 00000000000..e415d33f2ff --- /dev/null +++ b/src/scene/shader-lib/wgsl/collections/shader-chunks-wgsl.js @@ -0,0 +1,344 @@ +import alphaTestPS from '../chunks/standard/frag/alphaTest.js'; +import ambientPS from '../chunks/lit/frag/ambient.js'; +import anisotropyPS from '../chunks/standard/frag/anisotropy.js'; +import aoPS from '../chunks/standard/frag/ao.js'; +import aoDiffuseOccPS from '../chunks/lit/frag/aoDiffuseOcc.js'; +import aoSpecOccPS from '../chunks/lit/frag/aoSpecOcc.js'; +import bakeDirLmEndPS from '../chunks/lightmapper/frag/bakeDirLmEnd.js'; +import bakeLmEndPS from '../chunks/lightmapper/frag/bakeLmEnd.js'; +import basePS from '../chunks/lit/frag/base.js'; +import baseNineSlicedPS from '../chunks/lit/frag/baseNineSliced.js'; +import baseNineSlicedTiledPS from '../chunks/lit/frag/baseNineSlicedTiled.js'; +import bayerPS from '../chunks/common/frag/bayer.js'; +import blurVSMPS from '../chunks/lit/frag/blurVSM.js'; +import clearCoatPS from '../chunks/standard/frag/clearCoat.js'; +import clearCoatGlossPS from '../chunks/standard/frag/clearCoatGloss.js'; +import clearCoatNormalPS from '../chunks/standard/frag/clearCoatNormal.js'; +import clusteredLightUtilsPS from '../chunks/lit/frag/clusteredLightUtils.js'; +import clusteredLightCookiesPS from '../chunks/lit/frag/clusteredLightCookies.js'; +import clusteredLightShadowsPS from '../chunks/lit/frag/clusteredLightShadows.js'; +import clusteredLightPS from '../chunks/lit/frag/clusteredLight.js'; +import combinePS from '../chunks/lit/frag/combine.js'; +import cookieBlit2DPS from '../chunks/internal/frag/cookie-blit-2d.js'; +import cookieBlitCubePS from '../chunks/internal/frag/cookie-blit-cube.js'; +import cookieBlitVS from '../chunks/internal/vert/cookie-blit.js'; +// import cookiePS from './lit/frag/cookie.js'; +import cubeMapProjectPS from '../chunks/lit/frag/cubeMapProject.js'; +import cubeMapRotatePS from '../chunks/lit/frag/cubeMapRotate.js'; +import debugOutputPS from '../chunks/lit/frag/debug-output.js'; +import debugProcessFrontendPS from '../chunks/lit/frag/debug-process-frontend.js'; +import decodePS from '../chunks/common/frag/decode.js'; +import detailModesPS from '../chunks/standard/frag/detailModes.js'; +import diffusePS from '../chunks/standard/frag/diffuse.js'; +import emissivePS from '../chunks/standard/frag/emissive.js'; +import encodePS from '../chunks/common/frag/encode.js'; +import endPS from '../chunks/lit/frag/end.js'; +import envAtlasPS from '../chunks/common/frag/envAtlas.js'; +import envProcPS from '../chunks/common/frag/envProc.js'; +import falloffInvSquaredPS from '../chunks/lit/frag/falloffInvSquared.js'; +import falloffLinearPS from '../chunks/lit/frag/falloffLinear.js'; +import floatAsUintPS from '../chunks/common/frag/float-as-uint.js'; +import fogPS from '../chunks/common/frag/fog.js'; +import fresnelSchlickPS from '../chunks/lit/frag/fresnelSchlick.js'; +import fullscreenQuadVS from '../chunks/common/vert/fullscreenQuad.js'; +import gammaPS from '../chunks/common/frag/gamma.js'; +import glossPS from '../chunks/standard/frag/gloss.js'; +import gsplatCenterVS from '../chunks/gsplat/vert/gsplatCenter.js'; +import gsplatColorVS from '../chunks/gsplat/vert/gsplatColor.js'; +import gsplatCommonVS from '../chunks/gsplat/vert/gsplatCommon.js'; +import gsplatCompressedDataVS from '../chunks/gsplat/vert/gsplatCompressedData.js'; +import gsplatCompressedSHVS from '../chunks/gsplat/vert/gsplatCompressedSH.js'; +import gsplatCornerVS from '../chunks/gsplat/vert/gsplatCorner.js'; +import gsplatDataVS from '../chunks/gsplat/vert/gsplatData.js'; +import gsplatOutputVS from '../chunks/gsplat/vert/gsplatOutput.js'; +import gsplatPS from '../chunks/gsplat/frag/gsplat.js'; +import gsplatSHVS from '../chunks/gsplat/vert/gsplatSH.js'; +import gsplatSourceVS from '../chunks/gsplat/vert/gsplatSource.js'; +import gsplatVS from '../chunks/gsplat/vert/gsplat.js'; +import quadVS from '../chunks/common/vert/quad.js'; +import immediateLinePS from '../chunks/internal/frag/immediateLine.js'; +import immediateLineVS from '../chunks/internal/vert/immediateLine.js'; +import iridescenceDiffractionPS from '../chunks/lit/frag/iridescenceDiffraction.js'; +import iridescencePS from '../chunks/standard/frag/iridescence.js'; +import iridescenceThicknessPS from '../chunks/standard/frag/iridescenceThickness.js'; +import iorPS from '../chunks/standard/frag/ior.js'; +import lightDeclarationPS from '../chunks/lit/frag/lighting/lightDeclaration.js'; +import lightDiffuseLambertPS from '../chunks/lit/frag/lightDiffuseLambert.js'; +import lightDirPointPS from '../chunks/lit/frag/lightDirPoint.js'; +import lightEvaluationPS from '../chunks/lit/frag/lighting/lightEvaluation.js'; +import lightFunctionLightPS from '../chunks/lit/frag/lighting/lightFunctionLight.js'; +import lightFunctionShadowPS from '../chunks/lit/frag/lighting/lightFunctionShadow.js'; +import lightingPS from '../chunks/lit/frag/lighting/lighting.js'; +import lightmapAddPS from '../chunks/lit/frag/lightmapAdd.js'; +import lightmapPS from '../chunks/standard/frag/lightmap.js'; +import lightSpecularAnisoGGXPS from '../chunks/lit/frag/lightSpecularAnisoGGX.js'; +import lightSpecularBlinnPS from '../chunks/lit/frag/lightSpecularBlinn.js'; +import lightSheenPS from '../chunks/lit/frag/lightSheen.js'; +import linearizeDepthPS from '../chunks/common/frag/linearizeDepth.js'; +import litForwardBackendPS from '../chunks/lit/frag/pass-forward/litForwardBackend.js'; +import litForwardDeclarationPS from '../chunks/lit/frag/pass-forward/litForwardDeclaration.js'; +import litForwardMainPS from '../chunks/lit/frag/pass-forward/litForwardMain.js'; +import litForwardPostCodePS from '../chunks/lit/frag/pass-forward/litForwardPostCode.js'; +import litForwardPreCodePS from '../chunks/lit/frag/pass-forward/litForwardPreCode.js'; +import litMainPS from '../chunks/lit/frag/litMain.js'; +import litMainVS from '../chunks/lit/vert/litMain.js'; +import litOtherMainPS from '../chunks/lit/frag/pass-other/litOtherMain.js'; +import litShaderArgsPS from '../chunks/standard/frag/litShaderArgs.js'; +import litShaderCorePS from '../chunks/standard/frag/litShaderCore.js'; +import litShadowMainPS from '../chunks/lit/frag/pass-shadow/litShadowMain.js'; +import ltcPS from '../chunks/lit/frag/ltc.js'; +import metalnessPS from '../chunks/standard/frag/metalness.js'; +import msdfPS from '../chunks/common/frag/msdf.js'; +import metalnessModulatePS from '../chunks/lit/frag/metalnessModulate.js'; +import morphPS from '../chunks/internal/morph/frag/morph.js'; +import morphVS from '../chunks/internal/morph/vert/morph.js'; +import msdfVS from '../chunks/common/vert/msdf.js'; +import normalVS from '../chunks/lit/vert/normal.js'; +import normalCoreVS from '../chunks/common/vert/normalCore.js'; +import normalMapPS from '../chunks/standard/frag/normalMap.js'; +import opacityPS from '../chunks/standard/frag/opacity.js'; +import opacityDitherPS from '../chunks/standard/frag/opacity-dither.js'; +import outputPS from '../chunks/lit/frag/output.js'; +import outputAlphaPS from '../chunks/lit/frag/outputAlpha.js'; +import outputTex2DPS from '../chunks/common/frag/outputTex2D.js'; +import sheenPS from '../chunks/standard/frag/sheen.js'; +import sheenGlossPS from '../chunks/standard/frag/sheenGloss.js'; +import parallaxPS from '../chunks/standard/frag/parallax.js'; +import pickPS from '../chunks/common/frag/pick.js'; +import reflDirPS from '../chunks/lit/frag/reflDir.js'; +import reflDirAnisoPS from '../chunks/lit/frag/reflDirAniso.js'; +import reflectionCCPS from '../chunks/lit/frag/reflectionCC.js'; +import reflectionCubePS from '../chunks/lit/frag/reflectionCube.js'; +import reflectionEnvHQPS from '../chunks/lit/frag/reflectionEnvHQ.js'; +import reflectionEnvPS from '../chunks/lit/frag/reflectionEnv.js'; +import reflectionSpherePS from '../chunks/lit/frag/reflectionSphere.js'; +import reflectionSheenPS from '../chunks/lit/frag/reflectionSheen.js'; +import refractionCubePS from '../chunks/lit/frag/refractionCube.js'; +import refractionDynamicPS from '../chunks/lit/frag/refractionDynamic.js'; +import reprojectPS from '../chunks/internal/frag/reproject.js'; +import reprojectVS from '../chunks/internal/vert/reproject.js'; +import screenDepthPS from '../chunks/common/frag/screenDepth.js'; +import shadowCascadesPS from '../chunks/lit/frag/lighting/shadowCascades.js'; +import shadowEVSMPS from '../chunks/lit/frag/lighting/shadowEVSM.js'; +import shadowPCF1PS from '../chunks/lit/frag/lighting/shadowPCF1.js'; +import shadowPCF3PS from '../chunks/lit/frag/lighting/shadowPCF3.js'; +import shadowPCF5PS from '../chunks/lit/frag/lighting/shadowPCF5.js'; +// import shadowPCSSPS from './lit/frag/lighting/shadowPCSS.js'; // omni / spot PCSS is not supported on WebGPU currently, as this is only for non-clustered lights +import shadowSoftPS from '../chunks/lit/frag/lighting/shadowSoft.js'; +import skinBatchVS from '../chunks/common/vert/skinBatch.js'; +import skinVS from '../chunks/common/vert/skin.js'; +import skyboxPS from '../chunks/skybox/frag/skybox.js'; +import skyboxVS from '../chunks/skybox/vert/skybox.js'; +import specularPS from '../chunks/standard/frag/specular.js'; +import sphericalPS from '../chunks/common/frag/spherical.js'; +import specularityFactorPS from '../chunks/standard/frag/specularityFactor.js'; +import spotPS from '../chunks/lit/frag/spot.js'; +import startNineSlicedPS from '../chunks/lit/frag/startNineSliced.js'; +import startNineSlicedTiledPS from '../chunks/lit/frag/startNineSlicedTiled.js'; +import stdDeclarationPS from '../chunks/standard/frag/stdDeclaration.js'; +import stdFrontEndPS from '../chunks/standard/frag/stdFrontEnd.js'; +import TBNPS from '../chunks/lit/frag/TBN.js'; +import thicknessPS from '../chunks/standard/frag/thickness.js'; +import tonemappingPS from '../chunks/common/frag/tonemapping/tonemapping.js'; +import tonemappingAcesPS from '../chunks/common/frag/tonemapping/tonemappingAces.js'; +import tonemappingAces2PS from '../chunks/common/frag/tonemapping/tonemappingAces2.js'; +import tonemappingFilmicPS from '../chunks/common/frag/tonemapping/tonemappingFilmic.js'; +import tonemappingHejlPS from '../chunks/common/frag/tonemapping/tonemappingHejl.js'; +import tonemappingLinearPS from '../chunks/common/frag/tonemapping/tonemappingLinear.js'; +import tonemappingNeutralPS from '../chunks/common/frag/tonemapping/tonemappingNeutral.js'; +import tonemappingNonePS from '../chunks/common/frag/tonemapping/tonemappingNone.js'; +import transformVS from '../chunks/common/vert/transform.js'; +import transformCoreVS from '../chunks/common/vert/transformCore.js'; +import transformInstancingVS from '../chunks/common/vert/transformInstancing.js'; +import transmissionPS from '../chunks/standard/frag/transmission.js'; +import twoSidedLightingPS from '../chunks/lit/frag/twoSidedLighting.js'; +import uv0VS from '../chunks/lit/vert/uv0.js'; +import uv1VS from '../chunks/lit/vert/uv1.js'; +import uvTransformVS from '../chunks/lit/vert/uvTransform.js'; +import uvTransformUniformsPS from '../chunks/lit/vert/uvTransformUniforms.js'; +import viewDirPS from '../chunks/lit/frag/viewDir.js'; +import webgpuPS from '../../../../platform/graphics/shader-chunks/frag/webgpu-wgsl.js'; +import webgpuVS from '../../../../platform/graphics/shader-chunks/vert/webgpu-wgsl.js'; + +/** + * Object containing all default WGSL shader chunks used by shader generators. + * + * @type {Record} + * @category Graphics + * @ignore + */ +const shaderChunksWGSL = { + alphaTestPS, + ambientPS, + anisotropyPS, + aoPS, + aoDiffuseOccPS, + aoSpecOccPS, + bakeDirLmEndPS, + bakeLmEndPS, + basePS, + baseNineSlicedPS, + baseNineSlicedTiledPS, + bayerPS, + blurVSMPS, + clearCoatPS, + clearCoatGlossPS, + clearCoatNormalPS, + clusteredLightCookiesPS, + clusteredLightShadowsPS, + clusteredLightUtilsPS, + clusteredLightPS, + combinePS, + cookieBlit2DPS, + cookieBlitCubePS, + cookieBlitVS, + // cookiePS, + cubeMapProjectPS, + cubeMapRotatePS, + debugOutputPS, + debugProcessFrontendPS, + detailModesPS, + diffusePS, + decodePS, + emissivePS, + encodePS, + endPS, + envAtlasPS, + envProcPS, + falloffInvSquaredPS, + falloffLinearPS, + floatAsUintPS, + fogPS, + fresnelSchlickPS, + frontendCodePS: '', // empty chunk, supplied by the shader generator + frontendDeclPS: '', // empty chunk, supplied by the shader generator + fullscreenQuadVS, + gammaPS, + glossPS, + gsplatCenterVS, + gsplatCornerVS, + gsplatColorVS, + gsplatCommonVS, + gsplatCompressedDataVS, + gsplatCompressedSHVS, + gsplatDataVS, + gsplatOutputVS, + gsplatPS, + gsplatSHVS, + gsplatSourceVS, + gsplatVS, + quadVS, + immediateLinePS, + immediateLineVS, + iridescenceDiffractionPS, + iridescencePS, + iridescenceThicknessPS, + iorPS, + lightDeclarationPS, + lightDiffuseLambertPS, + lightDirPointPS, + lightEvaluationPS, + lightFunctionLightPS, + lightFunctionShadowPS, + lightingPS, + lightmapAddPS, + lightmapPS, + lightSpecularAnisoGGXPS, + lightSpecularBlinnPS, + lightSheenPS, + linearizeDepthPS, + litForwardBackendPS, + litForwardDeclarationPS, + litForwardMainPS, + litForwardPostCodePS, + litForwardPreCodePS, + litMainPS, + litMainVS, + litOtherMainPS, + litShaderArgsPS, + litShaderCorePS, + litShadowMainPS, + litUserDeclarationPS: '', // empty chunk allowing user to add custom code + litUserDeclarationVS: '', // empty chunk allowing user to add custom code + litUserCodePS: '', // empty chunk allowing user to add custom code + litUserCodeVS: '', // empty chunk allowing user to add custom code + litUserMainStartPS: '', // empty chunk allowing user to add custom code + litUserMainStartVS: '', // empty chunk allowing user to add custom code + litUserMainEndPS: '', // empty chunk allowing user to add custom code + litUserMainEndVS: '', // empty chunk allowing user to add custom code + ltcPS, + metalnessPS, + metalnessModulatePS, + morphPS, + morphVS, + msdfPS, + msdfVS, + normalVS, + normalCoreVS, + normalMapPS, + opacityPS, + opacityDitherPS, + outputPS, + outputAlphaPS, + outputTex2DPS, + sheenPS, + sheenGlossPS, + parallaxPS, + pickPS, + reflDirPS, + reflDirAnisoPS, + reflectionCCPS, + reflectionCubePS, + reflectionEnvHQPS, + reflectionEnvPS, + reflectionSpherePS, + reflectionSheenPS, + refractionCubePS, + refractionDynamicPS, + reprojectPS, + reprojectVS, + screenDepthPS, + shadowCascadesPS, + shadowEVSMPS, + shadowPCF1PS, + shadowPCF3PS, + shadowPCF5PS, + // shadowPCSSPS, + shadowSoftPS, + skinBatchVS, + skinVS, + skyboxPS, + skyboxVS, + specularPS, + sphericalPS, + specularityFactorPS, + spotPS, + startNineSlicedPS, + startNineSlicedTiledPS, + stdDeclarationPS, + stdFrontEndPS, + TBNPS, + thicknessPS, + tonemappingPS, + tonemappingAcesPS, + tonemappingAces2PS, + tonemappingFilmicPS, + tonemappingHejlPS, + tonemappingLinearPS, + tonemappingNeutralPS, + tonemappingNonePS, + transformVS, + transformCoreVS, + transformInstancingVS, + transmissionPS, + twoSidedLightingPS, + uv0VS, + uv1VS, + uvTransformVS, + uvTransformUniformsPS, + viewDirPS, + webgpuPS, + webgpuVS +}; + +export { shaderChunksWGSL }; From 80f6c899d02467d668f2b696c82aaace5b6924fd Mon Sep 17 00:00:00 2001 From: Martin Valigursky Date: Wed, 21 May 2025 16:22:02 +0100 Subject: [PATCH 2/2] fre more paths fixed --- src/extras/render-passes/render-pass-coc.js | 2 +- src/extras/render-passes/render-pass-compose.js | 2 +- src/extras/render-passes/render-pass-depth-aware-blur.js | 2 +- src/extras/render-passes/render-pass-dof-blur.js | 2 +- src/extras/render-passes/render-pass-downsample.js | 2 +- src/extras/render-passes/render-pass-ssao.js | 2 +- src/extras/render-passes/render-pass-taa.js | 4 ++-- src/extras/render-passes/render-pass-upsample.js | 2 +- src/framework/lightmapper/lightmap-filters.js | 4 ++-- src/scene/shader-lib/glsl/chunks/chunk-validation.js | 2 +- src/scene/shader-lib/programs/lit-shader.js | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/extras/render-passes/render-pass-coc.js b/src/extras/render-passes/render-pass-coc.js index 1156656dca5..4d42d2bb573 100644 --- a/src/extras/render-passes/render-pass-coc.js +++ b/src/extras/render-passes/render-pass-coc.js @@ -2,7 +2,7 @@ import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../ import { PROJECTION_ORTHOGRAPHIC } from '../../scene/constants.js'; import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; -import glslCocPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/coc.js'; +import glslCocPS from '../../scene/shader-lib/glsl/chunks/render-pass/frag/coc.js'; import wgslCocPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/coc.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; diff --git a/src/extras/render-passes/render-pass-compose.js b/src/extras/render-passes/render-pass-compose.js index 746d517ca60..bafed72a04e 100644 --- a/src/extras/render-passes/render-pass-compose.js +++ b/src/extras/render-passes/render-pass-compose.js @@ -5,7 +5,7 @@ import { GAMMA_NONE, GAMMA_SRGB, gammaNames, TONEMAP_LINEAR, tonemapNames } from import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL } from '../../platform/graphics/constants.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; -import glslComposePS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/compose.js'; +import glslComposePS from '../../scene/shader-lib/glsl/chunks/render-pass/frag/compose.js'; /** * Render pass implementation of the final post-processing composition. diff --git a/src/extras/render-passes/render-pass-depth-aware-blur.js b/src/extras/render-passes/render-pass-depth-aware-blur.js index 5a4ec182e00..c63dcb5f58c 100644 --- a/src/extras/render-passes/render-pass-depth-aware-blur.js +++ b/src/extras/render-passes/render-pass-depth-aware-blur.js @@ -1,7 +1,7 @@ import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../../platform/graphics/constants.js'; import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; -import glslDepthAwareBlurPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/depthAwareBlur.js'; +import glslDepthAwareBlurPS from '../../scene/shader-lib/glsl/chunks/render-pass/frag/depthAwareBlur.js'; import wgslDepthAwareBlurPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/depthAwareBlur.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; diff --git a/src/extras/render-passes/render-pass-dof-blur.js b/src/extras/render-passes/render-pass-dof-blur.js index 6dcbdb23d61..b9792e1ef72 100644 --- a/src/extras/render-passes/render-pass-dof-blur.js +++ b/src/extras/render-passes/render-pass-dof-blur.js @@ -1,7 +1,7 @@ import { Kernel } from '../../core/math/kernel.js'; import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../../platform/graphics/constants.js'; import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; -import glsldofBlurPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/dofBlur.js'; +import glsldofBlurPS from '../../scene/shader-lib/glsl/chunks/render-pass/frag/dofBlur.js'; import wgsldofBlurPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/dofBlur.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; diff --git a/src/extras/render-passes/render-pass-downsample.js b/src/extras/render-passes/render-pass-downsample.js index 3497701d539..de143fdabc0 100644 --- a/src/extras/render-passes/render-pass-downsample.js +++ b/src/extras/render-passes/render-pass-downsample.js @@ -1,7 +1,7 @@ import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../../platform/graphics/constants.js'; import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; -import glslDownsamplePS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/downsample.js'; +import glslDownsamplePS from '../../scene/shader-lib/glsl/chunks/render-pass/frag/downsample.js'; import wgslDownsamplePS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/downsample.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; diff --git a/src/extras/render-passes/render-pass-ssao.js b/src/extras/render-passes/render-pass-ssao.js index 76b88970da3..0c3189a3b50 100644 --- a/src/extras/render-passes/render-pass-ssao.js +++ b/src/extras/render-passes/render-pass-ssao.js @@ -10,7 +10,7 @@ import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-qu import { RenderPassDepthAwareBlur } from './render-pass-depth-aware-blur.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; -import glslSsaoPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/ssao.js'; +import glslSsaoPS from '../../scene/shader-lib/glsl/chunks/render-pass/frag/ssao.js'; import wgslSsaoPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/ssao.js'; /** diff --git a/src/extras/render-passes/render-pass-taa.js b/src/extras/render-passes/render-pass-taa.js index 3bb9e2bdc0a..06f695fac7b 100644 --- a/src/extras/render-passes/render-pass-taa.js +++ b/src/extras/render-passes/render-pass-taa.js @@ -10,9 +10,9 @@ import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-qu import { RenderTarget } from '../../platform/graphics/render-target.js'; import { PROJECTION_ORTHOGRAPHIC } from '../../scene/constants.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; -import glslSampleCatmullRomPS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/sampleCatmullRom.js'; +import glslSampleCatmullRomPS from '../../scene/shader-lib/glsl/chunks/render-pass/frag/sampleCatmullRom.js'; import wgslSampleCatmullRomPS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/sampleCatmullRom.js'; -import glsltaaResolvePS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/taaResolve.js'; +import glsltaaResolvePS from '../../scene/shader-lib/glsl/chunks/render-pass/frag/taaResolve.js'; import wgsltaaResolvePS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/taaResolve.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; diff --git a/src/extras/render-passes/render-pass-upsample.js b/src/extras/render-passes/render-pass-upsample.js index a69e2d3b112..efd42f2448f 100644 --- a/src/extras/render-passes/render-pass-upsample.js +++ b/src/extras/render-passes/render-pass-upsample.js @@ -1,7 +1,7 @@ import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../../platform/graphics/constants.js'; import { RenderPassShaderQuad } from '../../scene/graphics/render-pass-shader-quad.js'; import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; -import glslUpsamplePS from '../../scene/shader-lib/chunks-glsl/render-pass/frag/upsample.js'; +import glslUpsamplePS from '../../scene/shader-lib/glsl/chunks/render-pass/frag/upsample.js'; import wgslUpsamplePS from '../../scene/shader-lib/wgsl/chunks/render-pass/frag/upsample.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; diff --git a/src/framework/lightmapper/lightmap-filters.js b/src/framework/lightmapper/lightmap-filters.js index 19abd1a4d5c..7a02af54df4 100644 --- a/src/framework/lightmapper/lightmap-filters.js +++ b/src/framework/lightmapper/lightmap-filters.js @@ -1,7 +1,7 @@ import { ShaderUtils } from '../../scene/shader-lib/shader-utils.js'; import { SEMANTIC_POSITION, SHADERLANGUAGE_GLSL, SHADERLANGUAGE_WGSL } from '../../platform/graphics/constants.js'; -import glslBilateralDeNoisePS from '../../scene/shader-lib/chunks-glsl/lightmapper/frag/bilateralDeNoise.js'; -import glslDilatePS from '../../scene/shader-lib/chunks-glsl/lightmapper/frag/dilate.js'; +import glslBilateralDeNoisePS from '../../scene/shader-lib/glsl/chunks/lightmapper/frag/bilateralDeNoise.js'; +import glslDilatePS from '../../scene/shader-lib/glsl/chunks/lightmapper/frag/dilate.js'; import wgslBilateralDeNoisePS from '../../scene/shader-lib/wgsl/chunks/lightmapper/frag/bilateralDeNoise.js'; import wgslDilatePS from '../../scene/shader-lib/wgsl/chunks/lightmapper/frag/dilate.js'; import { ShaderChunks } from '../../scene/shader-lib/shader-chunks.js'; diff --git a/src/scene/shader-lib/glsl/chunks/chunk-validation.js b/src/scene/shader-lib/glsl/chunks/chunk-validation.js index 86681496a9e..add333d9ff1 100644 --- a/src/scene/shader-lib/glsl/chunks/chunk-validation.js +++ b/src/scene/shader-lib/glsl/chunks/chunk-validation.js @@ -1,4 +1,4 @@ -import { Debug } from '../../../core/debug.js'; +import { Debug } from '../../../../core/debug.js'; const chunkVersions = { // frontend diff --git a/src/scene/shader-lib/programs/lit-shader.js b/src/scene/shader-lib/programs/lit-shader.js index 2d67bef6958..e2be993dae0 100644 --- a/src/scene/shader-lib/programs/lit-shader.js +++ b/src/scene/shader-lib/programs/lit-shader.js @@ -16,7 +16,7 @@ import { } from '../../constants.js'; import { ChunkUtils } from '../chunk-utils.js'; import { ShaderPass } from '../../shader-pass.js'; -import { validateUserChunks } from '../chunks-glsl/chunk-validation.js'; +import { validateUserChunks } from '../glsl/chunks/chunk-validation.js'; import { Debug } from '../../../core/debug.js'; import { ShaderChunks } from '../shader-chunks.js';