@aura3d/rendering 3.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BlendModes.d.ts +34 -0
- package/dist/BlendModes.d.ts.map +1 -0
- package/dist/BlendModes.js +42 -0
- package/dist/BlendModes.js.map +1 -0
- package/dist/DepthPass.d.ts +18 -0
- package/dist/DepthPass.d.ts.map +1 -1
- package/dist/DepthPass.js +103 -20
- package/dist/DepthPass.js.map +1 -1
- package/dist/EnvironmentBackgroundPass.d.ts +7 -0
- package/dist/EnvironmentBackgroundPass.d.ts.map +1 -1
- package/dist/EnvironmentBackgroundPass.js +39 -14
- package/dist/EnvironmentBackgroundPass.js.map +1 -1
- package/dist/EnvironmentMapResources.d.ts +1 -1
- package/dist/EnvironmentMapResources.d.ts.map +1 -1
- package/dist/EnvironmentMapResources.js +19 -8
- package/dist/EnvironmentMapResources.js.map +1 -1
- package/dist/EnvironmentPlatform.d.ts +6 -0
- package/dist/EnvironmentPlatform.d.ts.map +1 -1
- package/dist/EnvironmentPlatform.js +3 -1
- package/dist/EnvironmentPlatform.js.map +1 -1
- package/dist/EnvironmentPreset.d.ts +7 -0
- package/dist/EnvironmentPreset.d.ts.map +1 -1
- package/dist/EnvironmentPreset.js +11 -11
- package/dist/EnvironmentPreset.js.map +1 -1
- package/dist/EnvironmentPresetPack.d.ts +16 -0
- package/dist/EnvironmentPresetPack.d.ts.map +1 -1
- package/dist/EnvironmentPresetPack.js +28 -0
- package/dist/EnvironmentPresetPack.js.map +1 -1
- package/dist/ExternalParityRenderPreset.d.ts +15 -1
- package/dist/ExternalParityRenderPreset.d.ts.map +1 -1
- package/dist/ExternalParityRenderPreset.js +52 -7
- package/dist/ExternalParityRenderPreset.js.map +1 -1
- package/dist/ForwardPass.d.ts +240 -50
- package/dist/ForwardPass.d.ts.map +1 -1
- package/dist/ForwardPass.js +845 -866
- package/dist/ForwardPass.js.map +1 -1
- package/dist/Geometry.d.ts +44 -1
- package/dist/Geometry.d.ts.map +1 -1
- package/dist/Geometry.js +174 -24
- package/dist/Geometry.js.map +1 -1
- package/dist/InstancedPBRMaterial.d.ts +5 -0
- package/dist/InstancedPBRMaterial.d.ts.map +1 -1
- package/dist/InstancedPBRMaterial.js +7 -0
- package/dist/InstancedPBRMaterial.js.map +1 -1
- package/dist/LightCollector.d.ts +8 -0
- package/dist/LightCollector.d.ts.map +1 -1
- package/dist/LightCollector.js +1 -1
- package/dist/LightCollector.js.map +1 -1
- package/dist/LightUniforms.d.ts +78 -0
- package/dist/LightUniforms.d.ts.map +1 -1
- package/dist/LightUniforms.js +100 -0
- package/dist/LightUniforms.js.map +1 -1
- package/dist/Material.d.ts +15 -0
- package/dist/Material.d.ts.map +1 -1
- package/dist/Material.js +19 -2
- package/dist/Material.js.map +1 -1
- package/dist/MaterialBinding.d.ts +10 -0
- package/dist/MaterialBinding.d.ts.map +1 -1
- package/dist/MaterialBinding.js +91 -1
- package/dist/MaterialBinding.js.map +1 -1
- package/dist/MaterialPresets.d.ts +60 -0
- package/dist/MaterialPresets.d.ts.map +1 -1
- package/dist/MaterialPresets.js +212 -0
- package/dist/MaterialPresets.js.map +1 -1
- package/dist/NormalMappedPBRMaterial.d.ts +5 -0
- package/dist/NormalMappedPBRMaterial.d.ts.map +1 -1
- package/dist/NormalMappedPBRMaterial.js +7 -0
- package/dist/NormalMappedPBRMaterial.js.map +1 -1
- package/dist/OceanSurface.d.ts +8 -0
- package/dist/OceanSurface.d.ts.map +1 -1
- package/dist/OceanSurface.js +10 -79
- package/dist/OceanSurface.js.map +1 -1
- package/dist/PBRLightingDefaults.d.ts +8 -0
- package/dist/PBRLightingDefaults.d.ts.map +1 -1
- package/dist/PBRLightingDefaults.js +8 -0
- package/dist/PBRLightingDefaults.js.map +1 -1
- package/dist/PBRMaterial.d.ts +5 -0
- package/dist/PBRMaterial.d.ts.map +1 -1
- package/dist/PBRMaterial.js +7 -0
- package/dist/PBRMaterial.js.map +1 -1
- package/dist/PostProcessPass.d.ts +6 -490
- package/dist/PostProcessPass.d.ts.map +1 -1
- package/dist/PostProcessPass.js +6 -2016
- package/dist/PostProcessPass.js.map +1 -1
- package/dist/ProceduralMaterialTextures.d.ts +28 -0
- package/dist/ProceduralMaterialTextures.d.ts.map +1 -0
- package/dist/ProceduralMaterialTextures.js +217 -0
- package/dist/ProceduralMaterialTextures.js.map +1 -0
- package/dist/ReflectionProbe.d.ts.map +1 -1
- package/dist/ReflectionProbe.js +4 -1
- package/dist/ReflectionProbe.js.map +1 -1
- package/dist/RenderBackend.d.ts +2 -0
- package/dist/RenderBackend.d.ts.map +1 -1
- package/dist/RenderBackend.js +3 -0
- package/dist/RenderBackend.js.map +1 -1
- package/dist/RenderDevice.d.ts +92 -5
- package/dist/RenderDevice.d.ts.map +1 -1
- package/dist/RenderDevice.js +166 -9
- package/dist/RenderDevice.js.map +1 -1
- package/dist/RenderGraph.d.ts.map +1 -1
- package/dist/RenderGraph.js +17 -0
- package/dist/RenderGraph.js.map +1 -1
- package/dist/RenderPass.d.ts +7 -0
- package/dist/RenderPass.d.ts.map +1 -1
- package/dist/RenderPass.js.map +1 -1
- package/dist/RenderPipeline.d.ts +5 -0
- package/dist/RenderPipeline.d.ts.map +1 -1
- package/dist/RenderPipeline.js +6 -0
- package/dist/RenderPipeline.js.map +1 -1
- package/dist/Renderer.d.ts +261 -66
- package/dist/Renderer.d.ts.map +1 -1
- package/dist/Renderer.js +902 -1256
- package/dist/Renderer.js.map +1 -1
- package/dist/RendererPostprocessPlan.d.ts +4 -0
- package/dist/RendererPostprocessPlan.d.ts.map +1 -1
- package/dist/RendererPostprocessPlan.js +16 -2
- package/dist/RendererPostprocessPlan.js.map +1 -1
- package/dist/RendererTiming.d.ts +27 -0
- package/dist/RendererTiming.d.ts.map +1 -1
- package/dist/RendererTiming.js +179 -12
- package/dist/RendererTiming.js.map +1 -1
- package/dist/ResolutionGovernor.d.ts +56 -0
- package/dist/ResolutionGovernor.d.ts.map +1 -0
- package/dist/ResolutionGovernor.js +87 -0
- package/dist/ResolutionGovernor.js.map +1 -0
- package/dist/Sampler.d.ts +34 -1
- package/dist/Sampler.d.ts.map +1 -1
- package/dist/Sampler.js +55 -2
- package/dist/Sampler.js.map +1 -1
- package/dist/ShaderLibrary.d.ts.map +1 -1
- package/dist/ShaderLibrary.js +15 -10
- package/dist/ShaderLibrary.js.map +1 -1
- package/dist/ShaderLibraryCore.d.ts.map +1 -1
- package/dist/ShaderLibraryCore.js +3 -2
- package/dist/ShaderLibraryCore.js.map +1 -1
- package/dist/ShaderModule.d.ts +7 -1
- package/dist/ShaderModule.d.ts.map +1 -1
- package/dist/ShaderModule.js +20 -5
- package/dist/ShaderModule.js.map +1 -1
- package/dist/ShadowPass.d.ts.map +1 -1
- package/dist/ShadowPass.js +14 -7
- package/dist/ShadowPass.js.map +1 -1
- package/dist/SkinnedLitMaterial.d.ts +5 -0
- package/dist/SkinnedLitMaterial.d.ts.map +1 -1
- package/dist/SkinnedLitMaterial.js +13 -0
- package/dist/SkinnedLitMaterial.js.map +1 -1
- package/dist/SkinningBounds.d.ts +18 -0
- package/dist/SkinningBounds.d.ts.map +1 -1
- package/dist/SkinningBounds.js +78 -0
- package/dist/SkinningBounds.js.map +1 -1
- package/dist/SkinningPaletteTextureCache.d.ts +117 -0
- package/dist/SkinningPaletteTextureCache.d.ts.map +1 -0
- package/dist/SkinningPaletteTextureCache.js +205 -0
- package/dist/SkinningPaletteTextureCache.js.map +1 -0
- package/dist/SkinningUniforms.d.ts +56 -0
- package/dist/SkinningUniforms.d.ts.map +1 -0
- package/dist/SkinningUniforms.js +262 -0
- package/dist/SkinningUniforms.js.map +1 -0
- package/dist/TemporalHistory.d.ts +33 -0
- package/dist/TemporalHistory.d.ts.map +1 -1
- package/dist/TemporalHistory.js +84 -1
- package/dist/TemporalHistory.js.map +1 -1
- package/dist/TerrainHeightfield.d.ts +12 -0
- package/dist/TerrainHeightfield.d.ts.map +1 -1
- package/dist/TerrainHeightfield.js +29 -6
- package/dist/TerrainHeightfield.js.map +1 -1
- package/dist/TerrainTiles.d.ts +40 -10
- package/dist/TerrainTiles.d.ts.map +1 -1
- package/dist/TerrainTiles.js +18 -57
- package/dist/TerrainTiles.js.map +1 -1
- package/dist/Texture.d.ts +47 -2
- package/dist/Texture.d.ts.map +1 -1
- package/dist/Texture.js +119 -3
- package/dist/Texture.js.map +1 -1
- package/dist/TexturedPBRMaterial.d.ts +24 -0
- package/dist/TexturedPBRMaterial.d.ts.map +1 -1
- package/dist/TexturedPBRMaterial.js +72 -20
- package/dist/TexturedPBRMaterial.js.map +1 -1
- package/dist/TransmissionRenderTarget.d.ts +33 -0
- package/dist/TransmissionRenderTarget.d.ts.map +1 -0
- package/dist/TransmissionRenderTarget.js +61 -0
- package/dist/TransmissionRenderTarget.js.map +1 -0
- package/dist/VegetationScatter.js +1 -1
- package/dist/VegetationScatter.js.map +1 -1
- package/dist/VolumetricFog.d.ts +42 -0
- package/dist/VolumetricFog.d.ts.map +1 -1
- package/dist/VolumetricFog.js +52 -1
- package/dist/VolumetricFog.js.map +1 -1
- package/dist/WaterSurface.d.ts +5 -0
- package/dist/WaterSurface.d.ts.map +1 -1
- package/dist/WaterSurface.js +5 -0
- package/dist/WaterSurface.js.map +1 -1
- package/dist/WebGL2Device.d.ts +154 -207
- package/dist/WebGL2Device.d.ts.map +1 -1
- package/dist/WebGL2Device.js +831 -3703
- package/dist/WebGL2Device.js.map +1 -1
- package/dist/WebGL2StateCache.d.ts +15 -1
- package/dist/WebGL2StateCache.d.ts.map +1 -1
- package/dist/WebGL2StateCache.js +31 -2
- package/dist/WebGL2StateCache.js.map +1 -1
- package/dist/WebGPUDevice.d.ts +0 -4
- package/dist/WebGPUDevice.d.ts.map +1 -1
- package/dist/WebGPUDevice.js +31 -605
- package/dist/WebGPUDevice.js.map +1 -1
- package/dist/WebGPUSkinningLimits.d.ts +10 -1
- package/dist/WebGPUSkinningLimits.d.ts.map +1 -1
- package/dist/WebGPUSkinningLimits.js +15 -1
- package/dist/WebGPUSkinningLimits.js.map +1 -1
- package/dist/advanced-runtime/index.d.ts +6 -2
- package/dist/advanced-runtime/index.d.ts.map +1 -1
- package/dist/advanced-runtime/index.js +0 -1
- package/dist/advanced-runtime/index.js.map +1 -1
- package/dist/animation/AnimationRenderPreset.d.ts +1 -1
- package/dist/animation/AnimationRenderPreset.d.ts.map +1 -1
- package/dist/animation/AnimationRenderPreset.js +1 -1
- package/dist/animation/AnimationRenderPreset.js.map +1 -1
- package/dist/animation/applyAnimationRenderPreset.d.ts +1 -1
- package/dist/animation/applyAnimationRenderPreset.d.ts.map +1 -1
- package/dist/animation/index.d.ts +2 -1
- package/dist/animation/index.d.ts.map +1 -1
- package/dist/animation/index.js +1 -1
- package/dist/animation/index.js.map +1 -1
- package/dist/atmosphere/CloudLayer.d.ts +24 -0
- package/dist/atmosphere/CloudLayer.d.ts.map +1 -0
- package/dist/atmosphere/CloudLayer.js +30 -0
- package/dist/atmosphere/CloudLayer.js.map +1 -0
- package/dist/atmosphere/FogVolumes.d.ts +30 -0
- package/dist/atmosphere/FogVolumes.d.ts.map +1 -0
- package/dist/atmosphere/FogVolumes.js +96 -0
- package/dist/atmosphere/FogVolumes.js.map +1 -0
- package/dist/atmosphere/GradientSky.d.ts +40 -0
- package/dist/atmosphere/GradientSky.d.ts.map +1 -0
- package/dist/atmosphere/GradientSky.js +75 -0
- package/dist/atmosphere/GradientSky.js.map +1 -0
- package/dist/atmosphere/HeightFog.d.ts +154 -0
- package/dist/atmosphere/HeightFog.d.ts.map +1 -0
- package/dist/atmosphere/HeightFog.js +379 -0
- package/dist/atmosphere/HeightFog.js.map +1 -0
- package/dist/atmosphere/PreethamSky.d.ts +38 -0
- package/dist/atmosphere/PreethamSky.d.ts.map +1 -0
- package/dist/atmosphere/PreethamSky.js +150 -0
- package/dist/atmosphere/PreethamSky.js.map +1 -0
- package/dist/atmosphere/SkyBackgroundPass.d.ts +63 -0
- package/dist/atmosphere/SkyBackgroundPass.d.ts.map +1 -0
- package/dist/atmosphere/SkyBackgroundPass.js +233 -0
- package/dist/atmosphere/SkyBackgroundPass.js.map +1 -0
- package/dist/atmosphere/SkyCaptureAdapter.d.ts +45 -0
- package/dist/atmosphere/SkyCaptureAdapter.d.ts.map +1 -0
- package/dist/atmosphere/SkyCaptureAdapter.js +65 -0
- package/dist/atmosphere/SkyCaptureAdapter.js.map +1 -0
- package/dist/atmosphere/SkyEval.d.ts +56 -0
- package/dist/atmosphere/SkyEval.d.ts.map +1 -0
- package/dist/atmosphere/SkyEval.js +99 -0
- package/dist/atmosphere/SkyEval.js.map +1 -0
- package/dist/atmosphere/StarField.d.ts +26 -0
- package/dist/atmosphere/StarField.d.ts.map +1 -0
- package/dist/atmosphere/StarField.js +31 -0
- package/dist/atmosphere/StarField.js.map +1 -0
- package/dist/atmosphere/VolumetricFogPass.d.ts +69 -0
- package/dist/atmosphere/VolumetricFogPass.d.ts.map +1 -0
- package/dist/atmosphere/VolumetricFogPass.js +265 -0
- package/dist/atmosphere/VolumetricFogPass.js.map +1 -0
- package/dist/atmosphere/fogChunks.d.ts +8 -0
- package/dist/atmosphere/fogChunks.d.ts.map +1 -0
- package/dist/atmosphere/fogChunks.js +39 -0
- package/dist/atmosphere/fogChunks.js.map +1 -0
- package/dist/atmosphere/fogUniformStore.d.ts +20 -0
- package/dist/atmosphere/fogUniformStore.d.ts.map +1 -0
- package/dist/atmosphere/fogUniformStore.js +45 -0
- package/dist/atmosphere/fogUniformStore.js.map +1 -0
- package/dist/atmosphere/shaders/fog.glsl.d.ts +10 -0
- package/dist/atmosphere/shaders/fog.glsl.d.ts.map +1 -0
- package/dist/atmosphere/shaders/fog.glsl.js +161 -0
- package/dist/atmosphere/shaders/fog.glsl.js.map +1 -0
- package/dist/atmosphere/shaders/volumetric-apply.glsl.d.ts +3 -0
- package/dist/atmosphere/shaders/volumetric-apply.glsl.d.ts.map +1 -0
- package/dist/atmosphere/shaders/volumetric-apply.glsl.js +61 -0
- package/dist/atmosphere/shaders/volumetric-apply.glsl.js.map +1 -0
- package/dist/atmosphere/shaders/volumetric-inject.glsl.d.ts +4 -0
- package/dist/atmosphere/shaders/volumetric-inject.glsl.d.ts.map +1 -0
- package/dist/atmosphere/shaders/volumetric-inject.glsl.js +129 -0
- package/dist/atmosphere/shaders/volumetric-inject.glsl.js.map +1 -0
- package/dist/atmosphere/shaders/volumetric-integrate.glsl.d.ts +3 -0
- package/dist/atmosphere/shaders/volumetric-integrate.glsl.d.ts.map +1 -0
- package/dist/atmosphere/shaders/volumetric-integrate.glsl.js +55 -0
- package/dist/atmosphere/shaders/volumetric-integrate.glsl.js.map +1 -0
- package/dist/atmosphere/shaders/wetness.glsl.d.ts +34 -0
- package/dist/atmosphere/shaders/wetness.glsl.d.ts.map +1 -0
- package/dist/atmosphere/shaders/wetness.glsl.js +101 -0
- package/dist/atmosphere/shaders/wetness.glsl.js.map +1 -0
- package/dist/atmosphere/sky.glsl.d.ts +8 -0
- package/dist/atmosphere/sky.glsl.d.ts.map +1 -0
- package/dist/atmosphere/sky.glsl.js +249 -0
- package/dist/atmosphere/sky.glsl.js.map +1 -0
- package/dist/batching/BatchedGeometryPool.d.ts +72 -0
- package/dist/batching/BatchedGeometryPool.d.ts.map +1 -0
- package/dist/batching/BatchedGeometryPool.js +138 -0
- package/dist/batching/BatchedGeometryPool.js.map +1 -0
- package/dist/batching/ContentKeys.d.ts +29 -0
- package/dist/batching/ContentKeys.d.ts.map +1 -0
- package/dist/batching/ContentKeys.js +220 -0
- package/dist/batching/ContentKeys.js.map +1 -0
- package/dist/batching/DrawDataTexture.d.ts +51 -0
- package/dist/batching/DrawDataTexture.d.ts.map +1 -0
- package/dist/batching/DrawDataTexture.js +99 -0
- package/dist/batching/DrawDataTexture.js.map +1 -0
- package/dist/batching/MultiDrawBatch.d.ts +64 -0
- package/dist/batching/MultiDrawBatch.d.ts.map +1 -0
- package/dist/batching/MultiDrawBatch.js +103 -0
- package/dist/batching/MultiDrawBatch.js.map +1 -0
- package/dist/batching/StaticMergePlanner.d.ts +80 -0
- package/dist/batching/StaticMergePlanner.d.ts.map +1 -0
- package/dist/batching/StaticMergePlanner.js +323 -0
- package/dist/batching/StaticMergePlanner.js.map +1 -0
- package/dist/batching/index.d.ts +8 -0
- package/dist/batching/index.d.ts.map +1 -0
- package/dist/batching/index.js +8 -0
- package/dist/batching/index.js.map +1 -0
- package/dist/batching/shaders/drawId.glsl.d.ts +29 -0
- package/dist/batching/shaders/drawId.glsl.d.ts.map +1 -0
- package/dist/batching/shaders/drawId.glsl.js +93 -0
- package/dist/batching/shaders/drawId.glsl.js.map +1 -0
- package/dist/batching/shaders/instanceEmissive.glsl.d.ts +16 -0
- package/dist/batching/shaders/instanceEmissive.glsl.d.ts.map +1 -0
- package/dist/batching/shaders/instanceEmissive.glsl.js +63 -0
- package/dist/batching/shaders/instanceEmissive.glsl.js.map +1 -0
- package/dist/cinematic/BloomPass.d.ts +5 -9
- package/dist/cinematic/BloomPass.d.ts.map +1 -1
- package/dist/cinematic/BloomPass.js +5 -17
- package/dist/cinematic/BloomPass.js.map +1 -1
- package/dist/cinematic/DepthHazePass.d.ts +5 -11
- package/dist/cinematic/DepthHazePass.d.ts.map +1 -1
- package/dist/cinematic/DepthHazePass.js +5 -19
- package/dist/cinematic/DepthHazePass.js.map +1 -1
- package/dist/cinematic/FilmGrainPass.d.ts +5 -8
- package/dist/cinematic/FilmGrainPass.d.ts.map +1 -1
- package/dist/cinematic/FilmGrainPass.js +5 -16
- package/dist/cinematic/FilmGrainPass.js.map +1 -1
- package/dist/cinematic/VignettePass.d.ts +5 -9
- package/dist/cinematic/VignettePass.d.ts.map +1 -1
- package/dist/cinematic/VignettePass.js +5 -16
- package/dist/cinematic/VignettePass.js.map +1 -1
- package/dist/cinematic/index.d.ts +2 -1
- package/dist/cinematic/index.d.ts.map +1 -1
- package/dist/cinematic/index.js +1 -1
- package/dist/cinematic/index.js.map +1 -1
- package/dist/contracts/atmosphere.d.ts +30 -0
- package/dist/contracts/atmosphere.d.ts.map +1 -0
- package/dist/contracts/atmosphere.js +42 -0
- package/dist/contracts/atmosphere.js.map +1 -0
- package/dist/contracts/blend.d.ts +28 -0
- package/dist/contracts/blend.d.ts.map +1 -0
- package/dist/contracts/blend.js +73 -0
- package/dist/contracts/blend.js.map +1 -0
- package/dist/contracts/core.d.ts +47 -0
- package/dist/contracts/core.d.ts.map +1 -0
- package/dist/contracts/core.js +70 -0
- package/dist/contracts/core.js.map +1 -0
- package/dist/contracts/deform.d.ts +38 -0
- package/dist/contracts/deform.d.ts.map +1 -0
- package/dist/contracts/deform.js +14 -0
- package/dist/contracts/deform.js.map +1 -0
- package/dist/contracts/device.d.ts +71 -0
- package/dist/contracts/device.d.ts.map +1 -0
- package/dist/contracts/device.js +97 -0
- package/dist/contracts/device.js.map +1 -0
- package/dist/contracts/environment.d.ts +55 -0
- package/dist/contracts/environment.d.ts.map +1 -0
- package/dist/contracts/environment.js +115 -0
- package/dist/contracts/environment.js.map +1 -0
- package/dist/contracts/flags.state.d.ts +15 -0
- package/dist/contracts/flags.state.d.ts.map +1 -0
- package/dist/contracts/flags.state.js +45 -0
- package/dist/contracts/flags.state.js.map +1 -0
- package/dist/contracts/frameGraph.d.ts +78 -0
- package/dist/contracts/frameGraph.d.ts.map +1 -0
- package/dist/contracts/frameGraph.js +32 -0
- package/dist/contracts/frameGraph.js.map +1 -0
- package/dist/contracts/frameUniforms.d.ts +43 -0
- package/dist/contracts/frameUniforms.d.ts.map +1 -0
- package/dist/contracts/frameUniforms.js +35 -0
- package/dist/contracts/frameUniforms.js.map +1 -0
- package/dist/contracts/geometry.d.ts +33 -0
- package/dist/contracts/geometry.d.ts.map +1 -0
- package/dist/contracts/geometry.js +59 -0
- package/dist/contracts/geometry.js.map +1 -0
- package/dist/contracts/index.d.ts +27 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +27 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/contracts/materialLobes.d.ts +41 -0
- package/dist/contracts/materialLobes.d.ts.map +1 -0
- package/dist/contracts/materialLobes.js +14 -0
- package/dist/contracts/materialLobes.js.map +1 -0
- package/dist/contracts/output.d.ts +35 -0
- package/dist/contracts/output.d.ts.map +1 -0
- package/dist/contracts/output.js +18 -0
- package/dist/contracts/output.js.map +1 -0
- package/dist/contracts/particles.d.ts +41 -0
- package/dist/contracts/particles.d.ts.map +1 -0
- package/dist/contracts/particles.js +15 -0
- package/dist/contracts/particles.js.map +1 -0
- package/dist/contracts/post.d.ts +71 -0
- package/dist/contracts/post.d.ts.map +1 -0
- package/dist/contracts/post.js +28 -0
- package/dist/contracts/post.js.map +1 -0
- package/dist/contracts/program.d.ts +158 -0
- package/dist/contracts/program.d.ts.map +1 -0
- package/dist/contracts/program.js +128 -0
- package/dist/contracts/program.js.map +1 -0
- package/dist/contracts/quality.d.ts +93 -0
- package/dist/contracts/quality.d.ts.map +1 -0
- package/dist/contracts/quality.js +149 -0
- package/dist/contracts/quality.js.map +1 -0
- package/dist/contracts/renderItem.d.ts +58 -0
- package/dist/contracts/renderItem.d.ts.map +1 -0
- package/dist/contracts/renderItem.js +8 -0
- package/dist/contracts/renderItem.js.map +1 -0
- package/dist/contracts/renderSource.d.ts +63 -0
- package/dist/contracts/renderSource.d.ts.map +1 -0
- package/dist/contracts/renderSource.js +7 -0
- package/dist/contracts/renderSource.js.map +1 -0
- package/dist/contracts/rendererFactory.d.ts +42 -0
- package/dist/contracts/rendererFactory.d.ts.map +1 -0
- package/dist/contracts/rendererFactory.js +32 -0
- package/dist/contracts/rendererFactory.js.map +1 -0
- package/dist/contracts/sampling.d.ts +23 -0
- package/dist/contracts/sampling.d.ts.map +1 -0
- package/dist/contracts/sampling.js +17 -0
- package/dist/contracts/sampling.js.map +1 -0
- package/dist/contracts/shadows.d.ts +53 -0
- package/dist/contracts/shadows.d.ts.map +1 -0
- package/dist/contracts/shadows.js +66 -0
- package/dist/contracts/shadows.js.map +1 -0
- package/dist/contracts/testing/ChunkHarness.d.ts +18 -0
- package/dist/contracts/testing/ChunkHarness.d.ts.map +1 -0
- package/dist/contracts/testing/ChunkHarness.js +68 -0
- package/dist/contracts/testing/ChunkHarness.js.map +1 -0
- package/dist/contracts/textureFormats.d.ts +18 -0
- package/dist/contracts/textureFormats.d.ts.map +1 -0
- package/dist/contracts/textureFormats.js +13 -0
- package/dist/contracts/textureFormats.js.map +1 -0
- package/dist/contracts/velocity.d.ts +37 -0
- package/dist/contracts/velocity.d.ts.map +1 -0
- package/dist/contracts/velocity.js +22 -0
- package/dist/contracts/velocity.js.map +1 -0
- package/dist/effects/ResidentGPUParticleRenderer.d.ts.map +1 -1
- package/dist/effects/ResidentGPUParticleRenderer.js +10 -5
- package/dist/effects/ResidentGPUParticleRenderer.js.map +1 -1
- package/dist/environment/EnvUniforms.d.ts +42 -0
- package/dist/environment/EnvUniforms.d.ts.map +1 -0
- package/dist/environment/EnvUniforms.js +54 -0
- package/dist/environment/EnvUniforms.js.map +1 -0
- package/dist/environment/EnvironmentCache.d.ts +83 -0
- package/dist/environment/EnvironmentCache.d.ts.map +1 -0
- package/dist/environment/EnvironmentCache.js +205 -0
- package/dist/environment/EnvironmentCache.js.map +1 -0
- package/dist/environment/EnvironmentProbeFactory.d.ts +41 -0
- package/dist/environment/EnvironmentProbeFactory.d.ts.map +1 -0
- package/dist/environment/EnvironmentProbeFactory.js +52 -0
- package/dist/environment/EnvironmentProbeFactory.js.map +1 -0
- package/dist/environment/GPUPMREMGenerator.d.ts +44 -0
- package/dist/environment/GPUPMREMGenerator.d.ts.map +1 -0
- package/dist/environment/GPUPMREMGenerator.js +98 -0
- package/dist/environment/GPUPMREMGenerator.js.map +1 -0
- package/dist/environment/HdrEquirect.d.ts +28 -0
- package/dist/environment/HdrEquirect.d.ts.map +1 -0
- package/dist/environment/HdrEquirect.js +205 -0
- package/dist/environment/HdrEquirect.js.map +1 -0
- package/dist/environment/LightingSamplerBudget.d.ts +20 -0
- package/dist/environment/LightingSamplerBudget.d.ts.map +1 -0
- package/dist/environment/LightingSamplerBudget.js +94 -0
- package/dist/environment/LightingSamplerBudget.js.map +1 -0
- package/dist/environment/Prd02BackgroundShaderLibrary.d.ts +10 -0
- package/dist/environment/Prd02BackgroundShaderLibrary.d.ts.map +1 -0
- package/dist/environment/Prd02BackgroundShaderLibrary.js +100 -0
- package/dist/environment/Prd02BackgroundShaderLibrary.js.map +1 -0
- package/dist/environment/Rgb9e5Cube.d.ts +25 -0
- package/dist/environment/Rgb9e5Cube.d.ts.map +1 -0
- package/dist/environment/Rgb9e5Cube.js +103 -0
- package/dist/environment/Rgb9e5Cube.js.map +1 -0
- package/dist/environment/RoomEnvironmentScene.d.ts +57 -0
- package/dist/environment/RoomEnvironmentScene.d.ts.map +1 -0
- package/dist/environment/RoomEnvironmentScene.js +165 -0
- package/dist/environment/RoomEnvironmentScene.js.map +1 -0
- package/dist/environment/SphericalHarmonics.d.ts +32 -0
- package/dist/environment/SphericalHarmonics.d.ts.map +1 -0
- package/dist/environment/SphericalHarmonics.js +155 -0
- package/dist/environment/SphericalHarmonics.js.map +1 -0
- package/dist/environment/probeBuild.d.ts +97 -0
- package/dist/environment/probeBuild.d.ts.map +1 -0
- package/dist/environment/probeBuild.js +406 -0
- package/dist/environment/probeBuild.js.map +1 -0
- package/dist/environment/workers/cpuPrefilter.d.ts +58 -0
- package/dist/environment/workers/cpuPrefilter.d.ts.map +1 -0
- package/dist/environment/workers/cpuPrefilter.js +288 -0
- package/dist/environment/workers/cpuPrefilter.js.map +1 -0
- package/dist/forward/Deform.d.ts +56 -0
- package/dist/forward/Deform.d.ts.map +1 -0
- package/dist/forward/Deform.js +517 -0
- package/dist/forward/Deform.js.map +1 -0
- package/dist/forward/DrawSubmit.d.ts +32 -0
- package/dist/forward/DrawSubmit.d.ts.map +1 -0
- package/dist/forward/DrawSubmit.js +75 -0
- package/dist/forward/DrawSubmit.js.map +1 -0
- package/dist/forward/Lighting.d.ts +35 -0
- package/dist/forward/Lighting.d.ts.map +1 -0
- package/dist/forward/Lighting.js +477 -0
- package/dist/forward/Lighting.js.map +1 -0
- package/dist/forward/Transmission.d.ts +62 -0
- package/dist/forward/Transmission.d.ts.map +1 -0
- package/dist/forward/Transmission.js +299 -0
- package/dist/forward/Transmission.js.map +1 -0
- package/dist/forward/Velocity.d.ts +47 -0
- package/dist/forward/Velocity.d.ts.map +1 -0
- package/dist/forward/Velocity.js +153 -0
- package/dist/forward/Velocity.js.map +1 -0
- package/dist/forward/transmissionTargetStore.d.ts +21 -0
- package/dist/forward/transmissionTargetStore.d.ts.map +1 -0
- package/dist/forward/transmissionTargetStore.js +8 -0
- package/dist/forward/transmissionTargetStore.js.map +1 -0
- package/dist/geometry/Primitives.d.ts +28 -0
- package/dist/geometry/Primitives.d.ts.map +1 -0
- package/dist/geometry/Primitives.js +110 -0
- package/dist/geometry/Primitives.js.map +1 -0
- package/dist/index.d.ts +140 -58
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +102 -52
- package/dist/index.js.map +1 -1
- package/dist/lanes/index.d.ts +17 -0
- package/dist/lanes/index.d.ts.map +1 -0
- package/dist/lanes/index.js +17 -0
- package/dist/lanes/index.js.map +1 -0
- package/dist/lanes/prd01.d.ts +6 -0
- package/dist/lanes/prd01.d.ts.map +1 -0
- package/dist/lanes/prd01.js +19 -0
- package/dist/lanes/prd01.js.map +1 -0
- package/dist/lanes/prd02.d.ts +62 -0
- package/dist/lanes/prd02.d.ts.map +1 -0
- package/dist/lanes/prd02.js +117 -0
- package/dist/lanes/prd02.js.map +1 -0
- package/dist/lanes/prd03.d.ts +19 -0
- package/dist/lanes/prd03.d.ts.map +1 -0
- package/dist/lanes/prd03.js +55 -0
- package/dist/lanes/prd03.js.map +1 -0
- package/dist/lanes/prd04.d.ts +22 -0
- package/dist/lanes/prd04.d.ts.map +1 -0
- package/dist/lanes/prd04.js +35 -0
- package/dist/lanes/prd04.js.map +1 -0
- package/dist/lanes/prd05.d.ts +4 -0
- package/dist/lanes/prd05.d.ts.map +1 -0
- package/dist/lanes/prd05.js +31 -0
- package/dist/lanes/prd05.js.map +1 -0
- package/dist/lanes/prd06.d.ts +33 -0
- package/dist/lanes/prd06.d.ts.map +1 -0
- package/dist/lanes/prd06.js +217 -0
- package/dist/lanes/prd06.js.map +1 -0
- package/dist/lanes/prd07.d.ts +49 -0
- package/dist/lanes/prd07.d.ts.map +1 -0
- package/dist/lanes/prd07.js +112 -0
- package/dist/lanes/prd07.js.map +1 -0
- package/dist/lanes/prd08.d.ts +2 -0
- package/dist/lanes/prd08.d.ts.map +1 -0
- package/dist/lanes/prd08.js +17 -0
- package/dist/lanes/prd08.js.map +1 -0
- package/dist/lanes/prd09.d.ts +6 -0
- package/dist/lanes/prd09.d.ts.map +1 -0
- package/dist/lanes/prd09.js +6 -0
- package/dist/lanes/prd09.js.map +1 -0
- package/dist/lanes/prd10.d.ts +2 -0
- package/dist/lanes/prd10.d.ts.map +1 -0
- package/dist/lanes/prd10.js +10 -0
- package/dist/lanes/prd10.js.map +1 -0
- package/dist/lanes/prd11.d.ts +61 -0
- package/dist/lanes/prd11.d.ts.map +1 -0
- package/dist/lanes/prd11.js +244 -0
- package/dist/lanes/prd11.js.map +1 -0
- package/dist/lanes/prd12.d.ts +6 -0
- package/dist/lanes/prd12.d.ts.map +1 -0
- package/dist/lanes/prd12.js +6 -0
- package/dist/lanes/prd12.js.map +1 -0
- package/dist/lanes/prd13.d.ts +6 -0
- package/dist/lanes/prd13.d.ts.map +1 -0
- package/dist/lanes/prd13.js +6 -0
- package/dist/lanes/prd13.js.map +1 -0
- package/dist/lanes/prd14.d.ts +6 -0
- package/dist/lanes/prd14.d.ts.map +1 -0
- package/dist/lanes/prd14.js +6 -0
- package/dist/lanes/prd14.js.map +1 -0
- package/dist/lanes/prd15.d.ts +6 -0
- package/dist/lanes/prd15.d.ts.map +1 -0
- package/dist/lanes/prd15.js +6 -0
- package/dist/lanes/prd15.js.map +1 -0
- package/dist/materials/PhysicalFeatures.d.ts +71 -0
- package/dist/materials/PhysicalFeatures.d.ts.map +1 -0
- package/dist/materials/PhysicalFeatures.js +255 -0
- package/dist/materials/PhysicalFeatures.js.map +1 -0
- package/dist/materials/PhysicalMaterial.d.ts +85 -0
- package/dist/materials/PhysicalMaterial.d.ts.map +1 -1
- package/dist/materials/PhysicalMaterial.js +21 -0
- package/dist/materials/PhysicalMaterial.js.map +1 -1
- package/dist/materials/features.d.ts +47 -0
- package/dist/materials/features.d.ts.map +1 -0
- package/dist/materials/features.js +282 -0
- package/dist/materials/features.js.map +1 -0
- package/dist/materials/lobes.d.ts +3 -0
- package/dist/materials/lobes.d.ts.map +1 -0
- package/dist/materials/lobes.js +225 -0
- package/dist/materials/lobes.js.map +1 -0
- package/dist/output/HdrTarget.d.ts +27 -0
- package/dist/output/HdrTarget.d.ts.map +1 -0
- package/dist/output/HdrTarget.js +48 -0
- package/dist/output/HdrTarget.js.map +1 -0
- package/dist/output/OutputPass.d.ts +28 -0
- package/dist/output/OutputPass.d.ts.map +1 -0
- package/dist/output/OutputPass.js +142 -0
- package/dist/output/OutputPass.js.map +1 -0
- package/dist/output/ToneMappingOperators.glsl.d.ts +22 -0
- package/dist/output/ToneMappingOperators.glsl.d.ts.map +1 -0
- package/dist/output/ToneMappingOperators.glsl.js +217 -0
- package/dist/output/ToneMappingOperators.glsl.js.map +1 -0
- package/dist/passes/ContactShadowPass.d.ts +57 -0
- package/dist/passes/ContactShadowPass.d.ts.map +1 -0
- package/dist/passes/ContactShadowPass.js +151 -0
- package/dist/passes/ContactShadowPass.js.map +1 -0
- package/dist/passes/Prd02ContactShadowsContributor.d.ts +16 -0
- package/dist/passes/Prd02ContactShadowsContributor.d.ts.map +1 -0
- package/dist/passes/Prd02ContactShadowsContributor.js +133 -0
- package/dist/passes/Prd02ContactShadowsContributor.js.map +1 -0
- package/dist/passes/Prd02SubFlags.d.ts +22 -0
- package/dist/passes/Prd02SubFlags.d.ts.map +1 -0
- package/dist/passes/Prd02SubFlags.js +32 -0
- package/dist/passes/Prd02SubFlags.js.map +1 -0
- package/dist/performance/BVH.d.ts +46 -0
- package/dist/performance/BVH.d.ts.map +1 -1
- package/dist/performance/BVH.js +212 -0
- package/dist/performance/BVH.js.map +1 -1
- package/dist/performance/Batcher.d.ts +11 -0
- package/dist/performance/Batcher.d.ts.map +1 -1
- package/dist/performance/Batcher.js +10 -0
- package/dist/performance/Batcher.js.map +1 -1
- package/dist/performance/FrustumCuller.d.ts +29 -0
- package/dist/performance/FrustumCuller.d.ts.map +1 -1
- package/dist/performance/FrustumCuller.js +78 -1
- package/dist/performance/FrustumCuller.js.map +1 -1
- package/dist/performance/LOD.d.ts +6 -0
- package/dist/performance/LOD.d.ts.map +1 -1
- package/dist/performance/LOD.js +12 -0
- package/dist/performance/LOD.js.map +1 -1
- package/dist/performance/RenderItemSorting.d.ts +2 -0
- package/dist/performance/RenderItemSorting.d.ts.map +1 -1
- package/dist/performance/RenderItemSorting.js +5 -1
- package/dist/performance/RenderItemSorting.js.map +1 -1
- package/dist/post/CubeLut.d.ts +15 -0
- package/dist/post/CubeLut.d.ts.map +1 -0
- package/dist/post/CubeLut.js +86 -0
- package/dist/post/CubeLut.js.map +1 -0
- package/dist/post/DisplayLutCache.d.ts +31 -0
- package/dist/post/DisplayLutCache.d.ts.map +1 -0
- package/dist/post/DisplayLutCache.js +44 -0
- package/dist/post/DisplayLutCache.js.map +1 -0
- package/dist/post/PostAntiAlias.d.ts +49 -0
- package/dist/post/PostAntiAlias.d.ts.map +1 -0
- package/dist/post/PostAntiAlias.js +75 -0
- package/dist/post/PostAntiAlias.js.map +1 -0
- package/dist/post/PostGraph.d.ts +206 -0
- package/dist/post/PostGraph.d.ts.map +1 -0
- package/dist/post/PostGraph.js +234 -0
- package/dist/post/PostGraph.js.map +1 -0
- package/dist/post/PostQualityTiers.d.ts +95 -0
- package/dist/post/PostQualityTiers.d.ts.map +1 -0
- package/dist/post/PostQualityTiers.js +62 -0
- package/dist/post/PostQualityTiers.js.map +1 -0
- package/dist/post/PostResources.d.ts +49 -0
- package/dist/post/PostResources.d.ts.map +1 -0
- package/dist/post/PostResources.js +124 -0
- package/dist/post/PostResources.js.map +1 -0
- package/dist/post/PostTimer.d.ts +37 -0
- package/dist/post/PostTimer.d.ts.map +1 -0
- package/dist/post/PostTimer.js +88 -0
- package/dist/post/PostTimer.js.map +1 -0
- package/dist/post/ScreenFeelPass.d.ts +83 -0
- package/dist/post/ScreenFeelPass.d.ts.map +1 -0
- package/dist/post/ScreenFeelPass.js +197 -0
- package/dist/post/ScreenFeelPass.js.map +1 -0
- package/dist/post/ToneOperators.d.ts +42 -0
- package/dist/post/ToneOperators.d.ts.map +1 -0
- package/dist/post/ToneOperators.js +179 -0
- package/dist/post/ToneOperators.js.map +1 -0
- package/dist/post/chunks/indirectFraction.glsl.d.ts +50 -0
- package/dist/post/chunks/indirectFraction.glsl.d.ts.map +1 -0
- package/dist/post/chunks/indirectFraction.glsl.js +82 -0
- package/dist/post/chunks/indirectFraction.glsl.js.map +1 -0
- package/dist/post/chunks/velocity.glsl.d.ts +35 -0
- package/dist/post/chunks/velocity.glsl.d.ts.map +1 -0
- package/dist/post/chunks/velocity.glsl.js +86 -0
- package/dist/post/chunks/velocity.glsl.js.map +1 -0
- package/dist/post/shaders/bloom.glsl.d.ts +21 -0
- package/dist/post/shaders/bloom.glsl.d.ts.map +1 -0
- package/dist/post/shaders/bloom.glsl.js +120 -0
- package/dist/post/shaders/bloom.glsl.js.map +1 -0
- package/dist/post/shaders/bloom.wgsl.d.ts +10 -0
- package/dist/post/shaders/bloom.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/bloom.wgsl.js +121 -0
- package/dist/post/shaders/bloom.wgsl.js.map +1 -0
- package/dist/post/shaders/common.glsl.d.ts +11 -0
- package/dist/post/shaders/common.glsl.d.ts.map +1 -0
- package/dist/post/shaders/common.glsl.js +34 -0
- package/dist/post/shaders/common.glsl.js.map +1 -0
- package/dist/post/shaders/common.wgsl.d.ts +25 -0
- package/dist/post/shaders/common.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/common.wgsl.js +48 -0
- package/dist/post/shaders/common.wgsl.js.map +1 -0
- package/dist/post/shaders/composite.glsl.d.ts +25 -0
- package/dist/post/shaders/composite.glsl.d.ts.map +1 -0
- package/dist/post/shaders/composite.glsl.js +96 -0
- package/dist/post/shaders/composite.glsl.js.map +1 -0
- package/dist/post/shaders/composite.wgsl.d.ts +10 -0
- package/dist/post/shaders/composite.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/composite.wgsl.js +92 -0
- package/dist/post/shaders/composite.wgsl.js.map +1 -0
- package/dist/post/shaders/depthDownsample.glsl.d.ts +20 -0
- package/dist/post/shaders/depthDownsample.glsl.d.ts.map +1 -0
- package/dist/post/shaders/depthDownsample.glsl.js +78 -0
- package/dist/post/shaders/depthDownsample.glsl.js.map +1 -0
- package/dist/post/shaders/depthDownsample.wgsl.d.ts +17 -0
- package/dist/post/shaders/depthDownsample.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/depthDownsample.wgsl.js +87 -0
- package/dist/post/shaders/depthDownsample.wgsl.js.map +1 -0
- package/dist/post/shaders/displayGrade.glsl.d.ts +18 -0
- package/dist/post/shaders/displayGrade.glsl.d.ts.map +1 -0
- package/dist/post/shaders/displayGrade.glsl.js +80 -0
- package/dist/post/shaders/displayGrade.glsl.js.map +1 -0
- package/dist/post/shaders/displayGrade.wgsl.d.ts +9 -0
- package/dist/post/shaders/displayGrade.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/displayGrade.wgsl.js +75 -0
- package/dist/post/shaders/displayGrade.wgsl.js.map +1 -0
- package/dist/post/shaders/dof.glsl.d.ts +25 -0
- package/dist/post/shaders/dof.glsl.d.ts.map +1 -0
- package/dist/post/shaders/dof.glsl.js +129 -0
- package/dist/post/shaders/dof.glsl.js.map +1 -0
- package/dist/post/shaders/dof.wgsl.d.ts +11 -0
- package/dist/post/shaders/dof.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/dof.wgsl.js +119 -0
- package/dist/post/shaders/dof.wgsl.js.map +1 -0
- package/dist/post/shaders/exposure.glsl.d.ts +43 -0
- package/dist/post/shaders/exposure.glsl.d.ts.map +1 -0
- package/dist/post/shaders/exposure.glsl.js +115 -0
- package/dist/post/shaders/exposure.glsl.js.map +1 -0
- package/dist/post/shaders/exposure.wgsl.d.ts +16 -0
- package/dist/post/shaders/exposure.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/exposure.wgsl.js +97 -0
- package/dist/post/shaders/exposure.wgsl.js.map +1 -0
- package/dist/post/shaders/finalize.glsl.d.ts +17 -0
- package/dist/post/shaders/finalize.glsl.d.ts.map +1 -0
- package/dist/post/shaders/finalize.glsl.js +120 -0
- package/dist/post/shaders/finalize.glsl.js.map +1 -0
- package/dist/post/shaders/finalize.wgsl.d.ts +13 -0
- package/dist/post/shaders/finalize.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/finalize.wgsl.js +124 -0
- package/dist/post/shaders/finalize.wgsl.js.map +1 -0
- package/dist/post/shaders/fxaa.glsl.d.ts +26 -0
- package/dist/post/shaders/fxaa.glsl.d.ts.map +1 -0
- package/dist/post/shaders/fxaa.glsl.js +246 -0
- package/dist/post/shaders/fxaa.glsl.js.map +1 -0
- package/dist/post/shaders/fxaa.wgsl.d.ts +17 -0
- package/dist/post/shaders/fxaa.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/fxaa.wgsl.js +268 -0
- package/dist/post/shaders/fxaa.wgsl.js.map +1 -0
- package/dist/post/shaders/godrays.glsl.d.ts +16 -0
- package/dist/post/shaders/godrays.glsl.d.ts.map +1 -0
- package/dist/post/shaders/godrays.glsl.js +70 -0
- package/dist/post/shaders/godrays.glsl.js.map +1 -0
- package/dist/post/shaders/godrays.wgsl.d.ts +8 -0
- package/dist/post/shaders/godrays.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/godrays.wgsl.js +60 -0
- package/dist/post/shaders/godrays.wgsl.js.map +1 -0
- package/dist/post/shaders/gtao.glsl.d.ts +29 -0
- package/dist/post/shaders/gtao.glsl.d.ts.map +1 -0
- package/dist/post/shaders/gtao.glsl.js +190 -0
- package/dist/post/shaders/gtao.glsl.js.map +1 -0
- package/dist/post/shaders/gtao.wgsl.d.ts +13 -0
- package/dist/post/shaders/gtao.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/gtao.wgsl.js +163 -0
- package/dist/post/shaders/gtao.wgsl.js.map +1 -0
- package/dist/post/shaders/gtaoDenoise.glsl.d.ts +22 -0
- package/dist/post/shaders/gtaoDenoise.glsl.d.ts.map +1 -0
- package/dist/post/shaders/gtaoDenoise.glsl.js +121 -0
- package/dist/post/shaders/gtaoDenoise.glsl.js.map +1 -0
- package/dist/post/shaders/gtaoDenoise.wgsl.d.ts +11 -0
- package/dist/post/shaders/gtaoDenoise.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/gtaoDenoise.wgsl.js +117 -0
- package/dist/post/shaders/gtaoDenoise.wgsl.js.map +1 -0
- package/dist/post/shaders/motionBlur.glsl.d.ts +21 -0
- package/dist/post/shaders/motionBlur.glsl.d.ts.map +1 -0
- package/dist/post/shaders/motionBlur.glsl.js +110 -0
- package/dist/post/shaders/motionBlur.glsl.js.map +1 -0
- package/dist/post/shaders/motionBlur.wgsl.d.ts +10 -0
- package/dist/post/shaders/motionBlur.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/motionBlur.wgsl.js +102 -0
- package/dist/post/shaders/motionBlur.wgsl.js.map +1 -0
- package/dist/post/shaders/smaa.glsl.d.ts +28 -0
- package/dist/post/shaders/smaa.glsl.d.ts.map +1 -0
- package/dist/post/shaders/smaa.glsl.js +354 -0
- package/dist/post/shaders/smaa.glsl.js.map +1 -0
- package/dist/post/shaders/smaa.wgsl.d.ts +20 -0
- package/dist/post/shaders/smaa.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/smaa.wgsl.js +375 -0
- package/dist/post/shaders/smaa.wgsl.js.map +1 -0
- package/dist/post/shaders/taa.glsl.d.ts +23 -0
- package/dist/post/shaders/taa.glsl.d.ts.map +1 -0
- package/dist/post/shaders/taa.glsl.js +169 -0
- package/dist/post/shaders/taa.glsl.js.map +1 -0
- package/dist/post/shaders/taa.wgsl.d.ts +10 -0
- package/dist/post/shaders/taa.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/taa.wgsl.js +185 -0
- package/dist/post/shaders/taa.wgsl.js.map +1 -0
- package/dist/post/shaders/velocityDilate.glsl.d.ts +16 -0
- package/dist/post/shaders/velocityDilate.glsl.d.ts.map +1 -0
- package/dist/post/shaders/velocityDilate.glsl.js +45 -0
- package/dist/post/shaders/velocityDilate.glsl.js.map +1 -0
- package/dist/post/shaders/velocityDilate.wgsl.d.ts +8 -0
- package/dist/post/shaders/velocityDilate.wgsl.d.ts.map +1 -0
- package/dist/post/shaders/velocityDilate.wgsl.js +30 -0
- package/dist/post/shaders/velocityDilate.wgsl.js.map +1 -0
- package/dist/post/smaa/textures.d.ts +17 -0
- package/dist/post/smaa/textures.d.ts.map +1 -0
- package/dist/post/smaa/textures.js +17 -0
- package/dist/post/smaa/textures.js.map +1 -0
- package/dist/post/v2Entry.d.ts +25 -0
- package/dist/post/v2Entry.d.ts.map +1 -0
- package/dist/post/v2Entry.js +28 -0
- package/dist/post/v2Entry.js.map +1 -0
- package/dist/post/v2Stages.d.ts +156 -0
- package/dist/post/v2Stages.d.ts.map +1 -0
- package/dist/post/v2Stages.js +1189 -0
- package/dist/post/v2Stages.js.map +1 -0
- package/dist/postprocess/EffectComposer.d.ts +6 -109
- package/dist/postprocess/EffectComposer.d.ts.map +1 -1
- package/dist/postprocess/EffectComposer.js +6 -246
- package/dist/postprocess/EffectComposer.js.map +1 -1
- package/dist/postprocess/NativeBloomPyramid.d.ts +34 -0
- package/dist/postprocess/NativeBloomPyramid.d.ts.map +1 -1
- package/dist/postprocess/NativeBloomPyramid.js +57 -0
- package/dist/postprocess/NativeBloomPyramid.js.map +1 -1
- package/dist/postprocess/SSAOPass.d.ts +5 -5
- package/dist/postprocess/SSAOPass.d.ts.map +1 -1
- package/dist/postprocess/SSAOPass.js +5 -17
- package/dist/postprocess/SSAOPass.js.map +1 -1
- package/dist/probes/IrradianceVolume.d.ts +45 -0
- package/dist/probes/IrradianceVolume.d.ts.map +1 -0
- package/dist/probes/IrradianceVolume.js +230 -0
- package/dist/probes/IrradianceVolume.js.map +1 -0
- package/dist/probes/LtcLuts.d.ts +30 -0
- package/dist/probes/LtcLuts.d.ts.map +1 -0
- package/dist/probes/LtcLuts.js +120 -0
- package/dist/probes/LtcLuts.js.map +1 -0
- package/dist/probes/Prd02ProbesContributor.d.ts +53 -0
- package/dist/probes/Prd02ProbesContributor.d.ts.map +1 -0
- package/dist/probes/Prd02ProbesContributor.js +241 -0
- package/dist/probes/Prd02ProbesContributor.js.map +1 -0
- package/dist/probes/ProbeBoxProjection.d.ts +53 -0
- package/dist/probes/ProbeBoxProjection.d.ts.map +1 -0
- package/dist/probes/ProbeBoxProjection.js +99 -0
- package/dist/probes/ProbeBoxProjection.js.map +1 -0
- package/dist/probes/ReflectionProbeSystem.d.ts +64 -0
- package/dist/probes/ReflectionProbeSystem.d.ts.map +1 -0
- package/dist/probes/ReflectionProbeSystem.js +157 -0
- package/dist/probes/ReflectionProbeSystem.js.map +1 -0
- package/dist/production-runtime/PBRHDRPipeline.d.ts.map +1 -1
- package/dist/production-runtime/PBRHDRPipeline.js +23 -9
- package/dist/production-runtime/PBRHDRPipeline.js.map +1 -1
- package/dist/production-runtime/ProductionRendererTypes.d.ts +16 -6
- package/dist/production-runtime/ProductionRendererTypes.d.ts.map +1 -1
- package/dist/production-runtime/ProductionRendererTypes.js.map +1 -1
- package/dist/production-runtime/ProductionWebGPURenderer.d.ts +4 -4
- package/dist/production-runtime/ProductionWebGPURenderer.d.ts.map +1 -1
- package/dist/production-runtime/ProductionWebGPURenderer.js +10 -45
- package/dist/production-runtime/ProductionWebGPURenderer.js.map +1 -1
- package/dist/production-runtime/backendSelection.d.ts +26 -0
- package/dist/production-runtime/backendSelection.d.ts.map +1 -0
- package/dist/production-runtime/backendSelection.js +46 -0
- package/dist/production-runtime/backendSelection.js.map +1 -0
- package/dist/production-runtime/backends/WebGL2RendererBackend.d.ts +1 -1
- package/dist/production-runtime/backends/WebGL2RendererBackend.d.ts.map +1 -1
- package/dist/production-runtime/backends/WebGL2RendererBackend.js +8 -4
- package/dist/production-runtime/backends/WebGL2RendererBackend.js.map +1 -1
- package/dist/production-runtime/backends/WebGPURendererBackend.d.ts +2 -19
- package/dist/production-runtime/backends/WebGPURendererBackend.d.ts.map +1 -1
- package/dist/production-runtime/backends/WebGPURendererBackend.js +2 -18
- package/dist/production-runtime/backends/WebGPURendererBackend.js.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2Buffer.d.ts +2 -10
- package/dist/production-runtime/backends/webgl2/WebGL2Buffer.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2Buffer.js +2 -7
- package/dist/production-runtime/backends/webgl2/WebGL2Buffer.js.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2Capabilities.d.ts +2 -10
- package/dist/production-runtime/backends/webgl2/WebGL2Capabilities.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2Capabilities.js +2 -7
- package/dist/production-runtime/backends/webgl2/WebGL2Capabilities.js.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2RenderTarget.d.ts +2 -10
- package/dist/production-runtime/backends/webgl2/WebGL2RenderTarget.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2RenderTarget.js +2 -7
- package/dist/production-runtime/backends/webgl2/WebGL2RenderTarget.js.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2Shader.d.ts +2 -10
- package/dist/production-runtime/backends/webgl2/WebGL2Shader.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2Shader.js +2 -7
- package/dist/production-runtime/backends/webgl2/WebGL2Shader.js.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2StateCache.d.ts +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2StateCache.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2StateCache.js +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2StateCache.js.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2Texture.d.ts +2 -10
- package/dist/production-runtime/backends/webgl2/WebGL2Texture.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgl2/WebGL2Texture.js +2 -7
- package/dist/production-runtime/backends/webgl2/WebGL2Texture.js.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPUBuffer.d.ts +2 -10
- package/dist/production-runtime/backends/webgpu/WebGPUBuffer.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPUBuffer.js +2 -7
- package/dist/production-runtime/backends/webgpu/WebGPUBuffer.js.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPUCapabilities.d.ts +2 -10
- package/dist/production-runtime/backends/webgpu/WebGPUCapabilities.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPUCapabilities.js +2 -7
- package/dist/production-runtime/backends/webgpu/WebGPUCapabilities.js.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPURenderTarget.d.ts +2 -10
- package/dist/production-runtime/backends/webgpu/WebGPURenderTarget.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPURenderTarget.js +2 -7
- package/dist/production-runtime/backends/webgpu/WebGPURenderTarget.js.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPUShader.d.ts +2 -10
- package/dist/production-runtime/backends/webgpu/WebGPUShader.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPUShader.js +2 -7
- package/dist/production-runtime/backends/webgpu/WebGPUShader.js.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPUTexture.d.ts +2 -10
- package/dist/production-runtime/backends/webgpu/WebGPUTexture.d.ts.map +1 -1
- package/dist/production-runtime/backends/webgpu/WebGPUTexture.js +2 -7
- package/dist/production-runtime/backends/webgpu/WebGPUTexture.js.map +1 -1
- package/dist/production-runtime/index.d.ts +6 -6
- package/dist/production-runtime/index.d.ts.map +1 -1
- package/dist/production-runtime/index.js +9 -3
- package/dist/production-runtime/index.js.map +1 -1
- package/dist/production-runtime/materials/GLTFMaterialAdapter.d.ts +12 -13
- package/dist/production-runtime/materials/GLTFMaterialAdapter.d.ts.map +1 -1
- package/dist/production-runtime/materials/GLTFMaterialAdapter.js +10 -4
- package/dist/production-runtime/materials/GLTFMaterialAdapter.js.map +1 -1
- package/dist/production-runtime/materials/GLTFPBRMaterialAdapter.d.ts +9 -2
- package/dist/production-runtime/materials/GLTFPBRMaterialAdapter.d.ts.map +1 -1
- package/dist/production-runtime/materials/GLTFPBRMaterialAdapter.js +7 -1
- package/dist/production-runtime/materials/GLTFPBRMaterialAdapter.js.map +1 -1
- package/dist/production-runtime/materials/MaterialCompiler.d.ts +10 -8
- package/dist/production-runtime/materials/MaterialCompiler.d.ts.map +1 -1
- package/dist/production-runtime/materials/MaterialCompiler.js +9 -4
- package/dist/production-runtime/materials/MaterialCompiler.js.map +1 -1
- package/dist/production-runtime/materials/PBRShaderFeatures.d.ts.map +1 -1
- package/dist/production-runtime/materials/PBRShaderFeatures.js +30 -1
- package/dist/production-runtime/materials/PBRShaderFeatures.js.map +1 -1
- package/dist/production-runtime/passes/ContactShadowPass.d.ts.map +1 -1
- package/dist/production-runtime/passes/ContactShadowPass.js +14 -13
- package/dist/production-runtime/passes/ContactShadowPass.js.map +1 -1
- package/dist/production-runtime/renderProofs.d.ts +54 -0
- package/dist/production-runtime/renderProofs.d.ts.map +1 -0
- package/dist/production-runtime/renderProofs.js +245 -0
- package/dist/production-runtime/renderProofs.js.map +1 -0
- package/dist/program/DFGLut.d.ts +23 -0
- package/dist/program/DFGLut.d.ts.map +1 -0
- package/dist/program/DFGLut.js +58 -0
- package/dist/program/DFGLut.js.map +1 -0
- package/dist/program/DFGLutData.d.ts +35 -0
- package/dist/program/DFGLutData.d.ts.map +1 -0
- package/dist/program/DFGLutData.js +52 -0
- package/dist/program/DFGLutData.js.map +1 -0
- package/dist/program/FeatureSelect.d.ts +35 -0
- package/dist/program/FeatureSelect.d.ts.map +1 -0
- package/dist/program/FeatureSelect.js +88 -0
- package/dist/program/FeatureSelect.js.map +1 -0
- package/dist/program/MaterialFeatures.d.ts +66 -0
- package/dist/program/MaterialFeatures.d.ts.map +1 -0
- package/dist/program/MaterialFeatures.js +242 -0
- package/dist/program/MaterialFeatures.js.map +1 -0
- package/dist/program/ProgramCache.d.ts +83 -0
- package/dist/program/ProgramCache.d.ts.map +1 -0
- package/dist/program/ProgramCache.js +194 -0
- package/dist/program/ProgramCache.js.map +1 -0
- package/dist/program/ProgramFeatures.d.ts +21 -0
- package/dist/program/ProgramFeatures.d.ts.map +1 -0
- package/dist/program/ProgramFeatures.js +95 -0
- package/dist/program/ProgramFeatures.js.map +1 -0
- package/dist/program/ProgramGenerator.d.ts +60 -0
- package/dist/program/ProgramGenerator.d.ts.map +1 -0
- package/dist/program/ProgramGenerator.js +760 -0
- package/dist/program/ProgramGenerator.js.map +1 -0
- package/dist/program/ProgramKey.d.ts +10 -0
- package/dist/program/ProgramKey.d.ts.map +1 -0
- package/dist/program/ProgramKey.js +13 -0
- package/dist/program/ProgramKey.js.map +1 -0
- package/dist/program/ProgramWarmup.d.ts +37 -0
- package/dist/program/ProgramWarmup.d.ts.map +1 -0
- package/dist/program/ProgramWarmup.js +68 -0
- package/dist/program/ProgramWarmup.js.map +1 -0
- package/dist/program/UniformLayout.d.ts +40 -0
- package/dist/program/UniformLayout.d.ts.map +1 -0
- package/dist/program/UniformLayout.js +105 -0
- package/dist/program/UniformLayout.js.map +1 -0
- package/dist/program/chunks/alpha.glsl.d.ts +7 -0
- package/dist/program/chunks/alpha.glsl.d.ts.map +1 -0
- package/dist/program/chunks/alpha.glsl.js +17 -0
- package/dist/program/chunks/alpha.glsl.js.map +1 -0
- package/dist/program/chunks/brdf.glsl.d.ts +12 -0
- package/dist/program/chunks/brdf.glsl.d.ts.map +1 -0
- package/dist/program/chunks/brdf.glsl.js +144 -0
- package/dist/program/chunks/brdf.glsl.js.map +1 -0
- package/dist/program/chunks/colorspace.glsl.d.ts +8 -0
- package/dist/program/chunks/colorspace.glsl.d.ts.map +1 -0
- package/dist/program/chunks/colorspace.glsl.js +16 -0
- package/dist/program/chunks/colorspace.glsl.js.map +1 -0
- package/dist/program/chunks/common.glsl.d.ts +7 -0
- package/dist/program/chunks/common.glsl.d.ts.map +1 -0
- package/dist/program/chunks/common.glsl.js +25 -0
- package/dist/program/chunks/common.glsl.js.map +1 -0
- package/dist/program/chunks/depth.glsl.d.ts +9 -0
- package/dist/program/chunks/depth.glsl.d.ts.map +1 -0
- package/dist/program/chunks/depth.glsl.js +18 -0
- package/dist/program/chunks/depth.glsl.js.map +1 -0
- package/dist/program/chunks/drawId.wgsl.d.ts +9 -0
- package/dist/program/chunks/drawId.wgsl.d.ts.map +1 -0
- package/dist/program/chunks/drawId.wgsl.js +29 -0
- package/dist/program/chunks/drawId.wgsl.js.map +1 -0
- package/dist/program/chunks/fog_default.glsl.d.ts +8 -0
- package/dist/program/chunks/fog_default.glsl.d.ts.map +1 -0
- package/dist/program/chunks/fog_default.glsl.js +31 -0
- package/dist/program/chunks/fog_default.glsl.js.map +1 -0
- package/dist/program/chunks/indirect_default.glsl.d.ts +29 -0
- package/dist/program/chunks/indirect_default.glsl.d.ts.map +1 -0
- package/dist/program/chunks/indirect_default.glsl.js +113 -0
- package/dist/program/chunks/indirect_default.glsl.js.map +1 -0
- package/dist/program/chunks/instanceEmissive.wgsl.d.ts +10 -0
- package/dist/program/chunks/instanceEmissive.wgsl.d.ts.map +1 -0
- package/dist/program/chunks/instanceEmissive.wgsl.js +21 -0
- package/dist/program/chunks/instanceEmissive.wgsl.js.map +1 -0
- package/dist/program/chunks/instancing.glsl.d.ts +8 -0
- package/dist/program/chunks/instancing.glsl.d.ts.map +1 -0
- package/dist/program/chunks/instancing.glsl.js +25 -0
- package/dist/program/chunks/instancing.glsl.js.map +1 -0
- package/dist/program/chunks/lights_legacy.glsl.d.ts +15 -0
- package/dist/program/chunks/lights_legacy.glsl.d.ts.map +1 -0
- package/dist/program/chunks/lights_legacy.glsl.js +95 -0
- package/dist/program/chunks/lights_legacy.glsl.js.map +1 -0
- package/dist/program/chunks/manifest.d.ts +42 -0
- package/dist/program/chunks/manifest.d.ts.map +1 -0
- package/dist/program/chunks/manifest.js +48 -0
- package/dist/program/chunks/manifest.js.map +1 -0
- package/dist/program/chunks/normal.glsl.d.ts +8 -0
- package/dist/program/chunks/normal.glsl.d.ts.map +1 -0
- package/dist/program/chunks/normal.glsl.js +34 -0
- package/dist/program/chunks/normal.glsl.js.map +1 -0
- package/dist/program/chunks/shadow_forward.glsl.d.ts +23 -0
- package/dist/program/chunks/shadow_forward.glsl.d.ts.map +1 -0
- package/dist/program/chunks/shadow_forward.glsl.js +73 -0
- package/dist/program/chunks/shadow_forward.glsl.js.map +1 -0
- package/dist/quality/DeviceClasses.d.ts +31 -0
- package/dist/quality/DeviceClasses.d.ts.map +1 -0
- package/dist/quality/DeviceClasses.js +83 -0
- package/dist/quality/DeviceClasses.js.map +1 -0
- package/dist/quality/DeviceProbe.d.ts +42 -0
- package/dist/quality/DeviceProbe.d.ts.map +1 -0
- package/dist/quality/DeviceProbe.js +83 -0
- package/dist/quality/DeviceProbe.js.map +1 -0
- package/dist/quality/FrameStats.d.ts +62 -0
- package/dist/quality/FrameStats.d.ts.map +1 -0
- package/dist/quality/FrameStats.js +220 -0
- package/dist/quality/FrameStats.js.map +1 -0
- package/dist/quality/PostprocessGuard.d.ts +49 -0
- package/dist/quality/PostprocessGuard.d.ts.map +1 -0
- package/dist/quality/PostprocessGuard.js +92 -0
- package/dist/quality/PostprocessGuard.js.map +1 -0
- package/dist/quality/QualityController.d.ts +93 -0
- package/dist/quality/QualityController.d.ts.map +1 -0
- package/dist/quality/QualityController.js +248 -0
- package/dist/quality/QualityController.js.map +1 -0
- package/dist/quality/QualityGovernor.d.ts +78 -0
- package/dist/quality/QualityGovernor.d.ts.map +1 -0
- package/dist/quality/QualityGovernor.js +170 -0
- package/dist/quality/QualityGovernor.js.map +1 -0
- package/dist/quality/QualityTier.d.ts +17 -0
- package/dist/quality/QualityTier.d.ts.map +1 -0
- package/dist/quality/QualityTier.js +23 -0
- package/dist/quality/QualityTier.js.map +1 -0
- package/dist/quality/RenderScaleController.d.ts +35 -0
- package/dist/quality/RenderScaleController.d.ts.map +1 -0
- package/dist/quality/RenderScaleController.js +57 -0
- package/dist/quality/RenderScaleController.js.map +1 -0
- package/dist/quality/RetentionPolicy.d.ts +11 -0
- package/dist/quality/RetentionPolicy.d.ts.map +1 -0
- package/dist/quality/RetentionPolicy.js +12 -0
- package/dist/quality/RetentionPolicy.js.map +1 -0
- package/dist/quality/TierResolver.d.ts +52 -0
- package/dist/quality/TierResolver.d.ts.map +1 -0
- package/dist/quality/TierResolver.js +155 -0
- package/dist/quality/TierResolver.js.map +1 -0
- package/dist/quality/liveTier.d.ts +23 -0
- package/dist/quality/liveTier.d.ts.map +1 -0
- package/dist/quality/liveTier.js +16 -0
- package/dist/quality/liveTier.js.map +1 -0
- package/dist/reference/BloomPass.d.ts +10 -0
- package/dist/reference/BloomPass.d.ts.map +1 -0
- package/dist/reference/BloomPass.js +18 -0
- package/dist/reference/BloomPass.js.map +1 -0
- package/dist/reference/DepthHazePass.d.ts +12 -0
- package/dist/reference/DepthHazePass.d.ts.map +1 -0
- package/dist/reference/DepthHazePass.js +20 -0
- package/dist/reference/DepthHazePass.js.map +1 -0
- package/dist/reference/EffectComposer.d.ts +110 -0
- package/dist/reference/EffectComposer.d.ts.map +1 -0
- package/dist/reference/EffectComposer.js +247 -0
- package/dist/reference/EffectComposer.js.map +1 -0
- package/dist/reference/FilmGrainPass.d.ts +9 -0
- package/dist/reference/FilmGrainPass.d.ts.map +1 -0
- package/dist/reference/FilmGrainPass.js +17 -0
- package/dist/reference/FilmGrainPass.js.map +1 -0
- package/dist/reference/PostProcessPass.d.ts +511 -0
- package/dist/reference/PostProcessPass.d.ts.map +1 -0
- package/dist/reference/PostProcessPass.js +2023 -0
- package/dist/reference/PostProcessPass.js.map +1 -0
- package/dist/reference/SSAOPass.d.ts +6 -0
- package/dist/reference/SSAOPass.d.ts.map +1 -0
- package/dist/reference/SSAOPass.js +18 -0
- package/dist/reference/SSAOPass.js.map +1 -0
- package/dist/reference/VignettePass.d.ts +10 -0
- package/dist/reference/VignettePass.d.ts.map +1 -0
- package/dist/reference/VignettePass.js +17 -0
- package/dist/reference/VignettePass.js.map +1 -0
- package/dist/reference/index.d.ts +15 -0
- package/dist/reference/index.d.ts.map +1 -0
- package/dist/reference/index.js +15 -0
- package/dist/reference/index.js.map +1 -0
- package/dist/renderer/Background.d.ts +49 -0
- package/dist/renderer/Background.d.ts.map +1 -0
- package/dist/renderer/Background.js +259 -0
- package/dist/renderer/Background.js.map +1 -0
- package/dist/renderer/CullingBatching.d.ts +55 -0
- package/dist/renderer/CullingBatching.d.ts.map +1 -0
- package/dist/renderer/CullingBatching.js +362 -0
- package/dist/renderer/CullingBatching.js.map +1 -0
- package/dist/renderer/DeviceLifecycle.d.ts +29 -0
- package/dist/renderer/DeviceLifecycle.d.ts.map +1 -0
- package/dist/renderer/DeviceLifecycle.js +48 -0
- package/dist/renderer/DeviceLifecycle.js.map +1 -0
- package/dist/renderer/FrameGraph.d.ts +96 -0
- package/dist/renderer/FrameGraph.d.ts.map +1 -0
- package/dist/renderer/FrameGraph.js +301 -0
- package/dist/renderer/FrameGraph.js.map +1 -0
- package/dist/renderer/InterleavedTransparentPass.d.ts +31 -0
- package/dist/renderer/InterleavedTransparentPass.d.ts.map +1 -0
- package/dist/renderer/InterleavedTransparentPass.js +65 -0
- package/dist/renderer/InterleavedTransparentPass.js.map +1 -0
- package/dist/renderer/PixelRatio.d.ts +64 -0
- package/dist/renderer/PixelRatio.d.ts.map +1 -0
- package/dist/renderer/PixelRatio.js +81 -0
- package/dist/renderer/PixelRatio.js.map +1 -0
- package/dist/renderer/PostprocessExecution.d.ts +82 -0
- package/dist/renderer/PostprocessExecution.d.ts.map +1 -0
- package/dist/renderer/PostprocessExecution.js +745 -0
- package/dist/renderer/PostprocessExecution.js.map +1 -0
- package/dist/renderer/Prd06ShaderWarmup.d.ts +32 -0
- package/dist/renderer/Prd06ShaderWarmup.d.ts.map +1 -0
- package/dist/renderer/Prd06ShaderWarmup.js +45 -0
- package/dist/renderer/Prd06ShaderWarmup.js.map +1 -0
- package/dist/renderer/RenderShared.d.ts +11 -0
- package/dist/renderer/RenderShared.d.ts.map +1 -0
- package/dist/renderer/RenderShared.js +47 -0
- package/dist/renderer/RenderShared.js.map +1 -0
- package/dist/renderer/RendererFactory.d.ts +3 -0
- package/dist/renderer/RendererFactory.d.ts.map +1 -0
- package/dist/renderer/RendererFactory.js +19 -0
- package/dist/renderer/RendererFactory.js.map +1 -0
- package/dist/renderer/RendererHost.d.ts +25 -0
- package/dist/renderer/RendererHost.d.ts.map +1 -0
- package/dist/renderer/RendererHost.js +4 -0
- package/dist/renderer/RendererHost.js.map +1 -0
- package/dist/renderer/SceneDepthCopyPass.d.ts +50 -0
- package/dist/renderer/SceneDepthCopyPass.d.ts.map +1 -0
- package/dist/renderer/SceneDepthCopyPass.js +124 -0
- package/dist/renderer/SceneDepthCopyPass.js.map +1 -0
- package/dist/renderer/ShadowOrchestration.d.ts +32 -0
- package/dist/renderer/ShadowOrchestration.d.ts.map +1 -0
- package/dist/renderer/ShadowOrchestration.js +491 -0
- package/dist/renderer/ShadowOrchestration.js.map +1 -0
- package/dist/renderer/SkinnedBounds.d.ts +6 -0
- package/dist/renderer/SkinnedBounds.d.ts.map +1 -0
- package/dist/renderer/SkinnedBounds.js +74 -0
- package/dist/renderer/SkinnedBounds.js.map +1 -0
- package/dist/renderer/coreOutputPostRoute.d.ts +40 -0
- package/dist/renderer/coreOutputPostRoute.d.ts.map +1 -0
- package/dist/renderer/coreOutputPostRoute.js +46 -0
- package/dist/renderer/coreOutputPostRoute.js.map +1 -0
- package/dist/renderer/postSkipped.d.ts +12 -0
- package/dist/renderer/postSkipped.d.ts.map +1 -0
- package/dist/renderer/postSkipped.js +54 -0
- package/dist/renderer/postSkipped.js.map +1 -0
- package/dist/renderer/qrSubFlags.d.ts +45 -0
- package/dist/renderer/qrSubFlags.d.ts.map +1 -0
- package/dist/renderer/qrSubFlags.js +130 -0
- package/dist/renderer/qrSubFlags.js.map +1 -0
- package/dist/resources/InstanceBuffer.d.ts +34 -0
- package/dist/resources/InstanceBuffer.d.ts.map +1 -0
- package/dist/resources/InstanceBuffer.js +96 -0
- package/dist/resources/InstanceBuffer.js.map +1 -0
- package/dist/resources/MorphTargetTexture.d.ts +53 -0
- package/dist/resources/MorphTargetTexture.d.ts.map +1 -0
- package/dist/resources/MorphTargetTexture.js +135 -0
- package/dist/resources/MorphTargetTexture.js.map +1 -0
- package/dist/resources/RenderTargetPool.d.ts +47 -0
- package/dist/resources/RenderTargetPool.d.ts.map +1 -0
- package/dist/resources/RenderTargetPool.js +122 -0
- package/dist/resources/RenderTargetPool.js.map +1 -0
- package/dist/resources/ResourceRegistry.d.ts +48 -0
- package/dist/resources/ResourceRegistry.d.ts.map +1 -0
- package/dist/resources/ResourceRegistry.js +95 -0
- package/dist/resources/ResourceRegistry.js.map +1 -0
- package/dist/resources/UniformBlock.d.ts +90 -0
- package/dist/resources/UniformBlock.d.ts.map +1 -0
- package/dist/resources/UniformBlock.js +184 -0
- package/dist/resources/UniformBlock.js.map +1 -0
- package/dist/shaders/camera-fade.glsl.d.ts +26 -0
- package/dist/shaders/camera-fade.glsl.d.ts.map +1 -0
- package/dist/shaders/camera-fade.glsl.js +109 -0
- package/dist/shaders/camera-fade.glsl.js.map +1 -0
- package/dist/shaders/chunks/contact_shadow.glsl.d.ts +12 -0
- package/dist/shaders/chunks/contact_shadow.glsl.d.ts.map +1 -0
- package/dist/shaders/chunks/contact_shadow.glsl.js +53 -0
- package/dist/shaders/chunks/contact_shadow.glsl.js.map +1 -0
- package/dist/shaders/chunks/lighting_ibl.glsl.d.ts +29 -0
- package/dist/shaders/chunks/lighting_ibl.glsl.d.ts.map +1 -0
- package/dist/shaders/chunks/lighting_ibl.glsl.js +122 -0
- package/dist/shaders/chunks/lighting_ibl.glsl.js.map +1 -0
- package/dist/shaders/chunks/lighting_mirrors.d.ts +18 -0
- package/dist/shaders/chunks/lighting_mirrors.d.ts.map +1 -0
- package/dist/shaders/chunks/lighting_mirrors.js +35 -0
- package/dist/shaders/chunks/lighting_mirrors.js.map +1 -0
- package/dist/shaders/chunks/lighting_punctual.glsl.d.ts +17 -0
- package/dist/shaders/chunks/lighting_punctual.glsl.d.ts.map +1 -0
- package/dist/shaders/chunks/lighting_punctual.glsl.js +197 -0
- package/dist/shaders/chunks/lighting_punctual.glsl.js.map +1 -0
- package/dist/shaders/chunks/sh9.glsl.d.ts +9 -0
- package/dist/shaders/chunks/sh9.glsl.d.ts.map +1 -0
- package/dist/shaders/chunks/sh9.glsl.js +41 -0
- package/dist/shaders/chunks/sh9.glsl.js.map +1 -0
- package/dist/shaders/chunks/shadow_caster.glsl.d.ts +10 -0
- package/dist/shaders/chunks/shadow_caster.glsl.d.ts.map +1 -0
- package/dist/shaders/chunks/shadow_caster.glsl.js +32 -0
- package/dist/shaders/chunks/shadow_caster.glsl.js.map +1 -0
- package/dist/shaders/chunks/shadow_receive.glsl.d.ts +13 -0
- package/dist/shaders/chunks/shadow_receive.glsl.d.ts.map +1 -0
- package/dist/shaders/chunks/shadow_receive.glsl.js +136 -0
- package/dist/shaders/chunks/shadow_receive.glsl.js.map +1 -0
- package/dist/shaders/debug-view.glsl.d.ts +18 -0
- package/dist/shaders/debug-view.glsl.d.ts.map +1 -0
- package/dist/shaders/debug-view.glsl.js +153 -0
- package/dist/shaders/debug-view.glsl.js.map +1 -0
- package/dist/shaders/deform/deform.glsl.d.ts +17 -0
- package/dist/shaders/deform/deform.glsl.d.ts.map +1 -0
- package/dist/shaders/deform/deform.glsl.js +99 -0
- package/dist/shaders/deform/deform.glsl.js.map +1 -0
- package/dist/shaders/deform/deform.wgsl.d.ts +15 -0
- package/dist/shaders/deform/deform.wgsl.d.ts.map +1 -0
- package/dist/shaders/deform/deform.wgsl.js +89 -0
- package/dist/shaders/deform/deform.wgsl.js.map +1 -0
- package/dist/shaders/deform/depthFeature.d.ts +22 -0
- package/dist/shaders/deform/depthFeature.d.ts.map +1 -0
- package/dist/shaders/deform/depthFeature.js +44 -0
- package/dist/shaders/deform/depthFeature.js.map +1 -0
- package/dist/shaders/deform/forwardFeature.d.ts +114 -0
- package/dist/shaders/deform/forwardFeature.d.ts.map +1 -0
- package/dist/shaders/deform/forwardFeature.js +300 -0
- package/dist/shaders/deform/forwardFeature.js.map +1 -0
- package/dist/shaders/deform/morph.glsl.d.ts +14 -0
- package/dist/shaders/deform/morph.glsl.d.ts.map +1 -0
- package/dist/shaders/deform/morph.glsl.js +45 -0
- package/dist/shaders/deform/morph.glsl.js.map +1 -0
- package/dist/shaders/deform/morph.wgsl.d.ts +21 -0
- package/dist/shaders/deform/morph.wgsl.d.ts.map +1 -0
- package/dist/shaders/deform/morph.wgsl.js +73 -0
- package/dist/shaders/deform/morph.wgsl.js.map +1 -0
- package/dist/shaders/deform/skinning.glsl.d.ts +8 -0
- package/dist/shaders/deform/skinning.glsl.d.ts.map +1 -0
- package/dist/shaders/deform/skinning.glsl.js +37 -0
- package/dist/shaders/deform/skinning.glsl.js.map +1 -0
- package/dist/shaders/deform/skinning.wgsl.d.ts +26 -0
- package/dist/shaders/deform/skinning.wgsl.d.ts.map +1 -0
- package/dist/shaders/deform/skinning.wgsl.js +58 -0
- package/dist/shaders/deform/skinning.wgsl.js.map +1 -0
- package/dist/shaders/deform/twins.d.ts +8 -0
- package/dist/shaders/deform/twins.d.ts.map +1 -0
- package/dist/shaders/deform/twins.js +20 -0
- package/dist/shaders/deform/twins.js.map +1 -0
- package/dist/shaders/lod-dither.glsl.d.ts +12 -0
- package/dist/shaders/lod-dither.glsl.d.ts.map +1 -0
- package/dist/shaders/lod-dither.glsl.js +101 -0
- package/dist/shaders/lod-dither.glsl.js.map +1 -0
- package/dist/shaders/physical/alpha_a2c.glsl.d.ts +19 -0
- package/dist/shaders/physical/alpha_a2c.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/alpha_a2c.glsl.js +29 -0
- package/dist/shaders/physical/alpha_a2c.glsl.js.map +1 -0
- package/dist/shaders/physical/anisotropy.glsl.d.ts +23 -0
- package/dist/shaders/physical/anisotropy.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/anisotropy.glsl.js +116 -0
- package/dist/shaders/physical/anisotropy.glsl.js.map +1 -0
- package/dist/shaders/physical/bsdf_lobes_common.glsl.d.ts +25 -0
- package/dist/shaders/physical/bsdf_lobes_common.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/bsdf_lobes_common.glsl.js +95 -0
- package/dist/shaders/physical/bsdf_lobes_common.glsl.js.map +1 -0
- package/dist/shaders/physical/clearcoat.glsl.d.ts +23 -0
- package/dist/shaders/physical/clearcoat.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/clearcoat.glsl.js +70 -0
- package/dist/shaders/physical/clearcoat.glsl.js.map +1 -0
- package/dist/shaders/physical/debug_view.glsl.d.ts +19 -0
- package/dist/shaders/physical/debug_view.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/debug_view.glsl.js +76 -0
- package/dist/shaders/physical/debug_view.glsl.js.map +1 -0
- package/dist/shaders/physical/dispersion.glsl.d.ts +18 -0
- package/dist/shaders/physical/dispersion.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/dispersion.glsl.js +67 -0
- package/dist/shaders/physical/dispersion.glsl.js.map +1 -0
- package/dist/shaders/physical/emissive_strength.glsl.d.ts +18 -0
- package/dist/shaders/physical/emissive_strength.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/emissive_strength.glsl.js +20 -0
- package/dist/shaders/physical/emissive_strength.glsl.js.map +1 -0
- package/dist/shaders/physical/index.d.ts +27 -0
- package/dist/shaders/physical/index.d.ts.map +1 -0
- package/dist/shaders/physical/index.js +69 -0
- package/dist/shaders/physical/index.js.map +1 -0
- package/dist/shaders/physical/iridescence.glsl.d.ts +25 -0
- package/dist/shaders/physical/iridescence.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/iridescence.glsl.js +186 -0
- package/dist/shaders/physical/iridescence.glsl.js.map +1 -0
- package/dist/shaders/physical/lobe_calls.glsl.d.ts +83 -0
- package/dist/shaders/physical/lobe_calls.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/lobe_calls.glsl.js +397 -0
- package/dist/shaders/physical/lobe_calls.glsl.js.map +1 -0
- package/dist/shaders/physical/sheen.glsl.d.ts +24 -0
- package/dist/shaders/physical/sheen.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/sheen.glsl.js +108 -0
- package/dist/shaders/physical/sheen.glsl.js.map +1 -0
- package/dist/shaders/physical/specular_ior.glsl.d.ts +20 -0
- package/dist/shaders/physical/specular_ior.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/specular_ior.glsl.js +64 -0
- package/dist/shaders/physical/specular_ior.glsl.js.map +1 -0
- package/dist/shaders/physical/tangent_frame.glsl.d.ts +27 -0
- package/dist/shaders/physical/tangent_frame.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/tangent_frame.glsl.js +71 -0
- package/dist/shaders/physical/tangent_frame.glsl.js.map +1 -0
- package/dist/shaders/physical/transmission.glsl.d.ts +25 -0
- package/dist/shaders/physical/transmission.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/transmission.glsl.js +204 -0
- package/dist/shaders/physical/transmission.glsl.js.map +1 -0
- package/dist/shaders/physical/transmission_copy.glsl.d.ts +15 -0
- package/dist/shaders/physical/transmission_copy.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/transmission_copy.glsl.js +33 -0
- package/dist/shaders/physical/transmission_copy.glsl.js.map +1 -0
- package/dist/shaders/physical/unlit.glsl.d.ts +17 -0
- package/dist/shaders/physical/unlit.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/unlit.glsl.js +19 -0
- package/dist/shaders/physical/unlit.glsl.js.map +1 -0
- package/dist/shaders/physical/uv_transform.glsl.d.ts +18 -0
- package/dist/shaders/physical/uv_transform.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/uv_transform.glsl.js +30 -0
- package/dist/shaders/physical/uv_transform.glsl.js.map +1 -0
- package/dist/shaders/physical/volume.glsl.d.ts +19 -0
- package/dist/shaders/physical/volume.glsl.d.ts.map +1 -0
- package/dist/shaders/physical/volume.glsl.js +47 -0
- package/dist/shaders/physical/volume.glsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/alpha_a2c.wgsl.d.ts +8 -0
- package/dist/shaders/physical-wgsl/alpha_a2c.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/alpha_a2c.wgsl.js +26 -0
- package/dist/shaders/physical-wgsl/alpha_a2c.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/anisotropy.wgsl.d.ts +10 -0
- package/dist/shaders/physical-wgsl/anisotropy.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/anisotropy.wgsl.js +97 -0
- package/dist/shaders/physical-wgsl/anisotropy.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/bsdf_lobes_common.wgsl.d.ts +11 -0
- package/dist/shaders/physical-wgsl/bsdf_lobes_common.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/bsdf_lobes_common.wgsl.js +76 -0
- package/dist/shaders/physical-wgsl/bsdf_lobes_common.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/clearcoat.wgsl.d.ts +9 -0
- package/dist/shaders/physical-wgsl/clearcoat.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/clearcoat.wgsl.js +56 -0
- package/dist/shaders/physical-wgsl/clearcoat.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/debug_view.wgsl.d.ts +10 -0
- package/dist/shaders/physical-wgsl/debug_view.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/debug_view.wgsl.js +71 -0
- package/dist/shaders/physical-wgsl/debug_view.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/dispersion.wgsl.d.ts +10 -0
- package/dist/shaders/physical-wgsl/dispersion.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/dispersion.wgsl.js +51 -0
- package/dist/shaders/physical-wgsl/dispersion.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/emissive_strength.wgsl.d.ts +9 -0
- package/dist/shaders/physical-wgsl/emissive_strength.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/emissive_strength.wgsl.js +15 -0
- package/dist/shaders/physical-wgsl/emissive_strength.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/index.d.ts +35 -0
- package/dist/shaders/physical-wgsl/index.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/index.js +51 -0
- package/dist/shaders/physical-wgsl/index.js.map +1 -0
- package/dist/shaders/physical-wgsl/iridescence.wgsl.d.ts +9 -0
- package/dist/shaders/physical-wgsl/iridescence.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/iridescence.wgsl.js +162 -0
- package/dist/shaders/physical-wgsl/iridescence.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/sheen.wgsl.d.ts +9 -0
- package/dist/shaders/physical-wgsl/sheen.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/sheen.wgsl.js +85 -0
- package/dist/shaders/physical-wgsl/sheen.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/specular_ior.wgsl.d.ts +10 -0
- package/dist/shaders/physical-wgsl/specular_ior.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/specular_ior.wgsl.js +47 -0
- package/dist/shaders/physical-wgsl/specular_ior.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/tangent_frame.wgsl.d.ts +11 -0
- package/dist/shaders/physical-wgsl/tangent_frame.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/tangent_frame.wgsl.js +57 -0
- package/dist/shaders/physical-wgsl/tangent_frame.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/transmission.wgsl.d.ts +14 -0
- package/dist/shaders/physical-wgsl/transmission.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/transmission.wgsl.js +159 -0
- package/dist/shaders/physical-wgsl/transmission.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/unlit.wgsl.d.ts +8 -0
- package/dist/shaders/physical-wgsl/unlit.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/unlit.wgsl.js +13 -0
- package/dist/shaders/physical-wgsl/unlit.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/uv_transform.wgsl.d.ts +10 -0
- package/dist/shaders/physical-wgsl/uv_transform.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/uv_transform.wgsl.js +24 -0
- package/dist/shaders/physical-wgsl/uv_transform.wgsl.js.map +1 -0
- package/dist/shaders/physical-wgsl/volume.wgsl.d.ts +10 -0
- package/dist/shaders/physical-wgsl/volume.wgsl.d.ts.map +1 -0
- package/dist/shaders/physical-wgsl/volume.wgsl.js +35 -0
- package/dist/shaders/physical-wgsl/volume.wgsl.js.map +1 -0
- package/dist/shadows/DirectionalCascadeFitter.d.ts +97 -0
- package/dist/shadows/DirectionalCascadeFitter.d.ts.map +1 -0
- package/dist/shadows/DirectionalCascadeFitter.js +372 -0
- package/dist/shadows/DirectionalCascadeFitter.js.map +1 -0
- package/dist/shadows/Prd02DepthShaderLibrary.d.ts +77 -0
- package/dist/shadows/Prd02DepthShaderLibrary.d.ts.map +1 -0
- package/dist/shadows/Prd02DepthShaderLibrary.js +381 -0
- package/dist/shadows/Prd02DepthShaderLibrary.js.map +1 -0
- package/dist/shadows/Prd02ReceiveShadowContributor.d.ts +20 -0
- package/dist/shadows/Prd02ReceiveShadowContributor.d.ts.map +1 -0
- package/dist/shadows/Prd02ReceiveShadowContributor.js +20 -0
- package/dist/shadows/Prd02ReceiveShadowContributor.js.map +1 -0
- package/dist/shadows/Prd02ShadowBridge.d.ts +111 -0
- package/dist/shadows/Prd02ShadowBridge.d.ts.map +1 -0
- package/dist/shadows/Prd02ShadowBridge.js +267 -0
- package/dist/shadows/Prd02ShadowBridge.js.map +1 -0
- package/dist/shadows/Prd02ShadowFilter.d.ts +29 -0
- package/dist/shadows/Prd02ShadowFilter.d.ts.map +1 -0
- package/dist/shadows/Prd02ShadowFilter.js +35 -0
- package/dist/shadows/Prd02ShadowFilter.js.map +1 -0
- package/dist/shadows/Prd02ShadowsContributor.d.ts +44 -0
- package/dist/shadows/Prd02ShadowsContributor.d.ts.map +1 -0
- package/dist/shadows/Prd02ShadowsContributor.js +197 -0
- package/dist/shadows/Prd02ShadowsContributor.js.map +1 -0
- package/dist/shadows/ShadowAtlas.d.ts +59 -0
- package/dist/shadows/ShadowAtlas.d.ts.map +1 -0
- package/dist/shadows/ShadowAtlas.js +137 -0
- package/dist/shadows/ShadowAtlas.js.map +1 -0
- package/dist/shadows/ShadowDebugViews.d.ts +5 -0
- package/dist/shadows/ShadowDebugViews.d.ts.map +1 -1
- package/dist/shadows/ShadowDebugViews.js +15 -10
- package/dist/shadows/ShadowDebugViews.js.map +1 -1
- package/dist/shadows/ShadowFrameBinding.d.ts +18 -0
- package/dist/shadows/ShadowFrameBinding.d.ts.map +1 -0
- package/dist/shadows/ShadowFrameBinding.js +52 -0
- package/dist/shadows/ShadowFrameBinding.js.map +1 -0
- package/dist/shadows/ShadowSystem.d.ts +125 -0
- package/dist/shadows/ShadowSystem.d.ts.map +1 -0
- package/dist/shadows/ShadowSystem.js +293 -0
- package/dist/shadows/ShadowSystem.js.map +1 -0
- package/dist/textures/TextureBudget.d.ts +42 -0
- package/dist/textures/TextureBudget.d.ts.map +1 -0
- package/dist/textures/TextureBudget.js +180 -0
- package/dist/textures/TextureBudget.js.map +1 -0
- package/dist/vfx/BeamPass.d.ts +42 -0
- package/dist/vfx/BeamPass.d.ts.map +1 -0
- package/dist/vfx/BeamPass.js +249 -0
- package/dist/vfx/BeamPass.js.map +1 -0
- package/dist/vfx/BlendFallback.d.ts +19 -0
- package/dist/vfx/BlendFallback.d.ts.map +1 -0
- package/dist/vfx/BlendFallback.js +73 -0
- package/dist/vfx/BlendFallback.js.map +1 -0
- package/dist/vfx/DecalBatch.d.ts +120 -0
- package/dist/vfx/DecalBatch.d.ts.map +1 -0
- package/dist/vfx/DecalBatch.js +234 -0
- package/dist/vfx/DecalBatch.js.map +1 -0
- package/dist/vfx/DecalPass.d.ts +63 -0
- package/dist/vfx/DecalPass.d.ts.map +1 -0
- package/dist/vfx/DecalPass.js +159 -0
- package/dist/vfx/DecalPass.js.map +1 -0
- package/dist/vfx/LowResParticles.d.ts +31 -0
- package/dist/vfx/LowResParticles.d.ts.map +1 -0
- package/dist/vfx/LowResParticles.js +151 -0
- package/dist/vfx/LowResParticles.js.map +1 -0
- package/dist/vfx/MeshParticleBatch.d.ts +49 -0
- package/dist/vfx/MeshParticleBatch.d.ts.map +1 -0
- package/dist/vfx/MeshParticleBatch.js +184 -0
- package/dist/vfx/MeshParticleBatch.js.map +1 -0
- package/dist/vfx/MeshParticlePass.d.ts +28 -0
- package/dist/vfx/MeshParticlePass.d.ts.map +1 -0
- package/dist/vfx/MeshParticlePass.js +150 -0
- package/dist/vfx/MeshParticlePass.js.map +1 -0
- package/dist/vfx/ParticleBatchPass.d.ts +61 -0
- package/dist/vfx/ParticleBatchPass.d.ts.map +1 -0
- package/dist/vfx/ParticleBatchPass.js +320 -0
- package/dist/vfx/ParticleBatchPass.js.map +1 -0
- package/dist/vfx/ParticleGpuSim.d.ts +85 -0
- package/dist/vfx/ParticleGpuSim.d.ts.map +1 -0
- package/dist/vfx/ParticleGpuSim.js +301 -0
- package/dist/vfx/ParticleGpuSim.js.map +1 -0
- package/dist/vfx/ParticleInstanceLayout.d.ts +38 -0
- package/dist/vfx/ParticleInstanceLayout.d.ts.map +1 -0
- package/dist/vfx/ParticleInstanceLayout.js +105 -0
- package/dist/vfx/ParticleInstanceLayout.js.map +1 -0
- package/dist/vfx/ParticleSort.d.ts +21 -0
- package/dist/vfx/ParticleSort.d.ts.map +1 -0
- package/dist/vfx/ParticleSort.js +80 -0
- package/dist/vfx/ParticleSort.js.map +1 -0
- package/dist/vfx/ProceduralVolumeEmitter.d.ts +90 -0
- package/dist/vfx/ProceduralVolumeEmitter.d.ts.map +1 -0
- package/dist/vfx/ProceduralVolumeEmitter.js +155 -0
- package/dist/vfx/ProceduralVolumeEmitter.js.map +1 -0
- package/dist/vfx/RibbonBatch.d.ts +71 -0
- package/dist/vfx/RibbonBatch.d.ts.map +1 -0
- package/dist/vfx/RibbonBatch.js +234 -0
- package/dist/vfx/RibbonBatch.js.map +1 -0
- package/dist/vfx/RibbonPass.d.ts +21 -0
- package/dist/vfx/RibbonPass.d.ts.map +1 -0
- package/dist/vfx/RibbonPass.js +108 -0
- package/dist/vfx/RibbonPass.js.map +1 -0
- package/dist/vfx/SceneDepthAdapter.d.ts +28 -0
- package/dist/vfx/SceneDepthAdapter.d.ts.map +1 -0
- package/dist/vfx/SceneDepthAdapter.js +70 -0
- package/dist/vfx/SceneDepthAdapter.js.map +1 -0
- package/dist/vfx/VfxAtlas.d.ts +68 -0
- package/dist/vfx/VfxAtlas.d.ts.map +1 -0
- package/dist/vfx/VfxAtlas.js +106 -0
- package/dist/vfx/VfxAtlas.js.map +1 -0
- package/dist/vfx/contributors.d.ts +73 -0
- package/dist/vfx/contributors.d.ts.map +1 -0
- package/dist/vfx/contributors.js +615 -0
- package/dist/vfx/contributors.js.map +1 -0
- package/dist/vfx/decalLighting.d.ts +8 -0
- package/dist/vfx/decalLighting.d.ts.map +1 -0
- package/dist/vfx/decalLighting.js +53 -0
- package/dist/vfx/decalLighting.js.map +1 -0
- package/dist/vfx/depthSampler.d.ts +3 -0
- package/dist/vfx/depthSampler.d.ts.map +1 -0
- package/dist/vfx/depthSampler.js +10 -0
- package/dist/vfx/depthSampler.js.map +1 -0
- package/dist/vfx/prd07FeaturePars.d.ts +12 -0
- package/dist/vfx/prd07FeaturePars.d.ts.map +1 -0
- package/dist/vfx/prd07FeaturePars.js +54 -0
- package/dist/vfx/prd07FeaturePars.js.map +1 -0
- package/dist/vfx/shaders/beam.glsl.d.ts +11 -0
- package/dist/vfx/shaders/beam.glsl.d.ts.map +1 -0
- package/dist/vfx/shaders/beam.glsl.js +89 -0
- package/dist/vfx/shaders/beam.glsl.js.map +1 -0
- package/dist/vfx/shaders/decal.glsl.d.ts +14 -0
- package/dist/vfx/shaders/decal.glsl.d.ts.map +1 -0
- package/dist/vfx/shaders/decal.glsl.js +157 -0
- package/dist/vfx/shaders/decal.glsl.js.map +1 -0
- package/dist/vfx/shaders/gpu-sim.glsl.d.ts +5 -0
- package/dist/vfx/shaders/gpu-sim.glsl.d.ts.map +1 -0
- package/dist/vfx/shaders/gpu-sim.glsl.js +177 -0
- package/dist/vfx/shaders/gpu-sim.glsl.js.map +1 -0
- package/dist/vfx/shaders/lowresComposite.glsl.d.ts +9 -0
- package/dist/vfx/shaders/lowresComposite.glsl.d.ts.map +1 -0
- package/dist/vfx/shaders/lowresComposite.glsl.js +64 -0
- package/dist/vfx/shaders/lowresComposite.glsl.js.map +1 -0
- package/dist/vfx/shaders/mesh-particle.glsl.d.ts +4 -0
- package/dist/vfx/shaders/mesh-particle.glsl.d.ts.map +1 -0
- package/dist/vfx/shaders/mesh-particle.glsl.js +55 -0
- package/dist/vfx/shaders/mesh-particle.glsl.js.map +1 -0
- package/dist/vfx/shaders/particle.glsl.d.ts +24 -0
- package/dist/vfx/shaders/particle.glsl.d.ts.map +1 -0
- package/dist/vfx/shaders/particle.glsl.js +215 -0
- package/dist/vfx/shaders/particle.glsl.js.map +1 -0
- package/dist/vfx/shaders/ribbon.glsl.d.ts +9 -0
- package/dist/vfx/shaders/ribbon.glsl.d.ts.map +1 -0
- package/dist/vfx/shaders/ribbon.glsl.js +60 -0
- package/dist/vfx/shaders/ribbon.glsl.js.map +1 -0
- package/dist/vfx/shaders/volume.glsl.d.ts +5 -0
- package/dist/vfx/shaders/volume.glsl.d.ts.map +1 -0
- package/dist/vfx/shaders/volume.glsl.js +52 -0
- package/dist/vfx/shaders/volume.glsl.js.map +1 -0
- package/dist/webgl2/ContextLifecycle.d.ts +43 -0
- package/dist/webgl2/ContextLifecycle.d.ts.map +1 -0
- package/dist/webgl2/ContextLifecycle.js +189 -0
- package/dist/webgl2/ContextLifecycle.js.map +1 -0
- package/dist/webgl2/Counters.d.ts +58 -0
- package/dist/webgl2/Counters.d.ts.map +1 -0
- package/dist/webgl2/Counters.js +207 -0
- package/dist/webgl2/Counters.js.map +1 -0
- package/dist/webgl2/DeviceHost.d.ts +41 -0
- package/dist/webgl2/DeviceHost.d.ts.map +1 -0
- package/dist/webgl2/DeviceHost.js +3 -0
- package/dist/webgl2/DeviceHost.js.map +1 -0
- package/dist/webgl2/LegacyPost.d.ts +279 -0
- package/dist/webgl2/LegacyPost.d.ts.map +1 -0
- package/dist/webgl2/LegacyPost.js +2480 -0
- package/dist/webgl2/LegacyPost.js.map +1 -0
- package/dist/webgl2/MultiDraw.d.ts +96 -0
- package/dist/webgl2/MultiDraw.d.ts.map +1 -0
- package/dist/webgl2/MultiDraw.js +716 -0
- package/dist/webgl2/MultiDraw.js.map +1 -0
- package/dist/webgl2/Probe.d.ts +27 -0
- package/dist/webgl2/Probe.d.ts.map +1 -0
- package/dist/webgl2/Probe.js +329 -0
- package/dist/webgl2/Probe.js.map +1 -0
- package/dist/webgl2/Samplers.d.ts +20 -0
- package/dist/webgl2/Samplers.d.ts.map +1 -0
- package/dist/webgl2/Samplers.js +179 -0
- package/dist/webgl2/Samplers.js.map +1 -0
- package/dist/webgl2/TextureFormats.d.ts +48 -0
- package/dist/webgl2/TextureFormats.d.ts.map +1 -0
- package/dist/webgl2/TextureFormats.js +185 -0
- package/dist/webgl2/TextureFormats.js.map +1 -0
- package/dist/webgl2/TextureUpload.d.ts +38 -0
- package/dist/webgl2/TextureUpload.d.ts.map +1 -0
- package/dist/webgl2/TextureUpload.js +346 -0
- package/dist/webgl2/TextureUpload.js.map +1 -0
- package/dist/webgpu/WebGPUBuffer.d.ts +1 -0
- package/dist/webgpu/WebGPUBuffer.d.ts.map +1 -1
- package/dist/webgpu/WebGPUCompute.d.ts +1 -0
- package/dist/webgpu/WebGPUCompute.d.ts.map +1 -1
- package/dist/webgpu/WebGPUCompute.js +1 -0
- package/dist/webgpu/WebGPUCompute.js.map +1 -1
- package/dist/webgpu/WebGPUPipelineCache.d.ts +4 -0
- package/dist/webgpu/WebGPUPipelineCache.d.ts.map +1 -1
- package/dist/webgpu/WebGPUPipelineCache.js +4 -0
- package/dist/webgpu/WebGPUPipelineCache.js.map +1 -1
- package/dist/webgpu/WebGPUPostShaders.d.ts.map +1 -1
- package/dist/webgpu/WebGPUPostShaders.js +33 -2
- package/dist/webgpu/WebGPUPostShaders.js.map +1 -1
- package/dist/webgpu/WebGPUTexture.d.ts +1 -0
- package/dist/webgpu/WebGPUTexture.d.ts.map +1 -1
- package/dist/webgpu/WebGPUTexture.js.map +1 -1
- package/dist/world/chunks.d.ts +15 -0
- package/dist/world/chunks.d.ts.map +1 -0
- package/dist/world/chunks.js +56 -0
- package/dist/world/chunks.js.map +1 -0
- package/dist/world/index.d.ts +38 -0
- package/dist/world/index.d.ts.map +1 -0
- package/dist/world/index.js +39 -0
- package/dist/world/index.js.map +1 -0
- package/dist/world/shared/shaders/worldLightFallback.d.ts +12 -0
- package/dist/world/shared/shaders/worldLightFallback.d.ts.map +1 -0
- package/dist/world/shared/shaders/worldLightFallback.js +82 -0
- package/dist/world/shared/shaders/worldLightFallback.js.map +1 -0
- package/dist/world/space/PlanetMaterial.d.ts +24 -0
- package/dist/world/space/PlanetMaterial.d.ts.map +1 -0
- package/dist/world/space/PlanetMaterial.js +82 -0
- package/dist/world/space/PlanetMaterial.js.map +1 -0
- package/dist/world/space/SpaceSkyBake.d.ts +46 -0
- package/dist/world/space/SpaceSkyBake.d.ts.map +1 -0
- package/dist/world/space/SpaceSkyBake.js +145 -0
- package/dist/world/space/SpaceSkyBake.js.map +1 -0
- package/dist/world/space/shaders/planet.d.ts +8 -0
- package/dist/world/space/shaders/planet.d.ts.map +1 -0
- package/dist/world/space/shaders/planet.js +55 -0
- package/dist/world/space/shaders/planet.js.map +1 -0
- package/dist/world/space/shaders/spaceBake.d.ts +9 -0
- package/dist/world/space/shaders/spaceBake.d.ts.map +1 -0
- package/dist/world/space/shaders/spaceBake.js +102 -0
- package/dist/world/space/shaders/spaceBake.js.map +1 -0
- package/dist/world/terrain/SplatBake.d.ts +76 -0
- package/dist/world/terrain/SplatBake.d.ts.map +1 -0
- package/dist/world/terrain/SplatBake.js +308 -0
- package/dist/world/terrain/SplatBake.js.map +1 -0
- package/dist/world/terrain/TerrainCdlod.d.ts +67 -0
- package/dist/world/terrain/TerrainCdlod.d.ts.map +1 -0
- package/dist/world/terrain/TerrainCdlod.js +115 -0
- package/dist/world/terrain/TerrainCdlod.js.map +1 -0
- package/dist/world/terrain/TerrainHeightTexture.d.ts +44 -0
- package/dist/world/terrain/TerrainHeightTexture.d.ts.map +1 -0
- package/dist/world/terrain/TerrainHeightTexture.js +173 -0
- package/dist/world/terrain/TerrainHeightTexture.js.map +1 -0
- package/dist/world/terrain/TerrainPatchGeometry.d.ts +18 -0
- package/dist/world/terrain/TerrainPatchGeometry.d.ts.map +1 -0
- package/dist/world/terrain/TerrainPatchGeometry.js +40 -0
- package/dist/world/terrain/TerrainPatchGeometry.js.map +1 -0
- package/dist/world/terrain/shaders/terrain.vert.glsl.d.ts +19 -0
- package/dist/world/terrain/shaders/terrain.vert.glsl.d.ts.map +1 -0
- package/dist/world/terrain/shaders/terrain.vert.glsl.js +162 -0
- package/dist/world/terrain/shaders/terrain.vert.glsl.js.map +1 -0
- package/dist/world/terrain/shaders/terrainCdlod.d.ts +23 -0
- package/dist/world/terrain/shaders/terrainCdlod.d.ts.map +1 -0
- package/dist/world/terrain/shaders/terrainCdlod.js +110 -0
- package/dist/world/terrain/shaders/terrainCdlod.js.map +1 -0
- package/dist/world/terrain/shaders/terrainSplat.d.ts +26 -0
- package/dist/world/terrain/shaders/terrainSplat.d.ts.map +1 -0
- package/dist/world/terrain/shaders/terrainSplat.js +181 -0
- package/dist/world/terrain/shaders/terrainSplat.js.map +1 -0
- package/dist/world/vegetation/FoliageMaterial.d.ts +14 -0
- package/dist/world/vegetation/FoliageMaterial.d.ts.map +1 -0
- package/dist/world/vegetation/FoliageMaterial.js +107 -0
- package/dist/world/vegetation/FoliageMaterial.js.map +1 -0
- package/dist/world/vegetation/GrassField.d.ts +43 -0
- package/dist/world/vegetation/GrassField.d.ts.map +1 -0
- package/dist/world/vegetation/GrassField.js +68 -0
- package/dist/world/vegetation/GrassField.js.map +1 -0
- package/dist/world/vegetation/ImpostorMaterial.d.ts +20 -0
- package/dist/world/vegetation/ImpostorMaterial.d.ts.map +1 -0
- package/dist/world/vegetation/ImpostorMaterial.js +80 -0
- package/dist/world/vegetation/ImpostorMaterial.js.map +1 -0
- package/dist/world/vegetation/InstanceChunkGrid.d.ts +67 -0
- package/dist/world/vegetation/InstanceChunkGrid.d.ts.map +1 -0
- package/dist/world/vegetation/InstanceChunkGrid.js +150 -0
- package/dist/world/vegetation/InstanceChunkGrid.js.map +1 -0
- package/dist/world/vegetation/WindCpu.d.ts +19 -0
- package/dist/world/vegetation/WindCpu.d.ts.map +1 -0
- package/dist/world/vegetation/WindCpu.js +43 -0
- package/dist/world/vegetation/WindCpu.js.map +1 -0
- package/dist/world/vegetation/WindField.d.ts +42 -0
- package/dist/world/vegetation/WindField.d.ts.map +1 -0
- package/dist/world/vegetation/WindField.js +154 -0
- package/dist/world/vegetation/WindField.js.map +1 -0
- package/dist/world/vegetation/shaders/foliage.d.ts +8 -0
- package/dist/world/vegetation/shaders/foliage.d.ts.map +1 -0
- package/dist/world/vegetation/shaders/foliage.js +104 -0
- package/dist/world/vegetation/shaders/foliage.js.map +1 -0
- package/dist/world/vegetation/shaders/grass.d.ts +10 -0
- package/dist/world/vegetation/shaders/grass.d.ts.map +1 -0
- package/dist/world/vegetation/shaders/grass.js +79 -0
- package/dist/world/vegetation/shaders/grass.js.map +1 -0
- package/dist/world/vegetation/shaders/impostor.d.ts +9 -0
- package/dist/world/vegetation/shaders/impostor.d.ts.map +1 -0
- package/dist/world/vegetation/shaders/impostor.js +97 -0
- package/dist/world/vegetation/shaders/impostor.js.map +1 -0
- package/dist/world/vegetation/shaders/wind.d.ts +9 -0
- package/dist/world/vegetation/shaders/wind.d.ts.map +1 -0
- package/dist/world/vegetation/shaders/wind.js +103 -0
- package/dist/world/vegetation/shaders/wind.js.map +1 -0
- package/dist/world/water/GerstnerWaves.d.ts +65 -0
- package/dist/world/water/GerstnerWaves.d.ts.map +1 -0
- package/dist/world/water/GerstnerWaves.js +182 -0
- package/dist/world/water/GerstnerWaves.js.map +1 -0
- package/dist/world/water/ReflectionViewPass.d.ts +46 -0
- package/dist/world/water/ReflectionViewPass.d.ts.map +1 -0
- package/dist/world/water/ReflectionViewPass.js +85 -0
- package/dist/world/water/ReflectionViewPass.js.map +1 -0
- package/dist/world/water/SceneCopyFallback.d.ts +21 -0
- package/dist/world/water/SceneCopyFallback.d.ts.map +1 -0
- package/dist/world/water/SceneCopyFallback.js +150 -0
- package/dist/world/water/SceneCopyFallback.js.map +1 -0
- package/dist/world/water/UnderwaterState.d.ts +25 -0
- package/dist/world/water/UnderwaterState.d.ts.map +1 -0
- package/dist/world/water/UnderwaterState.js +134 -0
- package/dist/world/water/UnderwaterState.js.map +1 -0
- package/dist/world/water/WaterMaterial.d.ts +23 -0
- package/dist/world/water/WaterMaterial.d.ts.map +1 -0
- package/dist/world/water/WaterMaterial.js +129 -0
- package/dist/world/water/WaterMaterial.js.map +1 -0
- package/dist/world/water/shaders/caustics.d.ts +13 -0
- package/dist/world/water/shaders/caustics.d.ts.map +1 -0
- package/dist/world/water/shaders/caustics.js +103 -0
- package/dist/world/water/shaders/caustics.js.map +1 -0
- package/dist/world/water/shaders/gerstner.d.ts +9 -0
- package/dist/world/water/shaders/gerstner.d.ts.map +1 -0
- package/dist/world/water/shaders/gerstner.js +100 -0
- package/dist/world/water/shaders/gerstner.js.map +1 -0
- package/dist/world/water/shaders/water.d.ts +12 -0
- package/dist/world/water/shaders/water.d.ts.map +1 -0
- package/dist/world/water/shaders/water.js +112 -0
- package/dist/world/water/shaders/water.js.map +1 -0
- package/package.json +32 -11
- package/dist/ArchitecturalMaterialCatalog.d.ts +0 -30
- package/dist/ArchitecturalMaterialCatalog.d.ts.map +0 -1
- package/dist/ArchitecturalMaterialCatalog.js +0 -90
- package/dist/ArchitecturalMaterialCatalog.js.map +0 -1
- package/dist/LeanWebGL2Device.d.ts +0 -265
- package/dist/LeanWebGL2Device.d.ts.map +0 -1
- package/dist/LeanWebGL2Device.js +0 -4001
- package/dist/LeanWebGL2Device.js.map +0 -1
- package/dist/advanced-runtime/AdvancedRenderer.d.ts +0 -23
- package/dist/advanced-runtime/AdvancedRenderer.d.ts.map +0 -1
- package/dist/advanced-runtime/AdvancedRenderer.js +0 -45
- package/dist/advanced-runtime/AdvancedRenderer.js.map +0 -1
- package/dist/animation/AnimationMaterialStyle.d.ts +0 -19
- package/dist/animation/AnimationMaterialStyle.d.ts.map +0 -1
- package/dist/animation/AnimationMaterialStyle.js +0 -13
- package/dist/animation/AnimationMaterialStyle.js.map +0 -1
- package/dist/cinematic/CinematicMaterialPresets.d.ts +0 -16
- package/dist/cinematic/CinematicMaterialPresets.d.ts.map +0 -1
- package/dist/cinematic/CinematicMaterialPresets.js +0 -114
- package/dist/cinematic/CinematicMaterialPresets.js.map +0 -1
- package/dist/lean/LeanProductRenderer.d.ts +0 -29
- package/dist/lean/LeanProductRenderer.d.ts.map +0 -1
- package/dist/lean/LeanProductRenderer.js +0 -38
- package/dist/lean/LeanProductRenderer.js.map +0 -1
- package/dist/lean/LeanProductionRenderer.d.ts +0 -38
- package/dist/lean/LeanProductionRenderer.d.ts.map +0 -1
- package/dist/lean/LeanProductionRenderer.js +0 -88
- package/dist/lean/LeanProductionRenderer.js.map +0 -1
- package/dist/lean-core-runtime.d.ts +0 -13
- package/dist/lean-core-runtime.d.ts.map +0 -1
- package/dist/lean-core-runtime.js +0 -10
- package/dist/lean-core-runtime.js.map +0 -1
- package/dist/lean-runtime.d.ts +0 -18
- package/dist/lean-runtime.d.ts.map +0 -1
- package/dist/lean-runtime.js +0 -13
- package/dist/lean-runtime.js.map +0 -1
- package/dist/materials/TransmissionPass.d.ts +0 -16
- package/dist/materials/TransmissionPass.d.ts.map +0 -1
- package/dist/materials/TransmissionPass.js +0 -30
- package/dist/materials/TransmissionPass.js.map +0 -1
- package/dist/production-runtime/ProductionEffectsPipeline.d.ts +0 -20
- package/dist/production-runtime/ProductionEffectsPipeline.d.ts.map +0 -1
- package/dist/production-runtime/ProductionEffectsPipeline.js +0 -65
- package/dist/production-runtime/ProductionEffectsPipeline.js.map +0 -1
- package/dist/production-runtime/ProductionRuntimeRenderer.d.ts +0 -44
- package/dist/production-runtime/ProductionRuntimeRenderer.d.ts.map +0 -1
- package/dist/production-runtime/ProductionRuntimeRenderer.js +0 -179
- package/dist/production-runtime/ProductionRuntimeRenderer.js.map +0 -1
- package/dist/production-runtime/ProductionWebGL2Renderer.d.ts +0 -65
- package/dist/production-runtime/ProductionWebGL2Renderer.d.ts.map +0 -1
- package/dist/production-runtime/ProductionWebGL2Renderer.js +0 -305
- package/dist/production-runtime/ProductionWebGL2Renderer.js.map +0 -1
- package/dist/threejs-example-parity/index.d.ts +0 -57
- package/dist/threejs-example-parity/index.d.ts.map +0 -1
- package/dist/threejs-example-parity/index.js +0 -139
- package/dist/threejs-example-parity/index.js.map +0 -1
|
@@ -0,0 +1,760 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `program/ProgramGenerator.ts` (PRD-01 §6.4, §8.1, §8.5, §8.7) — C-02 real impl.
|
|
3
|
+
*
|
|
4
|
+
* Assembles GLSL ES 3.00 vertex+fragment sources from a normalized
|
|
5
|
+
* `ProgramFeatures` record:
|
|
6
|
+
* `#version 300 es`, precision, `#define` block, lane-01 chunks
|
|
7
|
+
* (common/colorspace/brdf/normal/instancing/alpha/lights_legacy/
|
|
8
|
+
* indirect_default/fog_default/depth) with registered C-02 chunks spliced
|
|
9
|
+
* at the hook points in `(feature.order, feature.id)` order.
|
|
10
|
+
*
|
|
11
|
+
* Splice convention (pars/call split, T0-05): a ShaderFeature's `chunks[i]`
|
|
12
|
+
* lands at `hooks[min(i, hooks.length - 1)]`.
|
|
13
|
+
* - Declaration hooks (`vertex:pars`, `vertex:deform`, `fragment:pars`) emit
|
|
14
|
+
* the chunk at global scope before `main`.
|
|
15
|
+
* - Body hooks emit the chunk (a *call* chunk: statements only) inside
|
|
16
|
+
* `main`; its `requires` closure is emitted at global scope.
|
|
17
|
+
* - `requires` are resolved requires-first (depth-first post-order), each
|
|
18
|
+
* chunk at most once per stage. `brdf`/`common` name the built-in lane-01
|
|
19
|
+
* chunks. A missing or cyclic `requires` throws (`SHADER_CHUNK_MISSING` /
|
|
20
|
+
* `SHADER_CHUNK_CYCLE`), which the cache reports as C-36
|
|
21
|
+
* `program-compile-failed`. Missing chunks are never skipped silently.
|
|
22
|
+
* - `fragment:indirect` contributions are appended after the default
|
|
23
|
+
* indirect body (ambient + env); every other body hook that a feature
|
|
24
|
+
* claims replaces that hook's default. One exception (E3 stage-2b):
|
|
25
|
+
* under A3D_QR_COMPILER ∧ A3D_QR_LIGHTING the `prd02.ibl` contribution
|
|
26
|
+
* REPLACES the default indirect body instead of appending to it.
|
|
27
|
+
* The `vertex:deform` call is canonical: the generator emits
|
|
28
|
+
* `a3dDeform(pos, nrm, tan)` when a registered feature claims the hook and
|
|
29
|
+
* the C-18 passthrough otherwise (CONTRACTS §8.5).
|
|
30
|
+
*
|
|
31
|
+
* C-03 lobes (lit forward programs): `chunks.pars` is emitted at global scope,
|
|
32
|
+
* `chunks.fragment` is a call chunk at `fragment:material` (after
|
|
33
|
+
* `PhysicalMaterial material` exists), and `chunks.ibl` is a call chunk
|
|
34
|
+
* appended to `fragment:indirect`. A record's extension matches a lobe by
|
|
35
|
+
* `lobe.id` or `lobe.glTFExtension`. Each active lobe defines
|
|
36
|
+
* `A3D_LOBE_<ID>` (plus `A3D_LOBE_<ID>_<BIT>` for truthy bits) so chunk
|
|
37
|
+
* guards follow the record.
|
|
38
|
+
*
|
|
39
|
+
* Unknown extensions (`features.extensions` with no matching C-03 lobe in
|
|
40
|
+
* `materialLobes`) record `extension-lobe-pending` (`ownerPrd: 4`) into
|
|
41
|
+
* `programDegradationLog` and through the optional sink.
|
|
42
|
+
*/
|
|
43
|
+
import { shaderChunk, shaderFeaturesFor, installProgramGenerator } from "../contracts/program.js";
|
|
44
|
+
import { materialLobes } from "../contracts/materialLobes.js";
|
|
45
|
+
import { COMMON_CHUNK_GLSL } from "./chunks/common.glsl.js";
|
|
46
|
+
import { BRDF_CHUNK_GLSL } from "./chunks/brdf.glsl.js";
|
|
47
|
+
import { NORMAL_CHUNK_GLSL } from "./chunks/normal.glsl.js";
|
|
48
|
+
import { INSTANCING_VERTEX_PARS_GLSL, INSTANCING_VERTEX_BODY_GLSL } from "./chunks/instancing.glsl.js";
|
|
49
|
+
import { ALPHA_CHUNK_GLSL } from "./chunks/alpha.glsl.js";
|
|
50
|
+
import { LIGHTS_LEGACY_CHUNK_GLSL } from "./chunks/lights_legacy.glsl.js";
|
|
51
|
+
import { SHADOW_FORWARD_CHUNK_GLSL } from "./chunks/shadow_forward.glsl.js";
|
|
52
|
+
import { INDIRECT_DEFAULT_CHUNK_GLSL } from "./chunks/indirect_default.glsl.js";
|
|
53
|
+
import { FOG_DEFAULT_CHUNK_GLSL } from "./chunks/fog_default.glsl.js";
|
|
54
|
+
import { DEPTH_CHUNK_GLSL, DISTANCE_CHUNK_PARS_GLSL } from "./chunks/depth.glsl.js";
|
|
55
|
+
import { normalizeProgramFeatures, totalLightCount, MAP_DEFINES } from "./ProgramFeatures.js";
|
|
56
|
+
import { programKey } from "./ProgramKey.js";
|
|
57
|
+
import { PRD02_IBL_FEATURE } from "../contracts/environment.js";
|
|
58
|
+
export const GENERATED_PROGRAM_MARKER = "a3d-generated-program";
|
|
59
|
+
/** Process-local log of generator-recorded degradations (drained by diagnostics/tests). */
|
|
60
|
+
export const programDegradationLog = [];
|
|
61
|
+
/** Lane-11 WGSL emitter hook: registered via `registerProgramWgslEmitter`. */
|
|
62
|
+
let wgslEmitter;
|
|
63
|
+
export function registerProgramWgslEmitter(emitter) {
|
|
64
|
+
wgslEmitter = emitter;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* E3 conjunction (stages 1/2a/2b): `A3D_QR_COMPILER` ∧ `A3D_QR_LIGHTING`.
|
|
68
|
+
* The generator is the last enforcement point for the stage-2b indirect-body
|
|
69
|
+
* replacement — a `prd02.ibl` bit in a record must never splice (or replace)
|
|
70
|
+
* anything conjunction-off, however the record was built.
|
|
71
|
+
*/
|
|
72
|
+
function e3CompilerLightingOn(flags) {
|
|
73
|
+
return flags !== undefined && flags.on("A3D_QR_COMPILER") && flags.on("A3D_QR_LIGHTING");
|
|
74
|
+
}
|
|
75
|
+
/** Resolve contributing features from the record's `features` bits, in (order, id) order. */
|
|
76
|
+
function contributingFeatures(f, flags) {
|
|
77
|
+
const out = [];
|
|
78
|
+
if (!flags)
|
|
79
|
+
return out;
|
|
80
|
+
for (const feature of shaderFeaturesFor(flags)) {
|
|
81
|
+
if (feature.id === PRD02_IBL_FEATURE && !e3CompilerLightingOn(flags))
|
|
82
|
+
continue;
|
|
83
|
+
const value = f.features[feature.id];
|
|
84
|
+
if (value !== undefined)
|
|
85
|
+
out.push({ feature, value });
|
|
86
|
+
}
|
|
87
|
+
return out;
|
|
88
|
+
}
|
|
89
|
+
function definesFor(f, contributions) {
|
|
90
|
+
const d = {};
|
|
91
|
+
// Chunk-guard vocabulary for registered chunks (T0-05): generated program,
|
|
92
|
+
// lit forward shading, and the bucketed direct-light count a lobe call chunk
|
|
93
|
+
// may loop over with `a3dLegacyLightRadiance` (0 on the clustered path).
|
|
94
|
+
d.A3D_GENERATED_PROGRAM = true;
|
|
95
|
+
if (f.pass === "forward" && f.lighting === "lit")
|
|
96
|
+
d.A3D_LIT = true;
|
|
97
|
+
d.A3D_NUM_DIRECT_LIGHTS = directLightLoopBound(f);
|
|
98
|
+
if (f.instancing) {
|
|
99
|
+
d.USE_INSTANCING = true;
|
|
100
|
+
if (f.instancing.color)
|
|
101
|
+
d.USE_INSTANCING_COLOR = true;
|
|
102
|
+
if (f.instancing.emissive)
|
|
103
|
+
d.USE_INSTANCING_EMISSIVE = true;
|
|
104
|
+
}
|
|
105
|
+
if (f.vertexColors)
|
|
106
|
+
d.VERTEX_COLORS = true;
|
|
107
|
+
for (const [slot, define] of MAP_DEFINES) {
|
|
108
|
+
const map = f.maps[slot];
|
|
109
|
+
if (!map)
|
|
110
|
+
continue;
|
|
111
|
+
d[define] = true;
|
|
112
|
+
if (map.uvSet === 1)
|
|
113
|
+
d[`${define}_UV1`] = true;
|
|
114
|
+
if (map.transform)
|
|
115
|
+
d[`${define}_TRANSFORM`] = true;
|
|
116
|
+
}
|
|
117
|
+
if (f.maps.normal)
|
|
118
|
+
d.USE_NORMAL_MAP = true;
|
|
119
|
+
if (f.alphaMode === "mask")
|
|
120
|
+
d.ALPHA_MASK = true;
|
|
121
|
+
if (f.alphaMode === "blend")
|
|
122
|
+
d.ALPHA_BLEND = true;
|
|
123
|
+
if (f.doubleSided)
|
|
124
|
+
d.DOUBLE_SIDED = true;
|
|
125
|
+
if (f.flatShading)
|
|
126
|
+
d.FLAT_SHADING = true;
|
|
127
|
+
if (f.diffuseModel === "burley")
|
|
128
|
+
d.DIFFUSE_BURLEY = true;
|
|
129
|
+
if (f.specularAntialiasing)
|
|
130
|
+
d.SPECULAR_AA = true;
|
|
131
|
+
if (f.backgroundCoverage)
|
|
132
|
+
d.BACKGROUND_COVERAGE = true;
|
|
133
|
+
if (f.environment === "equirect")
|
|
134
|
+
d.ENVMAP_TYPE_EQUIRECT = true;
|
|
135
|
+
if (f.environment === "pmrem-cube")
|
|
136
|
+
d.ENVMAP_TYPE_CUBE_UV = true;
|
|
137
|
+
// Either sampler provides a3dSampleEnvironment (indirect_default); the
|
|
138
|
+
// default indirect body and C-03 lobe IBL calls guard on this.
|
|
139
|
+
if (f.environment !== "none")
|
|
140
|
+
d.A3D_ENV_SAMPLE = true;
|
|
141
|
+
if (f.fog === "linear")
|
|
142
|
+
d.FOG_LINEAR = true;
|
|
143
|
+
if (f.fog === "exp2" || f.fog === "height")
|
|
144
|
+
d.FOG_EXP2 = true;
|
|
145
|
+
if (f.fog === "height")
|
|
146
|
+
d.FOG_HEIGHT = true;
|
|
147
|
+
if (f.skinning)
|
|
148
|
+
d.USE_SKINNING = true;
|
|
149
|
+
if (f.morph)
|
|
150
|
+
d.USE_MORPH = true;
|
|
151
|
+
if (f.drawId)
|
|
152
|
+
d.USE_DRAW_ID = true;
|
|
153
|
+
// #1140: clustering follows the pass's resolved cluster resources only
|
|
154
|
+
// (ForwardPass: more than FORWARD_DIRECT_LIGHT_CAPACITY lights). Up to 16
|
|
155
|
+
// lights live in u_lightData; a bucket sum above 8 is not "clustered".
|
|
156
|
+
if (f.lights.clustered) {
|
|
157
|
+
d.LIGHTS_CLUSTERED = true;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
d.NUM_DIR_LIGHTS = f.lights.dir;
|
|
161
|
+
d.NUM_POINT_LIGHTS = f.lights.point;
|
|
162
|
+
d.NUM_SPOT_LIGHTS = f.lights.spot;
|
|
163
|
+
d.NUM_RECT_LIGHTS = f.lights.rect;
|
|
164
|
+
}
|
|
165
|
+
if (f.lights.hemisphere)
|
|
166
|
+
d.LIGHT_HEMISPHERE = true;
|
|
167
|
+
if (f.shadows.cascades > 0)
|
|
168
|
+
d.NUM_SHADOW_CASCADES = f.shadows.cascades;
|
|
169
|
+
if (f.shadows.pcfTaps > 1)
|
|
170
|
+
d.SHADOW_PCF_TAPS = f.shadows.pcfTaps;
|
|
171
|
+
if (f.shadows.localShadows > 0)
|
|
172
|
+
d.NUM_LOCAL_SHADOWS = f.shadows.localShadows;
|
|
173
|
+
if (f.shadows.contact)
|
|
174
|
+
d.SHADOW_CONTACT = true;
|
|
175
|
+
for (const { feature, value } of contributions) {
|
|
176
|
+
Object.assign(d, feature.defines(value));
|
|
177
|
+
}
|
|
178
|
+
return d;
|
|
179
|
+
}
|
|
180
|
+
/** Lane-01 chunks emitted at fixed slots; registered chunks may `require` them by name. */
|
|
181
|
+
const BUILTIN_CHUNKS = new Set(["brdf", "common"]);
|
|
182
|
+
/** Hooks whose chunks are global-scope declarations (everything else is a body hook inside `main`). */
|
|
183
|
+
const DECLARATION_HOOKS = new Set(["vertex:pars", "vertex:deform", "fragment:pars"]);
|
|
184
|
+
function newSpliceState() {
|
|
185
|
+
return { seen: new Set(), decls: [], builtins: new Set() };
|
|
186
|
+
}
|
|
187
|
+
function requireChunk(name, requiredBy) {
|
|
188
|
+
const chunk = shaderChunk(name);
|
|
189
|
+
if (!chunk)
|
|
190
|
+
throw new Error(`SHADER_CHUNK_MISSING:${name}${requiredBy ? ` (required by ${requiredBy})` : ""}`);
|
|
191
|
+
return chunk;
|
|
192
|
+
}
|
|
193
|
+
/** Emit `name` and its `requires` closure at global scope, requires first (depth-first post-order). */
|
|
194
|
+
function emitDeclaration(state, name, path = []) {
|
|
195
|
+
if (BUILTIN_CHUNKS.has(name)) {
|
|
196
|
+
state.builtins.add(name);
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
if (state.seen.has(name))
|
|
200
|
+
return;
|
|
201
|
+
if (path.includes(name))
|
|
202
|
+
throw new Error(`SHADER_CHUNK_CYCLE:${[...path, name].join(" > ")}`);
|
|
203
|
+
const chunk = requireChunk(name, path[path.length - 1]);
|
|
204
|
+
for (const req of chunk.requires ?? [])
|
|
205
|
+
emitDeclaration(state, req, [...path, name]);
|
|
206
|
+
state.seen.add(name);
|
|
207
|
+
state.decls.push(chunk.glsl);
|
|
208
|
+
}
|
|
209
|
+
/** A call chunk: its `requires` go to global scope; its own GLSL is returned for `main`. */
|
|
210
|
+
function emitCall(state, name) {
|
|
211
|
+
const chunk = requireChunk(name, undefined);
|
|
212
|
+
for (const req of chunk.requires ?? [])
|
|
213
|
+
emitDeclaration(state, req, [name]);
|
|
214
|
+
return chunk.glsl;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Splice one hook in (feature.order, feature.id) order. Declaration hooks
|
|
218
|
+
* append to `state.decls` and return []; body hooks return the call chunks
|
|
219
|
+
* for `main` (each at most once per hook). A chunk the same feature also maps
|
|
220
|
+
* to a declaration hook is a declaration chunk: at a body hook it is declared
|
|
221
|
+
* for this stage instead of being spliced into `main` (e.g. a `stage:"both"`
|
|
222
|
+
* chunk listed at `vertex:pars` + `fragment:material`).
|
|
223
|
+
*/
|
|
224
|
+
function hookSplice(contributions, hook, state) {
|
|
225
|
+
const bodies = [];
|
|
226
|
+
const bodySeen = new Set();
|
|
227
|
+
const declaration = DECLARATION_HOOKS.has(hook);
|
|
228
|
+
for (const { feature } of contributions) {
|
|
229
|
+
const idx = feature.hooks.indexOf(hook);
|
|
230
|
+
if (idx === -1 || feature.chunks.length === 0)
|
|
231
|
+
continue;
|
|
232
|
+
const chunkAt = (i) => feature.chunks[Math.min(i, feature.chunks.length - 1)];
|
|
233
|
+
const chosen = chunkAt(idx);
|
|
234
|
+
if (chosen === undefined)
|
|
235
|
+
continue;
|
|
236
|
+
const declaredByFeature = feature.hooks.some((h, i) => DECLARATION_HOOKS.has(h) && chunkAt(i) === chosen);
|
|
237
|
+
if (declaration || declaredByFeature) {
|
|
238
|
+
emitDeclaration(state, chosen);
|
|
239
|
+
}
|
|
240
|
+
else if (!bodySeen.has(chosen)) {
|
|
241
|
+
bodySeen.add(chosen);
|
|
242
|
+
bodies.push(emitCall(state, chosen));
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return bodies;
|
|
246
|
+
}
|
|
247
|
+
function hasHookContributor(contributions, hook) {
|
|
248
|
+
return contributions.some(({ feature }) => feature.hooks.includes(hook));
|
|
249
|
+
}
|
|
250
|
+
const VERTEX_ATTRIBUTES = `layout(location = 0) in vec3 a_position;
|
|
251
|
+
#ifdef A3D_NEED_NORMAL
|
|
252
|
+
layout(location = 1) in vec3 a_normal;
|
|
253
|
+
#endif
|
|
254
|
+
#ifdef A3D_NEED_UV0
|
|
255
|
+
layout(location = 2) in vec2 a_uv;
|
|
256
|
+
#endif
|
|
257
|
+
#ifdef A3D_NEED_UV1
|
|
258
|
+
layout(location = 7) in vec2 a_uv1;
|
|
259
|
+
#endif
|
|
260
|
+
#ifdef VERTEX_COLORS
|
|
261
|
+
layout(location = 4) in vec4 a_color;
|
|
262
|
+
#endif`;
|
|
263
|
+
function vertexSource(f, contributions, defines, marker) {
|
|
264
|
+
// Stage define: `both`-stage chunks branch on A3D_STAGE_VERTEX (C-02 §8.5).
|
|
265
|
+
const localDefines = { ...defines, A3D_STAGE_VERTEX: true };
|
|
266
|
+
const state = newSpliceState();
|
|
267
|
+
// vertex:pars + vertex:deform contributors declare at global scope (the
|
|
268
|
+
// deform chunk declares a3dDeform(); the call is canonical inside main(),
|
|
269
|
+
// C-18, CONTRACTS §8.5).
|
|
270
|
+
hookSplice(contributions, "vertex:pars", state);
|
|
271
|
+
hookSplice(contributions, "vertex:deform", state);
|
|
272
|
+
const worldHooks = hookSplice(contributions, "vertex:world", state);
|
|
273
|
+
const endHooks = hookSplice(contributions, "vertex:end", state);
|
|
274
|
+
if (state.builtins.has("brdf"))
|
|
275
|
+
throw new Error("SHADER_CHUNK_STAGE:brdf is fragment-only (required by a vertex hook chunk)");
|
|
276
|
+
const deformCall = hasHookContributor(contributions, "vertex:deform")
|
|
277
|
+
? " a3dDeform(a3dDeformPos, objectNormal, objectTangent); // C-18"
|
|
278
|
+
: " // C-18 passthrough: no deform chunk registered";
|
|
279
|
+
const decls = [
|
|
280
|
+
"#version 300 es",
|
|
281
|
+
`// ${marker}`,
|
|
282
|
+
"precision highp float;",
|
|
283
|
+
emitDefines(localDefines),
|
|
284
|
+
COMMON_CHUNK_GLSL,
|
|
285
|
+
"uniform mat4 u_modelMatrix;",
|
|
286
|
+
"uniform mat4 u_geometryMatrix;",
|
|
287
|
+
"uniform mat4 u_normalMatrix;",
|
|
288
|
+
"uniform float u_pointSize;",
|
|
289
|
+
VERTEX_ATTRIBUTES,
|
|
290
|
+
INSTANCING_VERTEX_PARS_GLSL,
|
|
291
|
+
...state.decls,
|
|
292
|
+
"out vec3 v_worldPosition;",
|
|
293
|
+
"#ifdef A3D_NEED_NORMAL\nout vec3 v_normal;\n#endif",
|
|
294
|
+
"#ifdef A3D_NEED_UV0\nout vec2 v_uv;\n#endif",
|
|
295
|
+
"#ifdef A3D_NEED_UV1\nout vec2 v_uv1;\n#endif",
|
|
296
|
+
"#ifdef VERTEX_COLORS\nout vec4 v_color;\n#endif",
|
|
297
|
+
// #1140: per-instance colour reaches the fragment (legacy instanced-pbr multiplies base rgba).
|
|
298
|
+
"#ifdef USE_INSTANCING_COLOR\nout vec4 v_instanceColor;\n#endif"
|
|
299
|
+
];
|
|
300
|
+
const body = [
|
|
301
|
+
"void main() {",
|
|
302
|
+
" vec3 transformed = a_position;",
|
|
303
|
+
" vec3 objectNormal = vec3(0.0, 0.0, 1.0);",
|
|
304
|
+
"#ifdef A3D_NEED_NORMAL",
|
|
305
|
+
" objectNormal = a_normal;",
|
|
306
|
+
"#endif",
|
|
307
|
+
" vec4 objectTangent = vec4(0.0);",
|
|
308
|
+
" vec4 a3dDeformPos = vec4(transformed, 1.0);",
|
|
309
|
+
deformCall,
|
|
310
|
+
" transformed = a3dDeformPos.xyz;",
|
|
311
|
+
INSTANCING_VERTEX_BODY_GLSL,
|
|
312
|
+
...worldHooks,
|
|
313
|
+
" v_worldPosition = a3dWorld.xyz;",
|
|
314
|
+
"#ifdef A3D_NEED_NORMAL",
|
|
315
|
+
" vec3 a3dWorldNormal = mat3(u_modelMatrix) * (mat3(instanceMatrix) * objectNormal);",
|
|
316
|
+
" v_normal = normalize(a3dWorldNormal);",
|
|
317
|
+
"#endif",
|
|
318
|
+
"#ifdef A3D_NEED_UV0\n v_uv = a_uv;\n#endif",
|
|
319
|
+
"#ifdef A3D_NEED_UV1\n v_uv1 = a_uv1;\n#endif",
|
|
320
|
+
"#ifdef VERTEX_COLORS\n v_color = a_color;\n#endif",
|
|
321
|
+
"#ifdef USE_INSTANCING_COLOR\n v_instanceColor = a_instanceColor;\n#endif",
|
|
322
|
+
" gl_Position = u_viewProjection * a3dWorld;",
|
|
323
|
+
" gl_PointSize = u_pointSize;",
|
|
324
|
+
...endHooks,
|
|
325
|
+
"}"
|
|
326
|
+
];
|
|
327
|
+
return [...decls, ...body].join("\n");
|
|
328
|
+
}
|
|
329
|
+
function emitDefines(defines) {
|
|
330
|
+
return Object.entries(defines)
|
|
331
|
+
.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))
|
|
332
|
+
.map(([name, value]) => `#define ${name} ${value === true ? "1" : String(value)}`)
|
|
333
|
+
.join("\n");
|
|
334
|
+
}
|
|
335
|
+
const MATERIAL_UNIFORMS = `uniform vec4 u_baseColor;
|
|
336
|
+
uniform float u_metallic;
|
|
337
|
+
uniform float u_roughness;
|
|
338
|
+
uniform vec3 u_emissiveColor;
|
|
339
|
+
uniform float u_emissiveStrength;
|
|
340
|
+
uniform float u_ior;
|
|
341
|
+
uniform vec3 u_specularColorFactor;
|
|
342
|
+
uniform float u_specularIntensity;
|
|
343
|
+
#ifdef USE_BASE_COLOR_MAP
|
|
344
|
+
uniform sampler2D u_baseColorMap;
|
|
345
|
+
#endif
|
|
346
|
+
#ifdef USE_METALLIC_ROUGHNESS_MAP
|
|
347
|
+
uniform sampler2D u_metallicRoughnessMap;
|
|
348
|
+
#endif
|
|
349
|
+
#ifdef USE_OCCLUSION_MAP
|
|
350
|
+
uniform sampler2D u_occlusionMap;
|
|
351
|
+
#endif
|
|
352
|
+
#ifdef USE_EMISSIVE_MAP
|
|
353
|
+
uniform sampler2D u_emissiveMap;
|
|
354
|
+
#endif`;
|
|
355
|
+
const FRAGMENT_VARYINGS = `in vec3 v_worldPosition;
|
|
356
|
+
#ifdef A3D_NEED_NORMAL
|
|
357
|
+
in vec3 v_normal;
|
|
358
|
+
#endif
|
|
359
|
+
#ifdef A3D_NEED_UV0
|
|
360
|
+
in vec2 v_uv;
|
|
361
|
+
#endif
|
|
362
|
+
#ifdef A3D_NEED_UV1
|
|
363
|
+
in vec2 v_uv1;
|
|
364
|
+
#endif
|
|
365
|
+
#ifdef VERTEX_COLORS
|
|
366
|
+
in vec4 v_color;
|
|
367
|
+
#endif
|
|
368
|
+
#ifdef USE_INSTANCING_COLOR
|
|
369
|
+
in vec4 v_instanceColor;
|
|
370
|
+
#endif`;
|
|
371
|
+
/** u_lightData capacity (LightUniforms.pack MAX_DIRECT_LIGHTS, `u_lightData[96]` = 16 × 6 vec4). */
|
|
372
|
+
const MAX_PACKED_DIRECT_LIGHTS = 16;
|
|
373
|
+
/**
|
|
374
|
+
* Compile-time bound of the `u_lightData` loop (#1140). Buckets {0,1,2,4}
|
|
375
|
+
* are exact upper bounds; a per-kind bucket of 8 means "5 or more", so any
|
|
376
|
+
* total above 4 compiles the full packed capacity. The loop also breaks at
|
|
377
|
+
* the runtime `u_lightCount`, so unused slots are never shaded. Clustered
|
|
378
|
+
* programs read lights from the cluster textures only.
|
|
379
|
+
*/
|
|
380
|
+
function directLightLoopBound(f) {
|
|
381
|
+
if (f.lights.clustered)
|
|
382
|
+
return 0;
|
|
383
|
+
const total = totalLightCount(f.lights);
|
|
384
|
+
return total <= 4 ? total : MAX_PACKED_DIRECT_LIGHTS;
|
|
385
|
+
}
|
|
386
|
+
/** #1225: the draw carries a forward shadow map (`ForwardPass` sets cascades > 0). */
|
|
387
|
+
function forwardShadowReceive(f) {
|
|
388
|
+
return f.lighting === "lit" && f.pass === "forward" && f.shadows.cascades > 0;
|
|
389
|
+
}
|
|
390
|
+
/** Default `fragment:lights` body: `u_lightData` kind-discriminated loop.
|
|
391
|
+
* `a3dLegacyLightRadiance` switches on directionKind.w, so packing order is
|
|
392
|
+
* irrelevant. Clustered (cluster resources bound), only the cluster path runs. */
|
|
393
|
+
function defaultLightsBody(f, lobeDirect = []) {
|
|
394
|
+
const lines = [" vec3 L;"];
|
|
395
|
+
// #1225: a draw with a bound forward shadow map (cascades > 0) scales the
|
|
396
|
+
// shadow-casting light by the legacy forward shadow factor.
|
|
397
|
+
const shadowed = forwardShadowReceive(f);
|
|
398
|
+
// C-03 per-light lobe hook (04-LOBES): each active lobe's `direct` call chunk
|
|
399
|
+
// runs inside every light iteration (bucketed AND clustered) with L, radiance,
|
|
400
|
+
// V, N, material and the direct accumulators in scope.
|
|
401
|
+
const direct = lobeDirect.map((s) => indent(indent(s)));
|
|
402
|
+
const bound = directLightLoopBound(f);
|
|
403
|
+
if (bound > 0) {
|
|
404
|
+
lines.push(` for (int i = 0; i < ${bound}; ++i) { // bucketed light count (bound; breaks at u_lightCount)`);
|
|
405
|
+
lines.push(" if (i >= int(u_lightCount)) break;");
|
|
406
|
+
lines.push(" vec3 radiance = a3dLegacyLightRadiance(i * 6, v_worldPosition, L);");
|
|
407
|
+
if (shadowed)
|
|
408
|
+
lines.push(" radiance *= a3dForwardLightShadow(u_lightData[i * 6 + 2].w, u_lightData[i * 6 + 3].z, v_worldPosition, N, L);");
|
|
409
|
+
lines.push(" a3dDirectLight(L, radiance, V, N, material, directDiffuse, directSpecular);");
|
|
410
|
+
lines.push(...direct);
|
|
411
|
+
lines.push(" }");
|
|
412
|
+
}
|
|
413
|
+
// Cluster index texel layout (forward/Lighting.ts createClusteredForwardLighting,
|
|
414
|
+
// same as the flag-off shader): texel (0, cluster).g = light count; texel
|
|
415
|
+
// (i, cluster).r = i-th light index, i from 0.
|
|
416
|
+
lines.push("#ifdef LIGHTS_CLUSTERED");
|
|
417
|
+
lines.push(" int a3dCluster = a3dClusterIndex(gl_FragCoord.xy);");
|
|
418
|
+
lines.push(" int a3dClusterCount = min(int(texelFetch(u_clusterLightIndices, ivec2(0, a3dCluster), 0).g), 64);");
|
|
419
|
+
lines.push(" for (int j = 0; j < 64; ++j) {");
|
|
420
|
+
lines.push(" if (j >= a3dClusterCount) break;");
|
|
421
|
+
lines.push(" int lightIndex = int(texelFetch(u_clusterLightIndices, ivec2(j, a3dCluster), 0).r);");
|
|
422
|
+
lines.push(" vec3 radiance = a3dClusteredLightRadiance(lightIndex, v_worldPosition, L);");
|
|
423
|
+
if (shadowed)
|
|
424
|
+
lines.push(" radiance *= a3dForwardLightShadow(texelFetch(u_clusterLightData, ivec2(2, lightIndex), 0).w, texelFetch(u_clusterLightData, ivec2(3, lightIndex), 0).z, v_worldPosition, N, L);");
|
|
425
|
+
lines.push(" a3dDirectLight(L, radiance, V, N, material, directDiffuse, directSpecular);");
|
|
426
|
+
lines.push(...direct);
|
|
427
|
+
lines.push(" }");
|
|
428
|
+
lines.push("#endif");
|
|
429
|
+
return lines.join("\n");
|
|
430
|
+
}
|
|
431
|
+
/** UV varying for a map slot (`uvSet` 0 -> v_uv, 1 -> v_uv1). */
|
|
432
|
+
function uvExpr(f, slot) {
|
|
433
|
+
return f.maps[slot]?.uvSet === 1 ? "v_uv1" : "v_uv";
|
|
434
|
+
}
|
|
435
|
+
/** Default `fragment:indirect` body: ambient 1/pi + single env sample.
|
|
436
|
+
* Accumulators are declared by the caller so replacing hooks see them too.
|
|
437
|
+
* E3 step 4: under the conjunction the always-add procedural specular is
|
|
438
|
+
* guarded to the unsampled case (mirroring the procedural diffuse above it),
|
|
439
|
+
* so a bundle carrying both a sampled map and a procedural map no longer
|
|
440
|
+
* double-counts specular on conjunction draws that did not select
|
|
441
|
+
* `prd02.ibl` (on the PRD-02 path this body is not emitted at all, step 1).
|
|
442
|
+
* Conjunction-off the emitted lines are byte-identical. */
|
|
443
|
+
function defaultIndirectBody(f, e3Conjunction = false) {
|
|
444
|
+
const lines = [];
|
|
445
|
+
lines.push(" indirectDiffuse += a3dAmbientDiffuse(material.diffuseContribution);");
|
|
446
|
+
lines.push("#ifdef A3D_ENV_SAMPLE");
|
|
447
|
+
lines.push(" float a3dRoughLod = material.roughness * 8.0;");
|
|
448
|
+
lines.push(" vec3 a3dReflect = reflect(-V, N);");
|
|
449
|
+
// brdf's a3dIndirect* take π-scaled irradiance (three r185 getIBLIrradiance
|
|
450
|
+
// returns PI * envMapColor), not the raw radiance sample (#1140).
|
|
451
|
+
lines.push(" vec3 a3dEnvIrradiance = PI * a3dSampleEnvironment(N, 8.0);");
|
|
452
|
+
lines.push(" indirectSpecular += a3dIndirectSpecular(a3dSampleEnvironment(a3dReflect, a3dRoughLod), a3dEnvIrradiance, V, N, material);");
|
|
453
|
+
lines.push(" indirectDiffuse += a3dIndirectDiffuse(a3dEnvIrradiance, V, N, material);");
|
|
454
|
+
lines.push("#endif");
|
|
455
|
+
// Procedural environment (flag-off parity): its diffuse lights the surface
|
|
456
|
+
// only when no sampled map does (the frozen shader mixes them on the sampled
|
|
457
|
+
// weight); its specular stripes always add. Radiance → π-scaled irradiance.
|
|
458
|
+
lines.push("#ifdef LIGHT_HEMISPHERE");
|
|
459
|
+
lines.push(" vec3 a3dProcIrradiance = PI * a3dProceduralDiffuseRadiance(N);");
|
|
460
|
+
lines.push("#ifndef A3D_ENV_SAMPLE");
|
|
461
|
+
lines.push(" indirectDiffuse += a3dIndirectDiffuse(a3dProcIrradiance, V, N, material);");
|
|
462
|
+
lines.push("#else");
|
|
463
|
+
// The sampled map already supplied the multiscatter irradiance term.
|
|
464
|
+
lines.push(" a3dProcIrradiance = vec3(0.0);");
|
|
465
|
+
lines.push("#endif");
|
|
466
|
+
if (e3Conjunction)
|
|
467
|
+
lines.push("#ifndef A3D_ENV_SAMPLE");
|
|
468
|
+
lines.push(" indirectSpecular += a3dIndirectSpecular(a3dProceduralSpecularRadiance(reflect(-V, N), material.roughness), a3dProcIrradiance, V, N, material);");
|
|
469
|
+
if (e3Conjunction)
|
|
470
|
+
lines.push("#endif");
|
|
471
|
+
lines.push("#endif");
|
|
472
|
+
lines.push(occlusionIndirectSnippet(f));
|
|
473
|
+
return lines.join("\n");
|
|
474
|
+
}
|
|
475
|
+
/** Occlusion-map scaling shared by the default body and its PRD-02 replacement. */
|
|
476
|
+
function occlusionIndirectSnippet(f) {
|
|
477
|
+
return [
|
|
478
|
+
"#ifdef USE_OCCLUSION_MAP",
|
|
479
|
+
` float a3dAo = texture(u_occlusionMap, ${uvExpr(f, "occlusion")}).r;`,
|
|
480
|
+
" indirectDiffuse *= a3dAo;",
|
|
481
|
+
" indirectSpecular *= a3dAo;",
|
|
482
|
+
"#endif"
|
|
483
|
+
].join("\n");
|
|
484
|
+
}
|
|
485
|
+
function forwardFragmentSource(f, contributions, defines, marker, state, lobeChunks, prd02IblReplacesIndirect, e3Conjunction = false) {
|
|
486
|
+
hookSplice(contributions, "fragment:pars", state);
|
|
487
|
+
const alphaHooks = hookSplice(contributions, "fragment:alpha", state);
|
|
488
|
+
const normalHooks = hookSplice(contributions, "fragment:normal", state);
|
|
489
|
+
const materialHooks = hookSplice(contributions, "fragment:material", state);
|
|
490
|
+
const lightsHooks = hookSplice(contributions, "fragment:lights", state);
|
|
491
|
+
const indirectHooks = hookSplice(contributions, "fragment:indirect", state);
|
|
492
|
+
const emissiveHooks = hookSplice(contributions, "fragment:emissive", state);
|
|
493
|
+
const fogHooks = hookSplice(contributions, "fragment:fog", state);
|
|
494
|
+
const endHooks = hookSplice(contributions, "fragment:end", state);
|
|
495
|
+
const lit = f.lighting === "lit";
|
|
496
|
+
const withBrdf = lit || state.builtins.has("brdf");
|
|
497
|
+
const body = [];
|
|
498
|
+
body.push("void main() {");
|
|
499
|
+
if (lit) {
|
|
500
|
+
body.push(" vec3 V = normalize(u_cameraPositionNear.xyz - v_worldPosition);");
|
|
501
|
+
if (f.flatShading) {
|
|
502
|
+
body.push(" vec3 geometryNormal = a3dFlatNormal(v_worldPosition);");
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
body.push(" vec3 geometryNormal = normalize(v_normal);");
|
|
506
|
+
}
|
|
507
|
+
body.push("#ifdef DOUBLE_SIDED");
|
|
508
|
+
body.push(" geometryNormal *= gl_FrontFacing ? 1.0 : -1.0;");
|
|
509
|
+
body.push("#endif");
|
|
510
|
+
if (f.maps.normal) {
|
|
511
|
+
body.push(` vec3 N = a3dTangentNormal(v_worldPosition, geometryNormal, ${uvExpr(f, "normal")});`);
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
body.push(" vec3 N = geometryNormal;");
|
|
515
|
+
}
|
|
516
|
+
if (normalHooks.length > 0)
|
|
517
|
+
body.push(...normalHooks.map((s) => indent(s)));
|
|
518
|
+
}
|
|
519
|
+
// fragment:material — default fills base/metal/rough + PhysicalMaterial.
|
|
520
|
+
body.push(" vec4 a3dBaseColor = u_baseColor;");
|
|
521
|
+
body.push("#ifdef VERTEX_COLORS\n a3dBaseColor *= v_color;\n#endif");
|
|
522
|
+
body.push("#ifdef USE_INSTANCING_COLOR\n a3dBaseColor *= v_instanceColor;\n#endif");
|
|
523
|
+
body.push(`#ifdef USE_BASE_COLOR_MAP\n a3dBaseColor *= texture(u_baseColorMap, ${uvExpr(f, "baseColor")});\n#endif`);
|
|
524
|
+
body.push(" float a3dMetallic = u_metallic;");
|
|
525
|
+
body.push(" float a3dRoughness = u_roughness;");
|
|
526
|
+
body.push("#ifdef USE_METALLIC_ROUGHNESS_MAP");
|
|
527
|
+
body.push(` vec2 a3dMr = texture(u_metallicRoughnessMap, ${uvExpr(f, "metallicRoughness")}).bg;`);
|
|
528
|
+
body.push(" a3dMetallic *= a3dMr.x;");
|
|
529
|
+
body.push(" a3dRoughness *= a3dMr.y;");
|
|
530
|
+
body.push("#endif");
|
|
531
|
+
if (lit) {
|
|
532
|
+
body.push(" PhysicalMaterial material = a3dMakeMaterial(a3dBaseColor.rgb, a3dMetallic, a3dRoughness, u_ior, u_specularIntensity, u_specularColorFactor, geometryNormal);");
|
|
533
|
+
}
|
|
534
|
+
if (materialHooks.length > 0)
|
|
535
|
+
body.push(...materialHooks.map((s) => indent(s)));
|
|
536
|
+
if (lit && lobeChunks.fragment.length > 0)
|
|
537
|
+
body.push(...lobeChunks.fragment.map((s) => indent(s)));
|
|
538
|
+
body.push(" vec3 directDiffuse = vec3(0.0);");
|
|
539
|
+
body.push(" vec3 directSpecular = vec3(0.0);");
|
|
540
|
+
body.push(" vec3 indirectDiffuse = vec3(0.0);");
|
|
541
|
+
body.push(" vec3 indirectSpecular = vec3(0.0);");
|
|
542
|
+
if (lit) {
|
|
543
|
+
body.push(lightsHooks.length > 0 ? lightsHooks.map((s) => indent(s)).join("\n") : defaultLightsBody(f, lobeChunks.direct));
|
|
544
|
+
if (prd02IblReplacesIndirect) {
|
|
545
|
+
// E3 stage-2b: the PRD-02 IBL call REPLACES the default indirect body
|
|
546
|
+
// (never appends to it), so its SH diffuse + probe-cube specular cannot
|
|
547
|
+
// stack on the default ambient + sampled + procedural terms. This
|
|
548
|
+
// branch is also the procedural-specular double-count fix: the
|
|
549
|
+
// default body's always-add procedural specular (LIGHT_HEMISPHERE
|
|
550
|
+
// block) is not emitted on the PRD-02 path at all. The occlusion
|
|
551
|
+
// snippet is generator-owned (uv-set aware) and shared with the
|
|
552
|
+
// default body. `indirect_default` declarations stay included above:
|
|
553
|
+
// C-03 lobe IBL calls still sample through `a3dSampleEnvironment`.
|
|
554
|
+
if (indirectHooks.length > 0)
|
|
555
|
+
body.push(...indirectHooks.map((s) => indent(s)));
|
|
556
|
+
body.push(occlusionIndirectSnippet(f));
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
// fragment:indirect appends to the default ambient + env body (T0-05);
|
|
560
|
+
// lobe `ibl` calls run last, over the final direct + indirect accumulators.
|
|
561
|
+
body.push(defaultIndirectBody(f, e3Conjunction));
|
|
562
|
+
if (indirectHooks.length > 0)
|
|
563
|
+
body.push(...indirectHooks.map((s) => indent(s)));
|
|
564
|
+
}
|
|
565
|
+
if (lobeChunks.ibl.length > 0)
|
|
566
|
+
body.push(...lobeChunks.ibl.map((s) => indent(s)));
|
|
567
|
+
}
|
|
568
|
+
// fragment:emissive — emissive maps * color * strength.
|
|
569
|
+
body.push(" vec3 a3dEmissive = u_emissiveColor * u_emissiveStrength;");
|
|
570
|
+
body.push(`#ifdef USE_EMISSIVE_MAP\n a3dEmissive *= texture(u_emissiveMap, ${uvExpr(f, "emissive")}).rgb;\n#endif`);
|
|
571
|
+
if (emissiveHooks.length > 0)
|
|
572
|
+
body.push(...emissiveHooks.map((s) => indent(s)));
|
|
573
|
+
// fragment:alpha — ALPHA_MASK discard runs last so masks see final alpha.
|
|
574
|
+
body.push(" float a3dAlpha = a3dBaseColor.a;");
|
|
575
|
+
if (alphaHooks.length > 0)
|
|
576
|
+
body.push(...alphaHooks.map((s) => indent(s)));
|
|
577
|
+
body.push(" a3dAlpha = a3dApplyAlpha(a3dAlpha);");
|
|
578
|
+
// C-05 coverage: HDR alpha marks drawn pixels for OutputPass. Opaque and
|
|
579
|
+
// (non-A2C) masked surfaces are fully covering; A2C needs the real alpha.
|
|
580
|
+
if (f.alphaMode === "opaque")
|
|
581
|
+
body.push(" a3dAlpha = 1.0;");
|
|
582
|
+
else if (f.alphaMode === "mask")
|
|
583
|
+
body.push("#ifndef ALPHA_TO_COVERAGE\n a3dAlpha = 1.0;\n#endif");
|
|
584
|
+
if (lit) {
|
|
585
|
+
body.push(" vec3 a3dColor = directDiffuse + directSpecular + indirectDiffuse + indirectSpecular + a3dEmissive;");
|
|
586
|
+
}
|
|
587
|
+
else {
|
|
588
|
+
body.push(" vec3 a3dColor = a3dBaseColor.rgb + a3dEmissive;");
|
|
589
|
+
}
|
|
590
|
+
body.push(" a3dColor = max(a3dColor, vec3(0.0));");
|
|
591
|
+
body.push(" float a3dDepth = gl_FragCoord.z / gl_FragCoord.w;");
|
|
592
|
+
if (fogHooks.length > 0) {
|
|
593
|
+
body.push(...fogHooks.map((s) => indent(s)));
|
|
594
|
+
}
|
|
595
|
+
else if (f.fog !== "none") {
|
|
596
|
+
body.push(" a3dColor = a3dApplyFog(a3dColor, a3dDepth, v_worldPosition.y);");
|
|
597
|
+
}
|
|
598
|
+
if (endHooks.length > 0)
|
|
599
|
+
body.push(...endHooks.map((s) => indent(s)));
|
|
600
|
+
body.push(" outColor = vec4(a3dColor, a3dAlpha);");
|
|
601
|
+
body.push("#ifdef BACKGROUND_COVERAGE\n outCoverage = vec4(1.0, 1.0, 1.0, 1.0);\n#endif");
|
|
602
|
+
body.push("}");
|
|
603
|
+
return [
|
|
604
|
+
"#version 300 es",
|
|
605
|
+
`// ${marker}`,
|
|
606
|
+
"precision highp float;",
|
|
607
|
+
emitDefines({ ...defines, A3D_STAGE_FRAGMENT: true }),
|
|
608
|
+
COMMON_CHUNK_GLSL,
|
|
609
|
+
FRAGMENT_VARYINGS,
|
|
610
|
+
MATERIAL_UNIFORMS,
|
|
611
|
+
...(withBrdf ? [BRDF_CHUNK_GLSL] : []),
|
|
612
|
+
...(lit || f.maps.normal ? [NORMAL_CHUNK_GLSL] : []),
|
|
613
|
+
ALPHA_CHUNK_GLSL,
|
|
614
|
+
...(lit ? [LIGHTS_LEGACY_CHUNK_GLSL, INDIRECT_DEFAULT_CHUNK_GLSL] : []),
|
|
615
|
+
...(forwardShadowReceive(f) ? [SHADOW_FORWARD_CHUNK_GLSL] : []),
|
|
616
|
+
...(f.fog !== "none" ? [FOG_DEFAULT_CHUNK_GLSL] : []),
|
|
617
|
+
// Lobe pars + feature declarations + every call chunk's requires, in
|
|
618
|
+
// requires-first order (T0-05).
|
|
619
|
+
...state.decls,
|
|
620
|
+
"layout(location = 0) out vec4 outColor;",
|
|
621
|
+
"#ifdef BACKGROUND_COVERAGE\nlayout(location = 1) out vec4 outCoverage;\n#endif",
|
|
622
|
+
...body
|
|
623
|
+
].join("\n");
|
|
624
|
+
}
|
|
625
|
+
function depthFragmentSource(f, defines, marker) {
|
|
626
|
+
const body = ["void main() {"];
|
|
627
|
+
if (f.alphaMode === "mask") {
|
|
628
|
+
body.push("#ifdef USE_BASE_COLOR_MAP\n float a3dAlpha = texture(u_baseColorMap, v_uv).a * u_baseColor.a;\n#else\n float a3dAlpha = u_baseColor.a;\n#endif");
|
|
629
|
+
body.push(" a3dApplyAlpha(a3dAlpha);");
|
|
630
|
+
}
|
|
631
|
+
if (f.pass === "distance") {
|
|
632
|
+
body.push(" float a3dDist = a3dPackDistance(distance(v_worldPosition, u_distanceLight.xyz), u_distanceLight.w);");
|
|
633
|
+
body.push(" outColor = vec4(vec3(a3dDist), 1.0);");
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
body.push(" outColor = vec4(vec3(gl_FragCoord.z), 1.0);");
|
|
637
|
+
}
|
|
638
|
+
body.push("}");
|
|
639
|
+
return [
|
|
640
|
+
"#version 300 es",
|
|
641
|
+
`// ${marker}`,
|
|
642
|
+
"precision highp float;",
|
|
643
|
+
emitDefines(defines),
|
|
644
|
+
"in vec3 v_worldPosition;",
|
|
645
|
+
"#if defined(ALPHA_MASK) && defined(USE_BASE_COLOR_MAP)\nin vec2 v_uv;\n#endif",
|
|
646
|
+
"uniform vec4 u_baseColor;",
|
|
647
|
+
ALPHA_CHUNK_GLSL,
|
|
648
|
+
DEPTH_CHUNK_GLSL,
|
|
649
|
+
...(f.pass === "distance" ? [DISTANCE_CHUNK_PARS_GLSL] : []),
|
|
650
|
+
"layout(location = 0) out vec4 outColor;",
|
|
651
|
+
...body
|
|
652
|
+
].join("\n");
|
|
653
|
+
}
|
|
654
|
+
function indent(src) {
|
|
655
|
+
return src.split("\n").map((line) => (line.trim().length > 0 ? ` ${line}` : line)).join("\n");
|
|
656
|
+
}
|
|
657
|
+
/** `emissive-strength` → `EMISSIVE_STRENGTH`; `prd10.foliage` → `PRD10_FOLIAGE`; `filmIor` → `FILM_IOR`. */
|
|
658
|
+
function defineToken(id) {
|
|
659
|
+
return id.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[^A-Za-z0-9]+/g, "_").toUpperCase();
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Extension lobes registered through C-03 for this record. Lobe pars (and
|
|
663
|
+
* every call chunk's requires) go into `state`; the fragment/ibl call chunks
|
|
664
|
+
* are returned. Each active lobe adds `A3D_LOBE_<ID>` (+ truthy bits) to
|
|
665
|
+
* `defines`. Unmatched extensions report `extension-lobe-pending`.
|
|
666
|
+
*/
|
|
667
|
+
function extensionLobeChunks(f, flags, state, defines, report) {
|
|
668
|
+
const out = { fragment: [], ibl: [], direct: [] };
|
|
669
|
+
if (f.extensions.length === 0)
|
|
670
|
+
return out;
|
|
671
|
+
const lobes = flags ? materialLobes(flags) : [];
|
|
672
|
+
const matches = (ext, lobe) => ext.lobe === lobe.id || (lobe.glTFExtension !== undefined && ext.lobe === lobe.glTFExtension);
|
|
673
|
+
const pending = f.extensions.filter((ext) => !lobes.some((l) => matches(ext, l)));
|
|
674
|
+
if (pending.length > 0) {
|
|
675
|
+
report({
|
|
676
|
+
code: "extension-lobe-pending",
|
|
677
|
+
message: `extension lobe(s) pending lane 04 registration: ${pending.map((ext) => ext.lobe).join(", ")}`,
|
|
678
|
+
ownerPrd: 4
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
// Lobes are physical-shading terms: unlit and depth-like programs take none.
|
|
682
|
+
if (f.pass !== "forward" || f.lighting !== "lit")
|
|
683
|
+
return out;
|
|
684
|
+
const fragmentSeen = new Set();
|
|
685
|
+
const iblSeen = new Set();
|
|
686
|
+
const directSeen = new Set();
|
|
687
|
+
for (const lobe of lobes) {
|
|
688
|
+
const ext = f.extensions.find((e) => matches(e, lobe));
|
|
689
|
+
if (!ext)
|
|
690
|
+
continue;
|
|
691
|
+
const token = `A3D_LOBE_${defineToken(lobe.id)}`;
|
|
692
|
+
defines[token] = true;
|
|
693
|
+
for (const [bit, value] of Object.entries(ext.bits)) {
|
|
694
|
+
if (!value)
|
|
695
|
+
continue; // `#ifdef` reads truthy bits only
|
|
696
|
+
defines[`${token}_${defineToken(bit)}`] = value === true ? true : value;
|
|
697
|
+
}
|
|
698
|
+
emitDeclaration(state, lobe.chunks.pars);
|
|
699
|
+
if (lobe.chunks.fragment && !fragmentSeen.has(lobe.chunks.fragment)) {
|
|
700
|
+
fragmentSeen.add(lobe.chunks.fragment);
|
|
701
|
+
out.fragment.push(emitCall(state, lobe.chunks.fragment));
|
|
702
|
+
}
|
|
703
|
+
if (lobe.chunks.ibl && !iblSeen.has(lobe.chunks.ibl)) {
|
|
704
|
+
iblSeen.add(lobe.chunks.ibl);
|
|
705
|
+
out.ibl.push(emitCall(state, lobe.chunks.ibl));
|
|
706
|
+
}
|
|
707
|
+
if (lobe.chunks.direct && !directSeen.has(lobe.chunks.direct)) {
|
|
708
|
+
directSeen.add(lobe.chunks.direct);
|
|
709
|
+
out.direct.push(emitCall(state, lobe.chunks.direct));
|
|
710
|
+
}
|
|
711
|
+
// Lobe textures (glTF texCoord 0) need the UV varying even when no core map does.
|
|
712
|
+
if (ext.maps.length > 0)
|
|
713
|
+
defines.A3D_NEED_UV0 = true;
|
|
714
|
+
}
|
|
715
|
+
return out;
|
|
716
|
+
}
|
|
717
|
+
/** Real C-02 program generation (PRD-01 §6.4). Flags may be omitted: feature bits then resolve no contributors. */
|
|
718
|
+
export function generateProgramImpl(features, options = {}) {
|
|
719
|
+
const f = normalizeProgramFeatures(features);
|
|
720
|
+
const key = programKey(f);
|
|
721
|
+
// FNV-1a of the canonical key: short, deterministic, comment-safe.
|
|
722
|
+
let h = 0x811c9dc5;
|
|
723
|
+
for (let i = 0; i < key.length; i++) {
|
|
724
|
+
h ^= key.charCodeAt(i);
|
|
725
|
+
h = Math.imul(h, 0x01000193);
|
|
726
|
+
}
|
|
727
|
+
const marker = `${GENERATED_PROGRAM_MARKER}:${(h >>> 0).toString(16)}`;
|
|
728
|
+
if (f.target === "wgsl") {
|
|
729
|
+
if (!wgslEmitter) {
|
|
730
|
+
throw new Error(`WGSL_PROGRAM_MISSING:${key}`);
|
|
731
|
+
}
|
|
732
|
+
return wgslEmitter(f);
|
|
733
|
+
}
|
|
734
|
+
const contributions = contributingFeatures(f, options.flags);
|
|
735
|
+
const defines = definesFor(f, contributions);
|
|
736
|
+
// Varying/attribute needs shared by both stages (drives A3D_NEED_* in each).
|
|
737
|
+
if (f.lighting === "lit" || (f.pass === "forward" && f.flatShading))
|
|
738
|
+
defines.A3D_NEED_NORMAL = true;
|
|
739
|
+
if (Object.values(f.maps).some((m) => m && (m.uvSet ?? 0) === 0))
|
|
740
|
+
defines.A3D_NEED_UV0 = true;
|
|
741
|
+
if (Object.values(f.maps).some((m) => m && m.uvSet === 1))
|
|
742
|
+
defines.A3D_NEED_UV1 = true;
|
|
743
|
+
const report = (d) => {
|
|
744
|
+
programDegradationLog.push(d);
|
|
745
|
+
options.onDegradation?.(d);
|
|
746
|
+
};
|
|
747
|
+
const fragmentState = newSpliceState();
|
|
748
|
+
const lobes = extensionLobeChunks(f, options.flags, fragmentState, defines, report);
|
|
749
|
+
const vertex = vertexSource(f, contributions, defines, marker);
|
|
750
|
+
const e3Conjunction = e3CompilerLightingOn(options.flags);
|
|
751
|
+
const prd02IblReplacesIndirect = e3Conjunction
|
|
752
|
+
&& contributions.some(({ feature }) => feature.id === PRD02_IBL_FEATURE);
|
|
753
|
+
const fragment = f.pass === "forward"
|
|
754
|
+
? forwardFragmentSource(f, contributions, defines, marker, fragmentState, lobes, prd02IblReplacesIndirect, e3Conjunction)
|
|
755
|
+
: depthFragmentSource(f, defines, marker);
|
|
756
|
+
return { key, vertex, fragment, defines };
|
|
757
|
+
}
|
|
758
|
+
// Lane 01 installs the real C-02 generator into the contract surface on import.
|
|
759
|
+
installProgramGenerator((features) => generateProgramImpl(features));
|
|
760
|
+
//# sourceMappingURL=ProgramGenerator.js.map
|