@aura3d/rendering 1.0.6
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/README.md +18 -0
- package/dist/ArchitecturalLightingFixtures.d.ts +40 -0
- package/dist/ArchitecturalLightingFixtures.d.ts.map +1 -0
- package/dist/ArchitecturalLightingFixtures.js +171 -0
- package/dist/ArchitecturalLightingFixtures.js.map +1 -0
- package/dist/ArchitecturalMaterialCatalog.d.ts +30 -0
- package/dist/ArchitecturalMaterialCatalog.d.ts.map +1 -0
- package/dist/ArchitecturalMaterialCatalog.js +90 -0
- package/dist/ArchitecturalMaterialCatalog.js.map +1 -0
- package/dist/ArchitecturalMeasurementFixtures.d.ts +30 -0
- package/dist/ArchitecturalMeasurementFixtures.d.ts.map +1 -0
- package/dist/ArchitecturalMeasurementFixtures.js +115 -0
- package/dist/ArchitecturalMeasurementFixtures.js.map +1 -0
- package/dist/BRDFLut.d.ts +13 -0
- package/dist/BRDFLut.d.ts.map +1 -0
- package/dist/BRDFLut.js +34 -0
- package/dist/BRDFLut.js.map +1 -0
- package/dist/CameraFraming.d.ts +31 -0
- package/dist/CameraFraming.d.ts.map +1 -0
- package/dist/CameraFraming.js +143 -0
- package/dist/CameraFraming.js.map +1 -0
- package/dist/CanonicalSceneFixtures.d.ts +13 -0
- package/dist/CanonicalSceneFixtures.d.ts.map +1 -0
- package/dist/CanonicalSceneFixtures.js +78 -0
- package/dist/CanonicalSceneFixtures.js.map +1 -0
- package/dist/CascadedShadowMaps.d.ts +121 -0
- package/dist/CascadedShadowMaps.d.ts.map +1 -0
- package/dist/CascadedShadowMaps.js +315 -0
- package/dist/CascadedShadowMaps.js.map +1 -0
- package/dist/ColorManagement.d.ts +33 -0
- package/dist/ColorManagement.d.ts.map +1 -0
- package/dist/ColorManagement.js +71 -0
- package/dist/ColorManagement.js.map +1 -0
- package/dist/CullingFixtures.d.ts +70 -0
- package/dist/CullingFixtures.d.ts.map +1 -0
- package/dist/CullingFixtures.js +191 -0
- package/dist/CullingFixtures.js.map +1 -0
- package/dist/DecalGeometry.d.ts +3 -0
- package/dist/DecalGeometry.d.ts.map +1 -0
- package/dist/DecalGeometry.js +2 -0
- package/dist/DecalGeometry.js.map +1 -0
- package/dist/DepthPass.d.ts +23 -0
- package/dist/DepthPass.d.ts.map +1 -0
- package/dist/DepthPass.js +99 -0
- package/dist/DepthPass.js.map +1 -0
- package/dist/EnvironmentBackgroundPass.d.ts +27 -0
- package/dist/EnvironmentBackgroundPass.d.ts.map +1 -0
- package/dist/EnvironmentBackgroundPass.js +167 -0
- package/dist/EnvironmentBackgroundPass.js.map +1 -0
- package/dist/EnvironmentBackgroundResources.d.ts +31 -0
- package/dist/EnvironmentBackgroundResources.d.ts.map +1 -0
- package/dist/EnvironmentBackgroundResources.js +237 -0
- package/dist/EnvironmentBackgroundResources.js.map +1 -0
- package/dist/EnvironmentLighting.d.ts +10 -0
- package/dist/EnvironmentLighting.d.ts.map +1 -0
- package/dist/EnvironmentLighting.js +64 -0
- package/dist/EnvironmentLighting.js.map +1 -0
- package/dist/EnvironmentMapResources.d.ts +98 -0
- package/dist/EnvironmentMapResources.d.ts.map +1 -0
- package/dist/EnvironmentMapResources.js +794 -0
- package/dist/EnvironmentMapResources.js.map +1 -0
- package/dist/EnvironmentPipeline.d.ts +21 -0
- package/dist/EnvironmentPipeline.d.ts.map +1 -0
- package/dist/EnvironmentPipeline.js +43 -0
- package/dist/EnvironmentPipeline.js.map +1 -0
- package/dist/EnvironmentPlatform.d.ts +185 -0
- package/dist/EnvironmentPlatform.d.ts.map +1 -0
- package/dist/EnvironmentPlatform.js +922 -0
- package/dist/EnvironmentPlatform.js.map +1 -0
- package/dist/EnvironmentPreset.d.ts +35 -0
- package/dist/EnvironmentPreset.d.ts.map +1 -0
- package/dist/EnvironmentPreset.js +96 -0
- package/dist/EnvironmentPreset.js.map +1 -0
- package/dist/Exposure.d.ts +19 -0
- package/dist/Exposure.d.ts.map +1 -0
- package/dist/Exposure.js +34 -0
- package/dist/Exposure.js.map +1 -0
- package/dist/ExternalParityRenderPreset.d.ts +149 -0
- package/dist/ExternalParityRenderPreset.d.ts.map +1 -0
- package/dist/ExternalParityRenderPreset.js +519 -0
- package/dist/ExternalParityRenderPreset.js.map +1 -0
- package/dist/ForwardPass.d.ts +122 -0
- package/dist/ForwardPass.d.ts.map +1 -0
- package/dist/ForwardPass.js +1352 -0
- package/dist/ForwardPass.js.map +1 -0
- package/dist/FrameVisualMetrics.d.ts +60 -0
- package/dist/FrameVisualMetrics.d.ts.map +1 -0
- package/dist/FrameVisualMetrics.js +146 -0
- package/dist/FrameVisualMetrics.js.map +1 -0
- package/dist/Geometry.d.ts +50 -0
- package/dist/Geometry.d.ts.map +1 -0
- package/dist/Geometry.js +385 -0
- package/dist/Geometry.js.map +1 -0
- package/dist/GeometryPrimitives.d.ts +3 -0
- package/dist/GeometryPrimitives.d.ts.map +1 -0
- package/dist/GeometryPrimitives.js +2 -0
- package/dist/GeometryPrimitives.js.map +1 -0
- package/dist/HDRRenderPipeline.d.ts +27 -0
- package/dist/HDRRenderPipeline.d.ts.map +1 -0
- package/dist/HDRRenderPipeline.js +67 -0
- package/dist/HDRRenderPipeline.js.map +1 -0
- package/dist/IBL.d.ts +37 -0
- package/dist/IBL.d.ts.map +1 -0
- package/dist/IBL.js +48 -0
- package/dist/IBL.js.map +1 -0
- package/dist/IndexBuffer.d.ts +15 -0
- package/dist/IndexBuffer.d.ts.map +1 -0
- package/dist/IndexBuffer.js +51 -0
- package/dist/IndexBuffer.js.map +1 -0
- package/dist/InstancedPBRMaterial.d.ts +33 -0
- package/dist/InstancedPBRMaterial.d.ts.map +1 -0
- package/dist/InstancedPBRMaterial.js +147 -0
- package/dist/InstancedPBRMaterial.js.map +1 -0
- package/dist/InstancedUnlitMaterial.d.ts +11 -0
- package/dist/InstancedUnlitMaterial.d.ts.map +1 -0
- package/dist/InstancedUnlitMaterial.js +50 -0
- package/dist/InstancedUnlitMaterial.js.map +1 -0
- package/dist/Instancing.d.ts +7 -0
- package/dist/Instancing.d.ts.map +1 -0
- package/dist/Instancing.js +14 -0
- package/dist/Instancing.js.map +1 -0
- package/dist/LightCollector.d.ts +24 -0
- package/dist/LightCollector.d.ts.map +1 -0
- package/dist/LightCollector.js +56 -0
- package/dist/LightCollector.js.map +1 -0
- package/dist/LightUniforms.d.ts +14 -0
- package/dist/LightUniforms.d.ts.map +1 -0
- package/dist/LightUniforms.js +37 -0
- package/dist/LightUniforms.js.map +1 -0
- package/dist/LightingDebug.d.ts +13 -0
- package/dist/LightingDebug.d.ts.map +1 -0
- package/dist/LightingDebug.js +69 -0
- package/dist/LightingDebug.js.map +1 -0
- package/dist/LightingDefaults.d.ts +13 -0
- package/dist/LightingDefaults.d.ts.map +1 -0
- package/dist/LightingDefaults.js +64 -0
- package/dist/LightingDefaults.js.map +1 -0
- package/dist/LightingRig.d.ts +53 -0
- package/dist/LightingRig.d.ts.map +1 -0
- package/dist/LightingRig.js +197 -0
- package/dist/LightingRig.js.map +1 -0
- package/dist/LineGeometry.d.ts +3 -0
- package/dist/LineGeometry.d.ts.map +1 -0
- package/dist/LineGeometry.js +2 -0
- package/dist/LineGeometry.js.map +1 -0
- package/dist/Material.d.ts +77 -0
- package/dist/Material.d.ts.map +1 -0
- package/dist/Material.js +137 -0
- package/dist/Material.js.map +1 -0
- package/dist/MaterialBinding.d.ts +17 -0
- package/dist/MaterialBinding.d.ts.map +1 -0
- package/dist/MaterialBinding.js +119 -0
- package/dist/MaterialBinding.js.map +1 -0
- package/dist/MaterialInstance.d.ts +16 -0
- package/dist/MaterialInstance.d.ts.map +1 -0
- package/dist/MaterialInstance.js +53 -0
- package/dist/MaterialInstance.js.map +1 -0
- package/dist/MaterialPresets.d.ts +31 -0
- package/dist/MaterialPresets.d.ts.map +1 -0
- package/dist/MaterialPresets.js +219 -0
- package/dist/MaterialPresets.js.map +1 -0
- package/dist/MorphTarget.d.ts +10 -0
- package/dist/MorphTarget.d.ts.map +1 -0
- package/dist/MorphTarget.js +101 -0
- package/dist/MorphTarget.js.map +1 -0
- package/dist/MorphUnlitMaterial.d.ts +11 -0
- package/dist/MorphUnlitMaterial.d.ts.map +1 -0
- package/dist/MorphUnlitMaterial.js +45 -0
- package/dist/MorphUnlitMaterial.js.map +1 -0
- package/dist/NormalMappedPBRMaterial.d.ts +37 -0
- package/dist/NormalMappedPBRMaterial.d.ts.map +1 -0
- package/dist/NormalMappedPBRMaterial.js +148 -0
- package/dist/NormalMappedPBRMaterial.js.map +1 -0
- package/dist/OceanFixtures.d.ts +62 -0
- package/dist/OceanFixtures.d.ts.map +1 -0
- package/dist/OceanFixtures.js +240 -0
- package/dist/OceanFixtures.js.map +1 -0
- package/dist/PBRLightingDefaults.d.ts +4 -0
- package/dist/PBRLightingDefaults.d.ts.map +1 -0
- package/dist/PBRLightingDefaults.js +10 -0
- package/dist/PBRLightingDefaults.js.map +1 -0
- package/dist/PBRMaterial.d.ts +84 -0
- package/dist/PBRMaterial.d.ts.map +1 -0
- package/dist/PBRMaterial.js +349 -0
- package/dist/PBRMaterial.js.map +1 -0
- package/dist/PMREM.d.ts +26 -0
- package/dist/PMREM.d.ts.map +1 -0
- package/dist/PMREM.js +26 -0
- package/dist/PMREM.js.map +1 -0
- package/dist/PbrReference.d.ts +153 -0
- package/dist/PbrReference.d.ts.map +1 -0
- package/dist/PbrReference.js +500 -0
- package/dist/PbrReference.js.map +1 -0
- package/dist/PostProcessPass.d.ts +439 -0
- package/dist/PostProcessPass.d.ts.map +1 -0
- package/dist/PostProcessPass.js +1834 -0
- package/dist/PostProcessPass.js.map +1 -0
- package/dist/ProceduralTextureFixtures.d.ts +27 -0
- package/dist/ProceduralTextureFixtures.d.ts.map +1 -0
- package/dist/ProceduralTextureFixtures.js +336 -0
- package/dist/ProceduralTextureFixtures.js.map +1 -0
- package/dist/ProductTurntableFixtures.d.ts +96 -0
- package/dist/ProductTurntableFixtures.d.ts.map +1 -0
- package/dist/ProductTurntableFixtures.js +559 -0
- package/dist/ProductTurntableFixtures.js.map +1 -0
- package/dist/Raycaster.d.ts +14 -0
- package/dist/Raycaster.d.ts.map +1 -0
- package/dist/Raycaster.js +10 -0
- package/dist/Raycaster.js.map +1 -0
- package/dist/ReflectionProbe.d.ts +8 -0
- package/dist/ReflectionProbe.d.ts.map +1 -0
- package/dist/ReflectionProbe.js +10 -0
- package/dist/ReflectionProbe.js.map +1 -0
- package/dist/ReflectionSurfaces.d.ts +35 -0
- package/dist/ReflectionSurfaces.d.ts.map +1 -0
- package/dist/ReflectionSurfaces.js +155 -0
- package/dist/ReflectionSurfaces.js.map +1 -0
- package/dist/RenderBackend.d.ts +14 -0
- package/dist/RenderBackend.d.ts.map +1 -0
- package/dist/RenderBackend.js +33 -0
- package/dist/RenderBackend.js.map +1 -0
- package/dist/RenderDebugViews.d.ts +26 -0
- package/dist/RenderDebugViews.d.ts.map +1 -0
- package/dist/RenderDebugViews.js +97 -0
- package/dist/RenderDebugViews.js.map +1 -0
- package/dist/RenderDevice.d.ts +280 -0
- package/dist/RenderDevice.d.ts.map +1 -0
- package/dist/RenderDevice.js +561 -0
- package/dist/RenderDevice.js.map +1 -0
- package/dist/RenderGraph.d.ts +22 -0
- package/dist/RenderGraph.d.ts.map +1 -0
- package/dist/RenderGraph.js +159 -0
- package/dist/RenderGraph.js.map +1 -0
- package/dist/RenderPass.d.ts +23 -0
- package/dist/RenderPass.d.ts.map +1 -0
- package/dist/RenderPass.js +14 -0
- package/dist/RenderPass.js.map +1 -0
- package/dist/RenderPipeline.d.ts +39 -0
- package/dist/RenderPipeline.d.ts.map +1 -0
- package/dist/RenderPipeline.js +67 -0
- package/dist/RenderPipeline.js.map +1 -0
- package/dist/RenderQueue.d.ts +3 -0
- package/dist/RenderQueue.d.ts.map +1 -0
- package/dist/RenderQueue.js +2 -0
- package/dist/RenderQueue.js.map +1 -0
- package/dist/RenderState.d.ts +3 -0
- package/dist/RenderState.d.ts.map +1 -0
- package/dist/RenderState.js +2 -0
- package/dist/RenderState.js.map +1 -0
- package/dist/Renderer.d.ts +265 -0
- package/dist/Renderer.d.ts.map +1 -0
- package/dist/Renderer.js +2094 -0
- package/dist/Renderer.js.map +1 -0
- package/dist/RendererDebugOverlay.d.ts +20 -0
- package/dist/RendererDebugOverlay.d.ts.map +1 -0
- package/dist/RendererDebugOverlay.js +54 -0
- package/dist/RendererDebugOverlay.js.map +1 -0
- package/dist/RendererFeatureGates.d.ts +17 -0
- package/dist/RendererFeatureGates.d.ts.map +1 -0
- package/dist/RendererFeatureGates.js +92 -0
- package/dist/RendererFeatureGates.js.map +1 -0
- package/dist/RendererPostprocessPlan.d.ts +59 -0
- package/dist/RendererPostprocessPlan.d.ts.map +1 -0
- package/dist/RendererPostprocessPlan.js +155 -0
- package/dist/RendererPostprocessPlan.js.map +1 -0
- package/dist/RendererTiming.d.ts +53 -0
- package/dist/RendererTiming.d.ts.map +1 -0
- package/dist/RendererTiming.js +186 -0
- package/dist/RendererTiming.js.map +1 -0
- package/dist/RendererVisualPipelineReport.d.ts +224 -0
- package/dist/RendererVisualPipelineReport.d.ts.map +1 -0
- package/dist/RendererVisualPipelineReport.js +499 -0
- package/dist/RendererVisualPipelineReport.js.map +1 -0
- package/dist/ResourceLifecycle.d.ts +8 -0
- package/dist/ResourceLifecycle.d.ts.map +1 -0
- package/dist/ResourceLifecycle.js +18 -0
- package/dist/ResourceLifecycle.js.map +1 -0
- package/dist/Sampler.d.ts +20 -0
- package/dist/Sampler.d.ts.map +1 -0
- package/dist/Sampler.js +19 -0
- package/dist/Sampler.js.map +1 -0
- package/dist/SceneOptimization.d.ts +127 -0
- package/dist/SceneOptimization.d.ts.map +1 -0
- package/dist/SceneOptimization.js +342 -0
- package/dist/SceneOptimization.js.map +1 -0
- package/dist/ShaderChunks.d.ts +8 -0
- package/dist/ShaderChunks.d.ts.map +1 -0
- package/dist/ShaderChunks.js +386 -0
- package/dist/ShaderChunks.js.map +1 -0
- package/dist/ShaderLibrary.d.ts +63 -0
- package/dist/ShaderLibrary.d.ts.map +1 -0
- package/dist/ShaderLibrary.js +2707 -0
- package/dist/ShaderLibrary.js.map +1 -0
- package/dist/ShaderModule.d.ts +14 -0
- package/dist/ShaderModule.d.ts.map +1 -0
- package/dist/ShaderModule.js +33 -0
- package/dist/ShaderModule.js.map +1 -0
- package/dist/ShaderPreprocessor.d.ts +19 -0
- package/dist/ShaderPreprocessor.d.ts.map +1 -0
- package/dist/ShaderPreprocessor.js +212 -0
- package/dist/ShaderPreprocessor.js.map +1 -0
- package/dist/ShaderReflection.d.ts +23 -0
- package/dist/ShaderReflection.d.ts.map +1 -0
- package/dist/ShaderReflection.js +134 -0
- package/dist/ShaderReflection.js.map +1 -0
- package/dist/ShadowMap.d.ts +58 -0
- package/dist/ShadowMap.d.ts.map +1 -0
- package/dist/ShadowMap.js +183 -0
- package/dist/ShadowMap.js.map +1 -0
- package/dist/ShadowPass.d.ts +44 -0
- package/dist/ShadowPass.d.ts.map +1 -0
- package/dist/ShadowPass.js +162 -0
- package/dist/ShadowPass.js.map +1 -0
- package/dist/ShadowProjection.d.ts +15 -0
- package/dist/ShadowProjection.d.ts.map +1 -0
- package/dist/ShadowProjection.js +90 -0
- package/dist/ShadowProjection.js.map +1 -0
- package/dist/SkinnedLitMaterial.d.ts +63 -0
- package/dist/SkinnedLitMaterial.d.ts.map +1 -0
- package/dist/SkinnedLitMaterial.js +296 -0
- package/dist/SkinnedLitMaterial.js.map +1 -0
- package/dist/SkinnedUnlitMaterial.d.ts +13 -0
- package/dist/SkinnedUnlitMaterial.d.ts.map +1 -0
- package/dist/SkinnedUnlitMaterial.js +52 -0
- package/dist/SkinnedUnlitMaterial.js.map +1 -0
- package/dist/SkinningBounds.d.ts +10 -0
- package/dist/SkinningBounds.d.ts.map +1 -0
- package/dist/SkinningBounds.js +107 -0
- package/dist/SkinningBounds.js.map +1 -0
- package/dist/SpaceEnvironmentFixtures.d.ts +59 -0
- package/dist/SpaceEnvironmentFixtures.d.ts.map +1 -0
- package/dist/SpaceEnvironmentFixtures.js +132 -0
- package/dist/SpaceEnvironmentFixtures.js.map +1 -0
- package/dist/SpriteGeometry.d.ts +3 -0
- package/dist/SpriteGeometry.d.ts.map +1 -0
- package/dist/SpriteGeometry.js +21 -0
- package/dist/SpriteGeometry.js.map +1 -0
- package/dist/StereoCameraRig.d.ts +34 -0
- package/dist/StereoCameraRig.d.ts.map +1 -0
- package/dist/StereoCameraRig.js +79 -0
- package/dist/StereoCameraRig.js.map +1 -0
- package/dist/StereoEffects.d.ts +90 -0
- package/dist/StereoEffects.d.ts.map +1 -0
- package/dist/StereoEffects.js +171 -0
- package/dist/StereoEffects.js.map +1 -0
- package/dist/TerrainFixtures.d.ts +36 -0
- package/dist/TerrainFixtures.d.ts.map +1 -0
- package/dist/TerrainFixtures.js +143 -0
- package/dist/TerrainFixtures.js.map +1 -0
- package/dist/Texture.d.ts +64 -0
- package/dist/Texture.d.ts.map +1 -0
- package/dist/Texture.js +257 -0
- package/dist/Texture.js.map +1 -0
- package/dist/TextureBinding.d.ts +38 -0
- package/dist/TextureBinding.d.ts.map +1 -0
- package/dist/TextureBinding.js +66 -0
- package/dist/TextureBinding.js.map +1 -0
- package/dist/TexturedPBRMaterial.d.ts +206 -0
- package/dist/TexturedPBRMaterial.d.ts.map +1 -0
- package/dist/TexturedPBRMaterial.js +842 -0
- package/dist/TexturedPBRMaterial.js.map +1 -0
- package/dist/TexturedUnlitMaterial.d.ts +19 -0
- package/dist/TexturedUnlitMaterial.d.ts.map +1 -0
- package/dist/TexturedUnlitMaterial.js +52 -0
- package/dist/TexturedUnlitMaterial.js.map +1 -0
- package/dist/ToneMapping.d.ts +19 -0
- package/dist/ToneMapping.d.ts.map +1 -0
- package/dist/ToneMapping.js +53 -0
- package/dist/ToneMapping.js.map +1 -0
- package/dist/UniformBinder.d.ts +7 -0
- package/dist/UniformBinder.d.ts.map +1 -0
- package/dist/UniformBinder.js +14 -0
- package/dist/UniformBinder.js.map +1 -0
- package/dist/UniformLayout.d.ts +19 -0
- package/dist/UniformLayout.d.ts.map +1 -0
- package/dist/UniformLayout.js +107 -0
- package/dist/UniformLayout.js.map +1 -0
- package/dist/UnlitMaterial.d.ts +16 -0
- package/dist/UnlitMaterial.d.ts.map +1 -0
- package/dist/UnlitMaterial.js +60 -0
- package/dist/UnlitMaterial.js.map +1 -0
- package/dist/VegetationFixtures.d.ts +68 -0
- package/dist/VegetationFixtures.d.ts.map +1 -0
- package/dist/VegetationFixtures.js +241 -0
- package/dist/VegetationFixtures.js.map +1 -0
- package/dist/VertexBuffer.d.ts +29 -0
- package/dist/VertexBuffer.d.ts.map +1 -0
- package/dist/VertexBuffer.js +106 -0
- package/dist/VertexBuffer.js.map +1 -0
- package/dist/VertexFormat.d.ts +36 -0
- package/dist/VertexFormat.d.ts.map +1 -0
- package/dist/VertexFormat.js +127 -0
- package/dist/VertexFormat.js.map +1 -0
- package/dist/VoxelWorldFixtures.d.ts +54 -0
- package/dist/VoxelWorldFixtures.d.ts.map +1 -0
- package/dist/VoxelWorldFixtures.js +186 -0
- package/dist/VoxelWorldFixtures.js.map +1 -0
- package/dist/WeatherFixtures.d.ts +46 -0
- package/dist/WeatherFixtures.d.ts.map +1 -0
- package/dist/WeatherFixtures.js +142 -0
- package/dist/WeatherFixtures.js.map +1 -0
- package/dist/WebGL2Device.d.ts +137 -0
- package/dist/WebGL2Device.d.ts.map +1 -0
- package/dist/WebGL2Device.js +2107 -0
- package/dist/WebGL2Device.js.map +1 -0
- package/dist/WebGL2StateCache.d.ts +89 -0
- package/dist/WebGL2StateCache.d.ts.map +1 -0
- package/dist/WebGL2StateCache.js +265 -0
- package/dist/WebGL2StateCache.js.map +1 -0
- package/dist/WebGPUDevice.d.ts +287 -0
- package/dist/WebGPUDevice.d.ts.map +1 -0
- package/dist/WebGPUDevice.js +2403 -0
- package/dist/WebGPUDevice.js.map +1 -0
- package/dist/WebGPURenderToTextureProof.d.ts +29 -0
- package/dist/WebGPURenderToTextureProof.d.ts.map +1 -0
- package/dist/WebGPURenderToTextureProof.js +96 -0
- package/dist/WebGPURenderToTextureProof.js.map +1 -0
- package/dist/advanced-runtime/AdvancedRenderer.d.ts +23 -0
- package/dist/advanced-runtime/AdvancedRenderer.d.ts.map +1 -0
- package/dist/advanced-runtime/AdvancedRenderer.js +45 -0
- package/dist/advanced-runtime/AdvancedRenderer.js.map +1 -0
- package/dist/advanced-runtime/index.d.ts +10 -0
- package/dist/advanced-runtime/index.d.ts.map +1 -0
- package/dist/advanced-runtime/index.js +9 -0
- package/dist/advanced-runtime/index.js.map +1 -0
- package/dist/cinematic/BloomPass.d.ts +10 -0
- package/dist/cinematic/BloomPass.d.ts.map +1 -0
- package/dist/cinematic/BloomPass.js +18 -0
- package/dist/cinematic/BloomPass.js.map +1 -0
- package/dist/cinematic/CinematicDepthComposition.d.ts +12 -0
- package/dist/cinematic/CinematicDepthComposition.d.ts.map +1 -0
- package/dist/cinematic/CinematicDepthComposition.js +22 -0
- package/dist/cinematic/CinematicDepthComposition.js.map +1 -0
- package/dist/cinematic/CinematicEvidence.d.ts +43 -0
- package/dist/cinematic/CinematicEvidence.d.ts.map +1 -0
- package/dist/cinematic/CinematicEvidence.js +55 -0
- package/dist/cinematic/CinematicEvidence.js.map +1 -0
- package/dist/cinematic/CinematicLightingRig.d.ts +32 -0
- package/dist/cinematic/CinematicLightingRig.d.ts.map +1 -0
- package/dist/cinematic/CinematicLightingRig.js +90 -0
- package/dist/cinematic/CinematicLightingRig.js.map +1 -0
- package/dist/cinematic/CinematicMaterialPresets.d.ts +16 -0
- package/dist/cinematic/CinematicMaterialPresets.d.ts.map +1 -0
- package/dist/cinematic/CinematicMaterialPresets.js +114 -0
- package/dist/cinematic/CinematicMaterialPresets.js.map +1 -0
- package/dist/cinematic/CinematicPostProcess.d.ts +25 -0
- package/dist/cinematic/CinematicPostProcess.d.ts.map +1 -0
- package/dist/cinematic/CinematicPostProcess.js +64 -0
- package/dist/cinematic/CinematicPostProcess.js.map +1 -0
- package/dist/cinematic/DepthHazePass.d.ts +12 -0
- package/dist/cinematic/DepthHazePass.d.ts.map +1 -0
- package/dist/cinematic/DepthHazePass.js +20 -0
- package/dist/cinematic/DepthHazePass.js.map +1 -0
- package/dist/cinematic/EmissivePracticalLightSystem.d.ts +18 -0
- package/dist/cinematic/EmissivePracticalLightSystem.d.ts.map +1 -0
- package/dist/cinematic/EmissivePracticalLightSystem.js +25 -0
- package/dist/cinematic/EmissivePracticalLightSystem.js.map +1 -0
- package/dist/cinematic/FilmGrainPass.d.ts +9 -0
- package/dist/cinematic/FilmGrainPass.d.ts.map +1 -0
- package/dist/cinematic/FilmGrainPass.js +17 -0
- package/dist/cinematic/FilmGrainPass.js.map +1 -0
- package/dist/cinematic/FogVolumeSystem.d.ts +12 -0
- package/dist/cinematic/FogVolumeSystem.d.ts.map +1 -0
- package/dist/cinematic/FogVolumeSystem.js +20 -0
- package/dist/cinematic/FogVolumeSystem.js.map +1 -0
- package/dist/cinematic/GlowCardSystem.d.ts +17 -0
- package/dist/cinematic/GlowCardSystem.d.ts.map +1 -0
- package/dist/cinematic/GlowCardSystem.js +28 -0
- package/dist/cinematic/GlowCardSystem.js.map +1 -0
- package/dist/cinematic/RainParticleSystem.d.ts +22 -0
- package/dist/cinematic/RainParticleSystem.d.ts.map +1 -0
- package/dist/cinematic/RainParticleSystem.js +114 -0
- package/dist/cinematic/RainParticleSystem.js.map +1 -0
- package/dist/cinematic/VignettePass.d.ts +10 -0
- package/dist/cinematic/VignettePass.d.ts.map +1 -0
- package/dist/cinematic/VignettePass.js +17 -0
- package/dist/cinematic/VignettePass.js.map +1 -0
- package/dist/cinematic/WetReflectionApproximation.d.ts +13 -0
- package/dist/cinematic/WetReflectionApproximation.d.ts.map +1 -0
- package/dist/cinematic/WetReflectionApproximation.js +18 -0
- package/dist/cinematic/WetReflectionApproximation.js.map +1 -0
- package/dist/cinematic/index.d.ts +15 -0
- package/dist/cinematic/index.d.ts.map +1 -0
- package/dist/cinematic/index.js +15 -0
- package/dist/cinematic/index.js.map +1 -0
- package/dist/effects/CollisionModule.d.ts +15 -0
- package/dist/effects/CollisionModule.d.ts.map +1 -0
- package/dist/effects/CollisionModule.js +46 -0
- package/dist/effects/CollisionModule.js.map +1 -0
- package/dist/effects/ColorModule.d.ts +15 -0
- package/dist/effects/ColorModule.d.ts.map +1 -0
- package/dist/effects/ColorModule.js +45 -0
- package/dist/effects/ColorModule.js.map +1 -0
- package/dist/effects/ForceModule.d.ts +11 -0
- package/dist/effects/ForceModule.d.ts.map +1 -0
- package/dist/effects/ForceModule.js +17 -0
- package/dist/effects/ForceModule.js.map +1 -0
- package/dist/effects/GPUParticleBackend.d.ts +153 -0
- package/dist/effects/GPUParticleBackend.d.ts.map +1 -0
- package/dist/effects/GPUParticleBackend.js +397 -0
- package/dist/effects/GPUParticleBackend.js.map +1 -0
- package/dist/effects/Particle.d.ts +49 -0
- package/dist/effects/Particle.d.ts.map +1 -0
- package/dist/effects/Particle.js +56 -0
- package/dist/effects/Particle.js.map +1 -0
- package/dist/effects/ParticleDiagnostics.d.ts +58 -0
- package/dist/effects/ParticleDiagnostics.d.ts.map +1 -0
- package/dist/effects/ParticleDiagnostics.js +145 -0
- package/dist/effects/ParticleDiagnostics.js.map +1 -0
- package/dist/effects/ParticleEffectPresets.d.ts +8 -0
- package/dist/effects/ParticleEffectPresets.d.ts.map +1 -0
- package/dist/effects/ParticleEffectPresets.js +137 -0
- package/dist/effects/ParticleEffectPresets.js.map +1 -0
- package/dist/effects/ParticleEmitter.d.ts +87 -0
- package/dist/effects/ParticleEmitter.d.ts.map +1 -0
- package/dist/effects/ParticleEmitter.js +254 -0
- package/dist/effects/ParticleEmitter.js.map +1 -0
- package/dist/effects/ParticleModule.d.ts +15 -0
- package/dist/effects/ParticleModule.d.ts.map +1 -0
- package/dist/effects/ParticleModule.js +6 -0
- package/dist/effects/ParticleModule.js.map +1 -0
- package/dist/effects/ParticleRenderPass.d.ts +35 -0
- package/dist/effects/ParticleRenderPass.d.ts.map +1 -0
- package/dist/effects/ParticleRenderPass.js +91 -0
- package/dist/effects/ParticleRenderPass.js.map +1 -0
- package/dist/effects/ParticleRenderer.d.ts +34 -0
- package/dist/effects/ParticleRenderer.d.ts.map +1 -0
- package/dist/effects/ParticleRenderer.js +93 -0
- package/dist/effects/ParticleRenderer.js.map +1 -0
- package/dist/effects/ParticleSystem.d.ts +51 -0
- package/dist/effects/ParticleSystem.d.ts.map +1 -0
- package/dist/effects/ParticleSystem.js +261 -0
- package/dist/effects/ParticleSystem.js.map +1 -0
- package/dist/effects/SizeModule.d.ts +14 -0
- package/dist/effects/SizeModule.d.ts.map +1 -0
- package/dist/effects/SizeModule.js +42 -0
- package/dist/effects/SizeModule.js.map +1 -0
- package/dist/effects/TrailModule.d.ts +22 -0
- package/dist/effects/TrailModule.d.ts.map +1 -0
- package/dist/effects/TrailModule.js +50 -0
- package/dist/effects/TrailModule.js.map +1 -0
- package/dist/effects/VelocityModule.d.ts +15 -0
- package/dist/effects/VelocityModule.d.ts.map +1 -0
- package/dist/effects/VelocityModule.js +57 -0
- package/dist/effects/VelocityModule.js.map +1 -0
- package/dist/effects/index.d.ts +16 -0
- package/dist/effects/index.d.ts.map +1 -0
- package/dist/effects/index.js +16 -0
- package/dist/effects/index.js.map +1 -0
- package/dist/index.d.ts +260 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +155 -0
- package/dist/index.js.map +1 -0
- package/dist/materials/AlphaSorting.d.ts +8 -0
- package/dist/materials/AlphaSorting.d.ts.map +1 -0
- package/dist/materials/AlphaSorting.js +26 -0
- package/dist/materials/AlphaSorting.js.map +1 -0
- package/dist/materials/MaterialExtensions.d.ts +10 -0
- package/dist/materials/MaterialExtensions.d.ts.map +1 -0
- package/dist/materials/MaterialExtensions.js +20 -0
- package/dist/materials/MaterialExtensions.js.map +1 -0
- package/dist/materials/PhysicalMaterial.d.ts +36 -0
- package/dist/materials/PhysicalMaterial.d.ts.map +1 -0
- package/dist/materials/PhysicalMaterial.js +79 -0
- package/dist/materials/PhysicalMaterial.js.map +1 -0
- package/dist/materials/TransmissionPass.d.ts +16 -0
- package/dist/materials/TransmissionPass.d.ts.map +1 -0
- package/dist/materials/TransmissionPass.js +30 -0
- package/dist/materials/TransmissionPass.js.map +1 -0
- package/dist/performance/BVH.d.ts +3 -0
- package/dist/performance/BVH.d.ts.map +1 -0
- package/dist/performance/BVH.js +2 -0
- package/dist/performance/BVH.js.map +1 -0
- package/dist/performance/Batcher.d.ts +3 -0
- package/dist/performance/Batcher.d.ts.map +1 -0
- package/dist/performance/Batcher.js +2 -0
- package/dist/performance/Batcher.js.map +1 -0
- package/dist/performance/FrustumCuller.d.ts +3 -0
- package/dist/performance/FrustumCuller.d.ts.map +1 -0
- package/dist/performance/FrustumCuller.js +5 -0
- package/dist/performance/FrustumCuller.js.map +1 -0
- package/dist/performance/LOD.d.ts +8 -0
- package/dist/performance/LOD.d.ts.map +1 -0
- package/dist/performance/LOD.js +15 -0
- package/dist/performance/LOD.js.map +1 -0
- package/dist/performance/Octree.d.ts +7 -0
- package/dist/performance/Octree.d.ts.map +1 -0
- package/dist/performance/Octree.js +4 -0
- package/dist/performance/Octree.js.map +1 -0
- package/dist/performance/RenderItemSorting.d.ts +43 -0
- package/dist/performance/RenderItemSorting.d.ts.map +1 -0
- package/dist/performance/RenderItemSorting.js +111 -0
- package/dist/performance/RenderItemSorting.js.map +1 -0
- package/dist/performance/RendererStats.d.ts +23 -0
- package/dist/performance/RendererStats.d.ts.map +1 -0
- package/dist/performance/RendererStats.js +23 -0
- package/dist/performance/RendererStats.js.map +1 -0
- package/dist/performance/ResourceBudget.d.ts +19 -0
- package/dist/performance/ResourceBudget.d.ts.map +1 -0
- package/dist/performance/ResourceBudget.js +21 -0
- package/dist/performance/ResourceBudget.js.map +1 -0
- package/dist/postprocess/BloomPass.d.ts +11 -0
- package/dist/postprocess/BloomPass.d.ts.map +1 -0
- package/dist/postprocess/BloomPass.js +14 -0
- package/dist/postprocess/BloomPass.js.map +1 -0
- package/dist/postprocess/CinematicDiagnostics.d.ts +112 -0
- package/dist/postprocess/CinematicDiagnostics.d.ts.map +1 -0
- package/dist/postprocess/CinematicDiagnostics.js +492 -0
- package/dist/postprocess/CinematicDiagnostics.js.map +1 -0
- package/dist/postprocess/ColorGradingPass.d.ts +4 -0
- package/dist/postprocess/ColorGradingPass.d.ts.map +1 -0
- package/dist/postprocess/ColorGradingPass.js +15 -0
- package/dist/postprocess/ColorGradingPass.js.map +1 -0
- package/dist/postprocess/DepthOfFieldPass.d.ts +3 -0
- package/dist/postprocess/DepthOfFieldPass.d.ts.map +1 -0
- package/dist/postprocess/DepthOfFieldPass.js +7 -0
- package/dist/postprocess/DepthOfFieldPass.js.map +1 -0
- package/dist/postprocess/EffectComposer.d.ts +110 -0
- package/dist/postprocess/EffectComposer.d.ts.map +1 -0
- package/dist/postprocess/EffectComposer.js +249 -0
- package/dist/postprocess/EffectComposer.js.map +1 -0
- package/dist/postprocess/SSAOPass.d.ts +6 -0
- package/dist/postprocess/SSAOPass.d.ts.map +1 -0
- package/dist/postprocess/SSAOPass.js +18 -0
- package/dist/postprocess/SSAOPass.js.map +1 -0
- package/dist/postprocess/index.d.ts +11 -0
- package/dist/postprocess/index.d.ts.map +1 -0
- package/dist/postprocess/index.js +7 -0
- package/dist/postprocess/index.js.map +1 -0
- package/dist/production-runtime/AnimationControlsPipeline.d.ts +37 -0
- package/dist/production-runtime/AnimationControlsPipeline.d.ts.map +1 -0
- package/dist/production-runtime/AnimationControlsPipeline.js +41 -0
- package/dist/production-runtime/AnimationControlsPipeline.js.map +1 -0
- package/dist/production-runtime/PBRHDRPipeline.d.ts +81 -0
- package/dist/production-runtime/PBRHDRPipeline.d.ts.map +1 -0
- package/dist/production-runtime/PBRHDRPipeline.js +279 -0
- package/dist/production-runtime/PBRHDRPipeline.js.map +1 -0
- package/dist/production-runtime/ProductionEffectsPipeline.d.ts +20 -0
- package/dist/production-runtime/ProductionEffectsPipeline.d.ts.map +1 -0
- package/dist/production-runtime/ProductionEffectsPipeline.js +65 -0
- package/dist/production-runtime/ProductionEffectsPipeline.js.map +1 -0
- package/dist/production-runtime/ProductionRendererTypes.d.ts +97 -0
- package/dist/production-runtime/ProductionRendererTypes.d.ts.map +1 -0
- package/dist/production-runtime/ProductionRendererTypes.js +29 -0
- package/dist/production-runtime/ProductionRendererTypes.js.map +1 -0
- package/dist/production-runtime/ProductionRuntimeRenderer.d.ts +36 -0
- package/dist/production-runtime/ProductionRuntimeRenderer.d.ts.map +1 -0
- package/dist/production-runtime/ProductionRuntimeRenderer.js +124 -0
- package/dist/production-runtime/ProductionRuntimeRenderer.js.map +1 -0
- package/dist/production-runtime/ProductionWebGL2Renderer.d.ts +51 -0
- package/dist/production-runtime/ProductionWebGL2Renderer.d.ts.map +1 -0
- package/dist/production-runtime/ProductionWebGL2Renderer.js +269 -0
- package/dist/production-runtime/ProductionWebGL2Renderer.js.map +1 -0
- package/dist/production-runtime/ProductionWebGPURenderer.d.ts +69 -0
- package/dist/production-runtime/ProductionWebGPURenderer.d.ts.map +1 -0
- package/dist/production-runtime/ProductionWebGPURenderer.js +313 -0
- package/dist/production-runtime/ProductionWebGPURenderer.js.map +1 -0
- package/dist/production-runtime/TransmissionBackdropCapture.d.ts +11 -0
- package/dist/production-runtime/TransmissionBackdropCapture.d.ts.map +1 -0
- package/dist/production-runtime/TransmissionBackdropCapture.js +119 -0
- package/dist/production-runtime/TransmissionBackdropCapture.js.map +1 -0
- package/dist/production-runtime/animation/MorphTargetRenderer.d.ts +7 -0
- package/dist/production-runtime/animation/MorphTargetRenderer.d.ts.map +1 -0
- package/dist/production-runtime/animation/MorphTargetRenderer.js +2 -0
- package/dist/production-runtime/animation/MorphTargetRenderer.js.map +1 -0
- package/dist/production-runtime/animation/SkinningRenderer.d.ts +7 -0
- package/dist/production-runtime/animation/SkinningRenderer.d.ts.map +1 -0
- package/dist/production-runtime/animation/SkinningRenderer.js +2 -0
- package/dist/production-runtime/animation/SkinningRenderer.js.map +1 -0
- package/dist/production-runtime/backends/RendererBackend.d.ts +16 -0
- package/dist/production-runtime/backends/RendererBackend.d.ts.map +1 -0
- package/dist/production-runtime/backends/RendererBackend.js +2 -0
- package/dist/production-runtime/backends/RendererBackend.js.map +1 -0
- package/dist/production-runtime/backends/WebGL2RendererBackend.d.ts +15 -0
- package/dist/production-runtime/backends/WebGL2RendererBackend.d.ts.map +1 -0
- package/dist/production-runtime/backends/WebGL2RendererBackend.js +25 -0
- package/dist/production-runtime/backends/WebGL2RendererBackend.js.map +1 -0
- package/dist/production-runtime/backends/WebGPURendererBackend.d.ts +20 -0
- package/dist/production-runtime/backends/WebGPURendererBackend.d.ts.map +1 -0
- package/dist/production-runtime/backends/WebGPURendererBackend.js +19 -0
- package/dist/production-runtime/backends/WebGPURendererBackend.js.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Buffer.d.ts +11 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Buffer.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Buffer.js +8 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Buffer.js.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Capabilities.d.ts +11 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Capabilities.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Capabilities.js +8 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Capabilities.js.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2RenderTarget.d.ts +11 -0
- package/dist/production-runtime/backends/webgl2/WebGL2RenderTarget.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2RenderTarget.js +8 -0
- package/dist/production-runtime/backends/webgl2/WebGL2RenderTarget.js.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Shader.d.ts +11 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Shader.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Shader.js +8 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Shader.js.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2StateCache.d.ts +2 -0
- package/dist/production-runtime/backends/webgl2/WebGL2StateCache.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2StateCache.js +2 -0
- package/dist/production-runtime/backends/webgl2/WebGL2StateCache.js.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Texture.d.ts +11 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Texture.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Texture.js +8 -0
- package/dist/production-runtime/backends/webgl2/WebGL2Texture.js.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPUBuffer.d.ts +11 -0
- package/dist/production-runtime/backends/webgpu/WebGPUBuffer.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPUBuffer.js +8 -0
- package/dist/production-runtime/backends/webgpu/WebGPUBuffer.js.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPUCapabilities.d.ts +11 -0
- package/dist/production-runtime/backends/webgpu/WebGPUCapabilities.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPUCapabilities.js +8 -0
- package/dist/production-runtime/backends/webgpu/WebGPUCapabilities.js.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPURenderTarget.d.ts +11 -0
- package/dist/production-runtime/backends/webgpu/WebGPURenderTarget.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPURenderTarget.js +8 -0
- package/dist/production-runtime/backends/webgpu/WebGPURenderTarget.js.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPUShader.d.ts +11 -0
- package/dist/production-runtime/backends/webgpu/WebGPUShader.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPUShader.js +8 -0
- package/dist/production-runtime/backends/webgpu/WebGPUShader.js.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPUTexture.d.ts +11 -0
- package/dist/production-runtime/backends/webgpu/WebGPUTexture.d.ts.map +1 -0
- package/dist/production-runtime/backends/webgpu/WebGPUTexture.js +8 -0
- package/dist/production-runtime/backends/webgpu/WebGPUTexture.js.map +1 -0
- package/dist/production-runtime/color/ColorManagement.d.ts +4 -0
- package/dist/production-runtime/color/ColorManagement.d.ts.map +1 -0
- package/dist/production-runtime/color/ColorManagement.js +3 -0
- package/dist/production-runtime/color/ColorManagement.js.map +1 -0
- package/dist/production-runtime/color/ToneMapping.d.ts +3 -0
- package/dist/production-runtime/color/ToneMapping.d.ts.map +1 -0
- package/dist/production-runtime/color/ToneMapping.js +9 -0
- package/dist/production-runtime/color/ToneMapping.js.map +1 -0
- package/dist/production-runtime/diagnostics/FrameCapture.d.ts +7 -0
- package/dist/production-runtime/diagnostics/FrameCapture.d.ts.map +1 -0
- package/dist/production-runtime/diagnostics/FrameCapture.js +2 -0
- package/dist/production-runtime/diagnostics/FrameCapture.js.map +1 -0
- package/dist/production-runtime/diagnostics/GPUCapabilities.d.ts +9 -0
- package/dist/production-runtime/diagnostics/GPUCapabilities.d.ts.map +1 -0
- package/dist/production-runtime/diagnostics/GPUCapabilities.js +2 -0
- package/dist/production-runtime/diagnostics/GPUCapabilities.js.map +1 -0
- package/dist/production-runtime/diagnostics/RendererStats.d.ts +9 -0
- package/dist/production-runtime/diagnostics/RendererStats.d.ts.map +1 -0
- package/dist/production-runtime/diagnostics/RendererStats.js +2 -0
- package/dist/production-runtime/diagnostics/RendererStats.js.map +1 -0
- package/dist/production-runtime/environment/EnvironmentMap.d.ts +8 -0
- package/dist/production-runtime/environment/EnvironmentMap.d.ts.map +1 -0
- package/dist/production-runtime/environment/EnvironmentMap.js +2 -0
- package/dist/production-runtime/environment/EnvironmentMap.js.map +1 -0
- package/dist/production-runtime/environment/HDRLoader.d.ts +19 -0
- package/dist/production-runtime/environment/HDRLoader.d.ts.map +1 -0
- package/dist/production-runtime/environment/HDRLoader.js +22 -0
- package/dist/production-runtime/environment/HDRLoader.js.map +1 -0
- package/dist/production-runtime/environment/PMREMGenerator.d.ts +99 -0
- package/dist/production-runtime/environment/PMREMGenerator.d.ts.map +1 -0
- package/dist/production-runtime/environment/PMREMGenerator.js +534 -0
- package/dist/production-runtime/environment/PMREMGenerator.js.map +1 -0
- package/dist/production-runtime/framegraph/FrameGraph.d.ts +8 -0
- package/dist/production-runtime/framegraph/FrameGraph.d.ts.map +1 -0
- package/dist/production-runtime/framegraph/FrameGraph.js +14 -0
- package/dist/production-runtime/framegraph/FrameGraph.js.map +1 -0
- package/dist/production-runtime/framegraph/RenderPass.d.ts +14 -0
- package/dist/production-runtime/framegraph/RenderPass.d.ts.map +1 -0
- package/dist/production-runtime/framegraph/RenderPass.js +2 -0
- package/dist/production-runtime/framegraph/RenderPass.js.map +1 -0
- package/dist/production-runtime/geometry/ProjectedDecalGeometry.d.ts +53 -0
- package/dist/production-runtime/geometry/ProjectedDecalGeometry.d.ts.map +1 -0
- package/dist/production-runtime/geometry/ProjectedDecalGeometry.js +340 -0
- package/dist/production-runtime/geometry/ProjectedDecalGeometry.js.map +1 -0
- package/dist/production-runtime/index.d.ts +73 -0
- package/dist/production-runtime/index.d.ts.map +1 -0
- package/dist/production-runtime/index.js +67 -0
- package/dist/production-runtime/index.js.map +1 -0
- package/dist/production-runtime/lights/LightManager.d.ts +8 -0
- package/dist/production-runtime/lights/LightManager.d.ts.map +1 -0
- package/dist/production-runtime/lights/LightManager.js +7 -0
- package/dist/production-runtime/lights/LightManager.js.map +1 -0
- package/dist/production-runtime/lights/ShadowMapRenderer.d.ts +8 -0
- package/dist/production-runtime/lights/ShadowMapRenderer.d.ts.map +1 -0
- package/dist/production-runtime/lights/ShadowMapRenderer.js +4 -0
- package/dist/production-runtime/lights/ShadowMapRenderer.js.map +1 -0
- package/dist/production-runtime/materials/GLTFMaterialAdapter.d.ts +14 -0
- package/dist/production-runtime/materials/GLTFMaterialAdapter.d.ts.map +1 -0
- package/dist/production-runtime/materials/GLTFMaterialAdapter.js +5 -0
- package/dist/production-runtime/materials/GLTFMaterialAdapter.js.map +1 -0
- package/dist/production-runtime/materials/GLTFPBRMaterialAdapter.d.ts +3 -0
- package/dist/production-runtime/materials/GLTFPBRMaterialAdapter.d.ts.map +1 -0
- package/dist/production-runtime/materials/GLTFPBRMaterialAdapter.js +2 -0
- package/dist/production-runtime/materials/GLTFPBRMaterialAdapter.js.map +1 -0
- package/dist/production-runtime/materials/MaterialCompiler.d.ts +9 -0
- package/dist/production-runtime/materials/MaterialCompiler.d.ts.map +1 -0
- package/dist/production-runtime/materials/MaterialCompiler.js +5 -0
- package/dist/production-runtime/materials/MaterialCompiler.js.map +1 -0
- package/dist/production-runtime/materials/MaterialTextureBindings.d.ts +8 -0
- package/dist/production-runtime/materials/MaterialTextureBindings.d.ts.map +1 -0
- package/dist/production-runtime/materials/MaterialTextureBindings.js +4 -0
- package/dist/production-runtime/materials/MaterialTextureBindings.js.map +1 -0
- package/dist/production-runtime/materials/PBRMaterial.d.ts +23 -0
- package/dist/production-runtime/materials/PBRMaterial.d.ts.map +1 -0
- package/dist/production-runtime/materials/PBRMaterial.js +2 -0
- package/dist/production-runtime/materials/PBRMaterial.js.map +1 -0
- package/dist/production-runtime/materials/PBRShaderFeatures.d.ts +13 -0
- package/dist/production-runtime/materials/PBRShaderFeatures.d.ts.map +1 -0
- package/dist/production-runtime/materials/PBRShaderFeatures.js +2 -0
- package/dist/production-runtime/materials/PBRShaderFeatures.js.map +1 -0
- package/dist/production-runtime/passes/ContactShadowPass.d.ts +40 -0
- package/dist/production-runtime/passes/ContactShadowPass.d.ts.map +1 -0
- package/dist/production-runtime/passes/ContactShadowPass.js +126 -0
- package/dist/production-runtime/passes/ContactShadowPass.js.map +1 -0
- package/dist/production-runtime/passes/DepthPrepass.d.ts +8 -0
- package/dist/production-runtime/passes/DepthPrepass.d.ts.map +1 -0
- package/dist/production-runtime/passes/DepthPrepass.js +7 -0
- package/dist/production-runtime/passes/DepthPrepass.js.map +1 -0
- package/dist/production-runtime/passes/OpaquePass.d.ts +8 -0
- package/dist/production-runtime/passes/OpaquePass.d.ts.map +1 -0
- package/dist/production-runtime/passes/OpaquePass.js +7 -0
- package/dist/production-runtime/passes/OpaquePass.js.map +1 -0
- package/dist/production-runtime/passes/ShadowPass.d.ts +8 -0
- package/dist/production-runtime/passes/ShadowPass.d.ts.map +1 -0
- package/dist/production-runtime/passes/ShadowPass.js +7 -0
- package/dist/production-runtime/passes/ShadowPass.js.map +1 -0
- package/dist/production-runtime/passes/SkyboxPass.d.ts +8 -0
- package/dist/production-runtime/passes/SkyboxPass.d.ts.map +1 -0
- package/dist/production-runtime/passes/SkyboxPass.js +7 -0
- package/dist/production-runtime/passes/SkyboxPass.js.map +1 -0
- package/dist/production-runtime/passes/ToneMappingPass.d.ts +8 -0
- package/dist/production-runtime/passes/ToneMappingPass.d.ts.map +1 -0
- package/dist/production-runtime/passes/ToneMappingPass.js +7 -0
- package/dist/production-runtime/passes/ToneMappingPass.js.map +1 -0
- package/dist/production-runtime/passes/TransparentPass.d.ts +8 -0
- package/dist/production-runtime/passes/TransparentPass.d.ts.map +1 -0
- package/dist/production-runtime/passes/TransparentPass.js +7 -0
- package/dist/production-runtime/passes/TransparentPass.js.map +1 -0
- package/dist/production-runtime/postprocess/BloomPass.d.ts +15 -0
- package/dist/production-runtime/postprocess/BloomPass.d.ts.map +1 -0
- package/dist/production-runtime/postprocess/BloomPass.js +37 -0
- package/dist/production-runtime/postprocess/BloomPass.js.map +1 -0
- package/dist/production-runtime/postprocess/ColorGradingPass.d.ts +16 -0
- package/dist/production-runtime/postprocess/ColorGradingPass.d.ts.map +1 -0
- package/dist/production-runtime/postprocess/ColorGradingPass.js +34 -0
- package/dist/production-runtime/postprocess/ColorGradingPass.js.map +1 -0
- package/dist/production-runtime/postprocess/DOFPass.d.ts +16 -0
- package/dist/production-runtime/postprocess/DOFPass.d.ts.map +1 -0
- package/dist/production-runtime/postprocess/DOFPass.js +31 -0
- package/dist/production-runtime/postprocess/DOFPass.js.map +1 -0
- package/dist/production-runtime/postprocess/FXAAPass.d.ts +16 -0
- package/dist/production-runtime/postprocess/FXAAPass.d.ts.map +1 -0
- package/dist/production-runtime/postprocess/FXAAPass.js +39 -0
- package/dist/production-runtime/postprocess/FXAAPass.js.map +1 -0
- package/dist/production-runtime/postprocess/ProductionEffectComposer.d.ts +21 -0
- package/dist/production-runtime/postprocess/ProductionEffectComposer.d.ts.map +1 -0
- package/dist/production-runtime/postprocess/ProductionEffectComposer.js +53 -0
- package/dist/production-runtime/postprocess/ProductionEffectComposer.js.map +1 -0
- package/dist/production-runtime/postprocess/ProductionPostProcessTypes.d.ts +37 -0
- package/dist/production-runtime/postprocess/ProductionPostProcessTypes.d.ts.map +1 -0
- package/dist/production-runtime/postprocess/ProductionPostProcessTypes.js +124 -0
- package/dist/production-runtime/postprocess/ProductionPostProcessTypes.js.map +1 -0
- package/dist/production-runtime/postprocess/SSAOPass.d.ts +15 -0
- package/dist/production-runtime/postprocess/SSAOPass.d.ts.map +1 -0
- package/dist/production-runtime/postprocess/SSAOPass.js +30 -0
- package/dist/production-runtime/postprocess/SSAOPass.js.map +1 -0
- package/dist/production-runtime/resources/GPUBuffer.d.ts +10 -0
- package/dist/production-runtime/resources/GPUBuffer.d.ts.map +1 -0
- package/dist/production-runtime/resources/GPUBuffer.js +7 -0
- package/dist/production-runtime/resources/GPUBuffer.js.map +1 -0
- package/dist/production-runtime/resources/GPUTexture.d.ts +12 -0
- package/dist/production-runtime/resources/GPUTexture.d.ts.map +1 -0
- package/dist/production-runtime/resources/GPUTexture.js +7 -0
- package/dist/production-runtime/resources/GPUTexture.js.map +1 -0
- package/dist/production-runtime/resources/RenderTarget.d.ts +11 -0
- package/dist/production-runtime/resources/RenderTarget.d.ts.map +1 -0
- package/dist/production-runtime/resources/RenderTarget.js +7 -0
- package/dist/production-runtime/resources/RenderTarget.js.map +1 -0
- package/dist/production-runtime/resources/ResourceCache.d.ts +8 -0
- package/dist/production-runtime/resources/ResourceCache.d.ts.map +1 -0
- package/dist/production-runtime/resources/ResourceCache.js +8 -0
- package/dist/production-runtime/resources/ResourceCache.js.map +1 -0
- package/dist/production-runtime/scene/Camera.d.ts +8 -0
- package/dist/production-runtime/scene/Camera.d.ts.map +1 -0
- package/dist/production-runtime/scene/Camera.js +2 -0
- package/dist/production-runtime/scene/Camera.js.map +1 -0
- package/dist/production-runtime/scene/Lights.d.ts +9 -0
- package/dist/production-runtime/scene/Lights.d.ts.map +1 -0
- package/dist/production-runtime/scene/Lights.js +2 -0
- package/dist/production-runtime/scene/Lights.js.map +1 -0
- package/dist/production-runtime/scene/RenderableMesh.d.ts +8 -0
- package/dist/production-runtime/scene/RenderableMesh.d.ts.map +1 -0
- package/dist/production-runtime/scene/RenderableMesh.js +2 -0
- package/dist/production-runtime/scene/RenderableMesh.js.map +1 -0
- package/dist/production-runtime/scene/RenderablePrimitive.d.ts +8 -0
- package/dist/production-runtime/scene/RenderablePrimitive.d.ts.map +1 -0
- package/dist/production-runtime/scene/RenderablePrimitive.js +2 -0
- package/dist/production-runtime/scene/RenderablePrimitive.js.map +1 -0
- package/dist/production-runtime/scene/RenderableScene.d.ts +11 -0
- package/dist/production-runtime/scene/RenderableScene.d.ts.map +1 -0
- package/dist/production-runtime/scene/RenderableScene.js +2 -0
- package/dist/production-runtime/scene/RenderableScene.js.map +1 -0
- package/dist/production-runtime/shaders/ShaderProgramLibrary.d.ts +12 -0
- package/dist/production-runtime/shaders/ShaderProgramLibrary.d.ts.map +1 -0
- package/dist/production-runtime/shaders/ShaderProgramLibrary.js +7 -0
- package/dist/production-runtime/shaders/ShaderProgramLibrary.js.map +1 -0
- package/dist/shadows/CascadedShadowPipeline.d.ts +25 -0
- package/dist/shadows/CascadedShadowPipeline.d.ts.map +1 -0
- package/dist/shadows/CascadedShadowPipeline.js +31 -0
- package/dist/shadows/CascadedShadowPipeline.js.map +1 -0
- package/dist/shadows/ContactShadows.d.ts +37 -0
- package/dist/shadows/ContactShadows.d.ts.map +1 -0
- package/dist/shadows/ContactShadows.js +68 -0
- package/dist/shadows/ContactShadows.js.map +1 -0
- package/dist/shadows/ShadowDebugViews.d.ts +12 -0
- package/dist/shadows/ShadowDebugViews.d.ts.map +1 -0
- package/dist/shadows/ShadowDebugViews.js +35 -0
- package/dist/shadows/ShadowDebugViews.js.map +1 -0
- package/dist/threejs-compatibility/InstancingSystem.d.ts +10 -0
- package/dist/threejs-compatibility/InstancingSystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/InstancingSystem.js +11 -0
- package/dist/threejs-compatibility/InstancingSystem.js.map +1 -0
- package/dist/threejs-compatibility/LightingSystem.d.ts +11 -0
- package/dist/threejs-compatibility/LightingSystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/LightingSystem.js +14 -0
- package/dist/threejs-compatibility/LightingSystem.js.map +1 -0
- package/dist/threejs-compatibility/MaterialSystem.d.ts +6 -0
- package/dist/threejs-compatibility/MaterialSystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/MaterialSystem.js +7 -0
- package/dist/threejs-compatibility/MaterialSystem.js.map +1 -0
- package/dist/threejs-compatibility/RenderTargetSystem.d.ts +16 -0
- package/dist/threejs-compatibility/RenderTargetSystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/RenderTargetSystem.js +23 -0
- package/dist/threejs-compatibility/RenderTargetSystem.js.map +1 -0
- package/dist/threejs-compatibility/RendererDiagnostics.d.ts +27 -0
- package/dist/threejs-compatibility/RendererDiagnostics.d.ts.map +1 -0
- package/dist/threejs-compatibility/RendererDiagnostics.js +41 -0
- package/dist/threejs-compatibility/RendererDiagnostics.js.map +1 -0
- package/dist/threejs-compatibility/SceneRenderer.d.ts +19 -0
- package/dist/threejs-compatibility/SceneRenderer.d.ts.map +1 -0
- package/dist/threejs-compatibility/SceneRenderer.js +18 -0
- package/dist/threejs-compatibility/SceneRenderer.js.map +1 -0
- package/dist/threejs-compatibility/ShadowSystem.d.ts +11 -0
- package/dist/threejs-compatibility/ShadowSystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/ShadowSystem.js +12 -0
- package/dist/threejs-compatibility/ShadowSystem.js.map +1 -0
- package/dist/threejs-compatibility/TextureSystem.d.ts +9 -0
- package/dist/threejs-compatibility/TextureSystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/TextureSystem.js +14 -0
- package/dist/threejs-compatibility/TextureSystem.js.map +1 -0
- package/dist/threejs-compatibility/ThreeCompatRenderer.d.ts +37 -0
- package/dist/threejs-compatibility/ThreeCompatRenderer.d.ts.map +1 -0
- package/dist/threejs-compatibility/ThreeCompatRenderer.js +77 -0
- package/dist/threejs-compatibility/ThreeCompatRenderer.js.map +1 -0
- package/dist/threejs-compatibility/TransparencySystem.d.ts +11 -0
- package/dist/threejs-compatibility/TransparencySystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/TransparencySystem.js +12 -0
- package/dist/threejs-compatibility/TransparencySystem.js.map +1 -0
- package/dist/threejs-compatibility/index.d.ts +25 -0
- package/dist/threejs-compatibility/index.d.ts.map +1 -0
- package/dist/threejs-compatibility/index.js +15 -0
- package/dist/threejs-compatibility/index.js.map +1 -0
- package/dist/threejs-compatibility/performance/BVH.d.ts +11 -0
- package/dist/threejs-compatibility/performance/BVH.d.ts.map +1 -0
- package/dist/threejs-compatibility/performance/BVH.js +10 -0
- package/dist/threejs-compatibility/performance/BVH.js.map +1 -0
- package/dist/threejs-compatibility/performance/FrustumCulling.d.ts +7 -0
- package/dist/threejs-compatibility/performance/FrustumCulling.d.ts.map +1 -0
- package/dist/threejs-compatibility/performance/FrustumCulling.js +5 -0
- package/dist/threejs-compatibility/performance/FrustumCulling.js.map +1 -0
- package/dist/threejs-compatibility/performance/Instancing.d.ts +7 -0
- package/dist/threejs-compatibility/performance/Instancing.d.ts.map +1 -0
- package/dist/threejs-compatibility/performance/Instancing.js +10 -0
- package/dist/threejs-compatibility/performance/Instancing.js.map +1 -0
- package/dist/threejs-compatibility/performance/LODSystem.d.ts +9 -0
- package/dist/threejs-compatibility/performance/LODSystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/performance/LODSystem.js +11 -0
- package/dist/threejs-compatibility/performance/LODSystem.js.map +1 -0
- package/dist/threejs-compatibility/performance/OcclusionCulling.d.ts +3 -0
- package/dist/threejs-compatibility/performance/OcclusionCulling.d.ts.map +1 -0
- package/dist/threejs-compatibility/performance/OcclusionCulling.js +5 -0
- package/dist/threejs-compatibility/performance/OcclusionCulling.js.map +1 -0
- package/dist/threejs-compatibility/performance/RaycastAcceleration.d.ts +8 -0
- package/dist/threejs-compatibility/performance/RaycastAcceleration.d.ts.map +1 -0
- package/dist/threejs-compatibility/performance/RaycastAcceleration.js +11 -0
- package/dist/threejs-compatibility/performance/RaycastAcceleration.js.map +1 -0
- package/dist/threejs-compatibility/performance/RendererProfiler.d.ts +11 -0
- package/dist/threejs-compatibility/performance/RendererProfiler.d.ts.map +1 -0
- package/dist/threejs-compatibility/performance/RendererProfiler.js +10 -0
- package/dist/threejs-compatibility/performance/RendererProfiler.js.map +1 -0
- package/dist/threejs-compatibility/performance/TextureStreaming.d.ts +7 -0
- package/dist/threejs-compatibility/performance/TextureStreaming.d.ts.map +1 -0
- package/dist/threejs-compatibility/performance/TextureStreaming.js +10 -0
- package/dist/threejs-compatibility/performance/TextureStreaming.js.map +1 -0
- package/dist/threejs-compatibility/performance/index.d.ts +13 -0
- package/dist/threejs-compatibility/performance/index.d.ts.map +1 -0
- package/dist/threejs-compatibility/performance/index.js +9 -0
- package/dist/threejs-compatibility/performance/index.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/BloomPass.d.ts +9 -0
- package/dist/threejs-compatibility/postprocess/BloomPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/BloomPass.js +14 -0
- package/dist/threejs-compatibility/postprocess/BloomPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/ColorGradingPass.d.ts +10 -0
- package/dist/threejs-compatibility/postprocess/ColorGradingPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/ColorGradingPass.js +16 -0
- package/dist/threejs-compatibility/postprocess/ColorGradingPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/DepthOfFieldPass.d.ts +9 -0
- package/dist/threejs-compatibility/postprocess/DepthOfFieldPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/DepthOfFieldPass.js +19 -0
- package/dist/threejs-compatibility/postprocess/DepthOfFieldPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/EffectComposer.d.ts +7 -0
- package/dist/threejs-compatibility/postprocess/EffectComposer.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/EffectComposer.js +11 -0
- package/dist/threejs-compatibility/postprocess/EffectComposer.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/FXAAPass.d.ts +7 -0
- package/dist/threejs-compatibility/postprocess/FXAAPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/FXAAPass.js +10 -0
- package/dist/threejs-compatibility/postprocess/FXAAPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/MotionBlurPass.d.ts +9 -0
- package/dist/threejs-compatibility/postprocess/MotionBlurPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/MotionBlurPass.js +18 -0
- package/dist/threejs-compatibility/postprocess/MotionBlurPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/OutlinePass.d.ts +9 -0
- package/dist/threejs-compatibility/postprocess/OutlinePass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/OutlinePass.js +19 -0
- package/dist/threejs-compatibility/postprocess/OutlinePass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/PostProcessTypes.d.ts +42 -0
- package/dist/threejs-compatibility/postprocess/PostProcessTypes.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/PostProcessTypes.js +123 -0
- package/dist/threejs-compatibility/postprocess/PostProcessTypes.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/RenderPass.d.ts +7 -0
- package/dist/threejs-compatibility/postprocess/RenderPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/RenderPass.js +8 -0
- package/dist/threejs-compatibility/postprocess/RenderPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/SMAAPass.d.ts +7 -0
- package/dist/threejs-compatibility/postprocess/SMAAPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/SMAAPass.js +10 -0
- package/dist/threejs-compatibility/postprocess/SMAAPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/SSAOPass.d.ts +9 -0
- package/dist/threejs-compatibility/postprocess/SSAOPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/SSAOPass.js +19 -0
- package/dist/threejs-compatibility/postprocess/SSAOPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/ShaderPass.d.ts +9 -0
- package/dist/threejs-compatibility/postprocess/ShaderPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/ShaderPass.js +11 -0
- package/dist/threejs-compatibility/postprocess/ShaderPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/TAAPass.d.ts +7 -0
- package/dist/threejs-compatibility/postprocess/TAAPass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/TAAPass.js +10 -0
- package/dist/threejs-compatibility/postprocess/TAAPass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/VignettePass.d.ts +9 -0
- package/dist/threejs-compatibility/postprocess/VignettePass.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/VignettePass.js +14 -0
- package/dist/threejs-compatibility/postprocess/VignettePass.js.map +1 -0
- package/dist/threejs-compatibility/postprocess/index.d.ts +16 -0
- package/dist/threejs-compatibility/postprocess/index.d.ts.map +1 -0
- package/dist/threejs-compatibility/postprocess/index.js +15 -0
- package/dist/threejs-compatibility/postprocess/index.js.map +1 -0
- package/dist/threejs-compatibility/shaders/NodeMaterial.d.ts +14 -0
- package/dist/threejs-compatibility/shaders/NodeMaterial.d.ts.map +1 -0
- package/dist/threejs-compatibility/shaders/NodeMaterial.js +15 -0
- package/dist/threejs-compatibility/shaders/NodeMaterial.js.map +1 -0
- package/dist/threejs-compatibility/shaders/RawShaderMaterial.d.ts +6 -0
- package/dist/threejs-compatibility/shaders/RawShaderMaterial.d.ts.map +1 -0
- package/dist/threejs-compatibility/shaders/RawShaderMaterial.js +6 -0
- package/dist/threejs-compatibility/shaders/RawShaderMaterial.js.map +1 -0
- package/dist/threejs-compatibility/shaders/ShaderDiagnostics.d.ts +7 -0
- package/dist/threejs-compatibility/shaders/ShaderDiagnostics.d.ts.map +1 -0
- package/dist/threejs-compatibility/shaders/ShaderDiagnostics.js +12 -0
- package/dist/threejs-compatibility/shaders/ShaderDiagnostics.js.map +1 -0
- package/dist/threejs-compatibility/shaders/ShaderMaterial.d.ts +12 -0
- package/dist/threejs-compatibility/shaders/ShaderMaterial.d.ts.map +1 -0
- package/dist/threejs-compatibility/shaders/ShaderMaterial.js +20 -0
- package/dist/threejs-compatibility/shaders/ShaderMaterial.js.map +1 -0
- package/dist/threejs-compatibility/shaders/ThreeCompatShaderChunks.d.ts +7 -0
- package/dist/threejs-compatibility/shaders/ThreeCompatShaderChunks.d.ts.map +1 -0
- package/dist/threejs-compatibility/shaders/ThreeCompatShaderChunks.js +7 -0
- package/dist/threejs-compatibility/shaders/ThreeCompatShaderChunks.js.map +1 -0
- package/dist/threejs-compatibility/shaders/Uniforms.d.ts +8 -0
- package/dist/threejs-compatibility/shaders/Uniforms.d.ts.map +1 -0
- package/dist/threejs-compatibility/shaders/Uniforms.js +14 -0
- package/dist/threejs-compatibility/shaders/Uniforms.js.map +1 -0
- package/dist/threejs-compatibility/shaders/index.d.ts +10 -0
- package/dist/threejs-compatibility/shaders/index.d.ts.map +1 -0
- package/dist/threejs-compatibility/shaders/index.js +7 -0
- package/dist/threejs-compatibility/shaders/index.js.map +1 -0
- package/dist/threejs-compatibility/vfx/GPUPointCloud.d.ts +7 -0
- package/dist/threejs-compatibility/vfx/GPUPointCloud.d.ts.map +1 -0
- package/dist/threejs-compatibility/vfx/GPUPointCloud.js +12 -0
- package/dist/threejs-compatibility/vfx/GPUPointCloud.js.map +1 -0
- package/dist/threejs-compatibility/vfx/LineRenderer.d.ts +10 -0
- package/dist/threejs-compatibility/vfx/LineRenderer.d.ts.map +1 -0
- package/dist/threejs-compatibility/vfx/LineRenderer.js +7 -0
- package/dist/threejs-compatibility/vfx/LineRenderer.js.map +1 -0
- package/dist/threejs-compatibility/vfx/ParticleSystem.d.ts +12 -0
- package/dist/threejs-compatibility/vfx/ParticleSystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/vfx/ParticleSystem.js +15 -0
- package/dist/threejs-compatibility/vfx/ParticleSystem.js.map +1 -0
- package/dist/threejs-compatibility/vfx/SpriteSystem.d.ts +11 -0
- package/dist/threejs-compatibility/vfx/SpriteSystem.d.ts.map +1 -0
- package/dist/threejs-compatibility/vfx/SpriteSystem.js +7 -0
- package/dist/threejs-compatibility/vfx/SpriteSystem.js.map +1 -0
- package/dist/threejs-compatibility/vfx/TrailRenderer.d.ts +5 -0
- package/dist/threejs-compatibility/vfx/TrailRenderer.d.ts.map +1 -0
- package/dist/threejs-compatibility/vfx/TrailRenderer.js +9 -0
- package/dist/threejs-compatibility/vfx/TrailRenderer.js.map +1 -0
- package/dist/threejs-compatibility/vfx/VFXDiagnostics.d.ts +21 -0
- package/dist/threejs-compatibility/vfx/VFXDiagnostics.d.ts.map +1 -0
- package/dist/threejs-compatibility/vfx/VFXDiagnostics.js +12 -0
- package/dist/threejs-compatibility/vfx/VFXDiagnostics.js.map +1 -0
- package/dist/threejs-compatibility/vfx/index.d.ts +10 -0
- package/dist/threejs-compatibility/vfx/index.d.ts.map +1 -0
- package/dist/threejs-compatibility/vfx/index.js +7 -0
- package/dist/threejs-compatibility/vfx/index.js.map +1 -0
- package/dist/threejs-example-parity/index.d.ts +57 -0
- package/dist/threejs-example-parity/index.d.ts.map +1 -0
- package/dist/threejs-example-parity/index.js +139 -0
- package/dist/threejs-example-parity/index.js.map +1 -0
- package/dist/webgpu/WebGPUBuffer.d.ts +2 -0
- package/dist/webgpu/WebGPUBuffer.d.ts.map +1 -0
- package/dist/webgpu/WebGPUBuffer.js +2 -0
- package/dist/webgpu/WebGPUBuffer.js.map +1 -0
- package/dist/webgpu/WebGPUCompute.d.ts +3 -0
- package/dist/webgpu/WebGPUCompute.d.ts.map +1 -0
- package/dist/webgpu/WebGPUCompute.js +2 -0
- package/dist/webgpu/WebGPUCompute.js.map +1 -0
- package/dist/webgpu/WebGPUPipelineCache.d.ts +6 -0
- package/dist/webgpu/WebGPUPipelineCache.d.ts.map +1 -0
- package/dist/webgpu/WebGPUPipelineCache.js +15 -0
- package/dist/webgpu/WebGPUPipelineCache.js.map +1 -0
- package/dist/webgpu/WebGPUPostProcess.d.ts +3 -0
- package/dist/webgpu/WebGPUPostProcess.d.ts.map +1 -0
- package/dist/webgpu/WebGPUPostProcess.js +2 -0
- package/dist/webgpu/WebGPUPostProcess.js.map +1 -0
- package/dist/webgpu/WebGPUTexture.d.ts +3 -0
- package/dist/webgpu/WebGPUTexture.d.ts.map +1 -0
- package/dist/webgpu/WebGPUTexture.js +2 -0
- package/dist/webgpu/WebGPUTexture.js.map +1 -0
- package/package.json +18 -0
- package/src/ArchitecturalLightingFixtures.ts +241 -0
- package/src/ArchitecturalMaterialCatalog.ts +130 -0
- package/src/ArchitecturalMeasurementFixtures.ts +155 -0
- package/src/BRDFLut.ts +47 -0
- package/src/CameraFraming.ts +200 -0
- package/src/CanonicalSceneFixtures.ts +95 -0
- package/src/CascadedShadowMaps.ts +449 -0
- package/src/ColorManagement.ts +127 -0
- package/src/CullingFixtures.ts +280 -0
- package/src/DecalGeometry.ts +26 -0
- package/src/DepthPass.ts +110 -0
- package/src/EnvironmentBackgroundPass.ts +194 -0
- package/src/EnvironmentBackgroundResources.ts +309 -0
- package/src/EnvironmentLighting.ts +96 -0
- package/src/EnvironmentMapResources.ts +1026 -0
- package/src/EnvironmentPipeline.ts +69 -0
- package/src/EnvironmentPlatform.ts +1306 -0
- package/src/EnvironmentPreset.ts +155 -0
- package/src/Exposure.ts +66 -0
- package/src/ExternalParityRenderPreset.ts +725 -0
- package/src/ForwardPass.ts +1639 -0
- package/src/FrameVisualMetrics.ts +218 -0
- package/src/Geometry.ts +461 -0
- package/src/GeometryPrimitives.ts +2 -0
- package/src/HDRRenderPipeline.ts +94 -0
- package/src/IBL.ts +86 -0
- package/src/IndexBuffer.ts +57 -0
- package/src/InstancedPBRMaterial.ts +186 -0
- package/src/InstancedUnlitMaterial.ts +60 -0
- package/src/Instancing.ts +19 -0
- package/src/LightCollector.ts +82 -0
- package/src/LightUniforms.ts +47 -0
- package/src/LightingDebug.ts +80 -0
- package/src/LightingDefaults.ts +79 -0
- package/src/LightingRig.ts +301 -0
- package/src/LineGeometry.ts +2 -0
- package/src/Material.ts +209 -0
- package/src/MaterialBinding.ts +131 -0
- package/src/MaterialInstance.ts +59 -0
- package/src/MaterialPresets.ts +272 -0
- package/src/MorphTarget.ts +123 -0
- package/src/MorphUnlitMaterial.ts +54 -0
- package/src/NormalMappedPBRMaterial.ts +188 -0
- package/src/OceanFixtures.ts +318 -0
- package/src/PBRLightingDefaults.ts +12 -0
- package/src/PBRMaterial.ts +442 -0
- package/src/PMREM.ts +53 -0
- package/src/PbrReference.ts +681 -0
- package/src/PostProcessPass.ts +2507 -0
- package/src/ProceduralTextureFixtures.ts +393 -0
- package/src/ProductTurntableFixtures.ts +815 -0
- package/src/Raycaster.ts +21 -0
- package/src/ReflectionProbe.ts +13 -0
- package/src/ReflectionSurfaces.ts +219 -0
- package/src/RenderBackend.ts +43 -0
- package/src/RenderDebugViews.ts +138 -0
- package/src/RenderDevice.ts +836 -0
- package/src/RenderGraph.ts +194 -0
- package/src/RenderPass.ts +27 -0
- package/src/RenderPipeline.ts +101 -0
- package/src/RenderQueue.ts +12 -0
- package/src/RenderState.ts +12 -0
- package/src/Renderer.ts +2626 -0
- package/src/RendererDebugOverlay.ts +80 -0
- package/src/RendererFeatureGates.ts +150 -0
- package/src/RendererPostprocessPlan.ts +279 -0
- package/src/RendererTiming.ts +251 -0
- package/src/RendererVisualPipelineReport.ts +836 -0
- package/src/ResourceLifecycle.ts +21 -0
- package/src/Sampler.ts +37 -0
- package/src/SceneOptimization.ts +518 -0
- package/src/ShaderChunks.ts +393 -0
- package/src/ShaderLibrary.ts +2738 -0
- package/src/ShaderModule.ts +36 -0
- package/src/ShaderPreprocessor.ts +260 -0
- package/src/ShaderReflection.ts +201 -0
- package/src/ShadowMap.ts +237 -0
- package/src/ShadowPass.ts +198 -0
- package/src/ShadowProjection.ts +115 -0
- package/src/SkinnedLitMaterial.ts +366 -0
- package/src/SkinnedUnlitMaterial.ts +63 -0
- package/src/SkinningBounds.ts +131 -0
- package/src/SpaceEnvironmentFixtures.ts +200 -0
- package/src/SpriteGeometry.ts +21 -0
- package/src/StereoCameraRig.ts +127 -0
- package/src/StereoEffects.ts +274 -0
- package/src/TerrainFixtures.ts +180 -0
- package/src/Texture.ts +307 -0
- package/src/TextureBinding.ts +91 -0
- package/src/TexturedPBRMaterial.ts +1112 -0
- package/src/TexturedUnlitMaterial.ts +67 -0
- package/src/ToneMapping.ts +105 -0
- package/src/UniformBinder.ts +16 -0
- package/src/UniformLayout.ts +129 -0
- package/src/UnlitMaterial.ts +75 -0
- package/src/VegetationFixtures.ts +314 -0
- package/src/VertexBuffer.ts +120 -0
- package/src/VertexFormat.ts +171 -0
- package/src/VoxelWorldFixtures.ts +280 -0
- package/src/WeatherFixtures.ts +223 -0
- package/src/WebGL2Device.ts +2280 -0
- package/src/WebGL2StateCache.ts +330 -0
- package/src/WebGPUDevice.ts +2806 -0
- package/src/WebGPURenderToTextureProof.ts +139 -0
- package/src/advanced-runtime/AdvancedRenderer.ts +73 -0
- package/src/advanced-runtime/index.ts +9 -0
- package/src/cinematic/BloomPass.ts +26 -0
- package/src/cinematic/CinematicDepthComposition.ts +30 -0
- package/src/cinematic/CinematicEvidence.ts +123 -0
- package/src/cinematic/CinematicLightingRig.ts +144 -0
- package/src/cinematic/CinematicMaterialPresets.ts +130 -0
- package/src/cinematic/CinematicPostProcess.ts +83 -0
- package/src/cinematic/DepthHazePass.ts +30 -0
- package/src/cinematic/EmissivePracticalLightSystem.ts +45 -0
- package/src/cinematic/FilmGrainPass.ts +24 -0
- package/src/cinematic/FogVolumeSystem.ts +30 -0
- package/src/cinematic/GlowCardSystem.ts +44 -0
- package/src/cinematic/RainParticleSystem.ts +151 -0
- package/src/cinematic/VignettePass.ts +25 -0
- package/src/cinematic/WetReflectionApproximation.ts +27 -0
- package/src/cinematic/index.ts +14 -0
- package/src/effects/CollisionModule.ts +64 -0
- package/src/effects/ColorModule.ts +60 -0
- package/src/effects/ForceModule.ts +25 -0
- package/src/effects/GPUParticleBackend.ts +569 -0
- package/src/effects/Particle.ts +108 -0
- package/src/effects/ParticleDiagnostics.ts +224 -0
- package/src/effects/ParticleEffectPresets.ts +147 -0
- package/src/effects/ParticleEmitter.ts +326 -0
- package/src/effects/ParticleModule.ts +26 -0
- package/src/effects/ParticleRenderPass.ts +117 -0
- package/src/effects/ParticleRenderer.ts +132 -0
- package/src/effects/ParticleSystem.ts +333 -0
- package/src/effects/SizeModule.ts +56 -0
- package/src/effects/TrailModule.ts +72 -0
- package/src/effects/VelocityModule.ts +75 -0
- package/src/effects/index.ts +15 -0
- package/src/index.ts +914 -0
- package/src/materials/AlphaSorting.ts +30 -0
- package/src/materials/MaterialExtensions.ts +42 -0
- package/src/materials/PhysicalMaterial.ts +133 -0
- package/src/materials/TransmissionPass.ts +51 -0
- package/src/performance/BVH.ts +18 -0
- package/src/performance/Batcher.ts +2 -0
- package/src/performance/FrustumCuller.ts +9 -0
- package/src/performance/LOD.ts +20 -0
- package/src/performance/Octree.ts +10 -0
- package/src/performance/RenderItemSorting.ts +167 -0
- package/src/performance/RendererStats.ts +43 -0
- package/src/performance/ResourceBudget.ts +44 -0
- package/src/postprocess/BloomPass.ts +28 -0
- package/src/postprocess/CinematicDiagnostics.ts +642 -0
- package/src/postprocess/ColorGradingPass.ts +24 -0
- package/src/postprocess/DepthOfFieldPass.ts +12 -0
- package/src/postprocess/EffectComposer.ts +349 -0
- package/src/postprocess/SSAOPass.ts +20 -0
- package/src/postprocess/index.ts +34 -0
- package/src/production-runtime/AnimationControlsPipeline.ts +77 -0
- package/src/production-runtime/PBRHDRPipeline.ts +381 -0
- package/src/production-runtime/ProductionEffectsPipeline.ts +85 -0
- package/src/production-runtime/ProductionRendererTypes.ts +136 -0
- package/src/production-runtime/ProductionRuntimeRenderer.ts +172 -0
- package/src/production-runtime/ProductionWebGL2Renderer.ts +313 -0
- package/src/production-runtime/ProductionWebGPURenderer.ts +396 -0
- package/src/production-runtime/TransmissionBackdropCapture.ts +130 -0
- package/src/production-runtime/animation/MorphTargetRenderer.ts +2 -0
- package/src/production-runtime/animation/SkinningRenderer.ts +2 -0
- package/src/production-runtime/backends/RendererBackend.ts +17 -0
- package/src/production-runtime/backends/WebGL2RendererBackend.ts +30 -0
- package/src/production-runtime/backends/WebGPURendererBackend.ts +24 -0
- package/src/production-runtime/backends/webgl2/WebGL2Buffer.ts +2 -0
- package/src/production-runtime/backends/webgl2/WebGL2Capabilities.ts +2 -0
- package/src/production-runtime/backends/webgl2/WebGL2RenderTarget.ts +2 -0
- package/src/production-runtime/backends/webgl2/WebGL2Shader.ts +2 -0
- package/src/production-runtime/backends/webgl2/WebGL2StateCache.ts +1 -0
- package/src/production-runtime/backends/webgl2/WebGL2Texture.ts +2 -0
- package/src/production-runtime/backends/webgpu/WebGPUBuffer.ts +2 -0
- package/src/production-runtime/backends/webgpu/WebGPUCapabilities.ts +2 -0
- package/src/production-runtime/backends/webgpu/WebGPURenderTarget.ts +2 -0
- package/src/production-runtime/backends/webgpu/WebGPUShader.ts +2 -0
- package/src/production-runtime/backends/webgpu/WebGPUTexture.ts +2 -0
- package/src/production-runtime/color/ColorManagement.ts +3 -0
- package/src/production-runtime/color/ToneMapping.ts +7 -0
- package/src/production-runtime/diagnostics/FrameCapture.ts +2 -0
- package/src/production-runtime/diagnostics/GPUCapabilities.ts +2 -0
- package/src/production-runtime/diagnostics/RendererStats.ts +2 -0
- package/src/production-runtime/environment/EnvironmentMap.ts +1 -0
- package/src/production-runtime/environment/HDRLoader.ts +57 -0
- package/src/production-runtime/environment/PMREMGenerator.ts +713 -0
- package/src/production-runtime/framegraph/FrameGraph.ts +18 -0
- package/src/production-runtime/framegraph/RenderPass.ts +15 -0
- package/src/production-runtime/geometry/ProjectedDecalGeometry.ts +439 -0
- package/src/production-runtime/index.ts +127 -0
- package/src/production-runtime/lights/LightManager.ts +7 -0
- package/src/production-runtime/lights/ShadowMapRenderer.ts +5 -0
- package/src/production-runtime/materials/GLTFMaterialAdapter.ts +6 -0
- package/src/production-runtime/materials/GLTFPBRMaterialAdapter.ts +2 -0
- package/src/production-runtime/materials/MaterialCompiler.ts +7 -0
- package/src/production-runtime/materials/MaterialTextureBindings.ts +5 -0
- package/src/production-runtime/materials/PBRMaterial.ts +2 -0
- package/src/production-runtime/materials/PBRShaderFeatures.ts +2 -0
- package/src/production-runtime/passes/ContactShadowPass.ts +184 -0
- package/src/production-runtime/passes/DepthPrepass.ts +7 -0
- package/src/production-runtime/passes/OpaquePass.ts +7 -0
- package/src/production-runtime/passes/ShadowPass.ts +7 -0
- package/src/production-runtime/passes/SkyboxPass.ts +7 -0
- package/src/production-runtime/passes/ToneMappingPass.ts +7 -0
- package/src/production-runtime/passes/TransparentPass.ts +7 -0
- package/src/production-runtime/postprocess/BloomPass.ts +51 -0
- package/src/production-runtime/postprocess/ColorGradingPass.ts +49 -0
- package/src/production-runtime/postprocess/DOFPass.ts +47 -0
- package/src/production-runtime/postprocess/FXAAPass.ts +53 -0
- package/src/production-runtime/postprocess/ProductionEffectComposer.ts +78 -0
- package/src/production-runtime/postprocess/ProductionPostProcessTypes.ts +174 -0
- package/src/production-runtime/postprocess/SSAOPass.ts +45 -0
- package/src/production-runtime/resources/GPUBuffer.ts +2 -0
- package/src/production-runtime/resources/GPUTexture.ts +2 -0
- package/src/production-runtime/resources/RenderTarget.ts +3 -0
- package/src/production-runtime/resources/ResourceCache.ts +7 -0
- package/src/production-runtime/scene/Camera.ts +1 -0
- package/src/production-runtime/scene/Lights.ts +2 -0
- package/src/production-runtime/scene/RenderableMesh.ts +2 -0
- package/src/production-runtime/scene/RenderablePrimitive.ts +1 -0
- package/src/production-runtime/scene/RenderableScene.ts +4 -0
- package/src/production-runtime/shaders/ShaderProgramLibrary.ts +7 -0
- package/src/production-runtime/shaders/chunks/brdf.glsl +2 -0
- package/src/production-runtime/shaders/chunks/ibl.glsl +3 -0
- package/src/production-runtime/shaders/chunks/pbr.frag.glsl +47 -0
- package/src/production-runtime/shaders/chunks/pbr.vert.glsl +8 -0
- package/src/production-runtime/shaders/chunks/shadows.glsl +2 -0
- package/src/production-runtime/shaders/wgsl/pbr.wgsl +3 -0
- package/src/production-runtime/shaders/wgsl/postprocess.wgsl +2 -0
- package/src/production-runtime/shaders/wgsl/skybox.wgsl +2 -0
- package/src/shaders/depth.frag.glsl +5 -0
- package/src/shaders/depth.vert.glsl +8 -0
- package/src/shaders/pbr-direct.frag.glsl +687 -0
- package/src/shaders/pbr-direct.vert.glsl +18 -0
- package/src/shaders/unlit.frag.glsl +18 -0
- package/src/shaders/unlit.vert.glsl +13 -0
- package/src/shadows/CascadedShadowPipeline.ts +53 -0
- package/src/shadows/ContactShadows.ts +106 -0
- package/src/shadows/ShadowDebugViews.ts +46 -0
- package/src/threejs-compatibility/InstancingSystem.ts +17 -0
- package/src/threejs-compatibility/LightingSystem.ts +22 -0
- package/src/threejs-compatibility/MaterialSystem.ts +9 -0
- package/src/threejs-compatibility/RenderTargetSystem.ts +35 -0
- package/src/threejs-compatibility/RendererDiagnostics.ts +61 -0
- package/src/threejs-compatibility/SceneRenderer.ts +34 -0
- package/src/threejs-compatibility/ShadowSystem.ts +19 -0
- package/src/threejs-compatibility/TextureSystem.ts +19 -0
- package/src/threejs-compatibility/ThreeCompatRenderer.ts +90 -0
- package/src/threejs-compatibility/TransparencySystem.ts +19 -0
- package/src/threejs-compatibility/index.ts +29 -0
- package/src/threejs-compatibility/performance/BVH.ts +14 -0
- package/src/threejs-compatibility/performance/FrustumCulling.ts +10 -0
- package/src/threejs-compatibility/performance/Instancing.ts +4 -0
- package/src/threejs-compatibility/performance/LODSystem.ts +16 -0
- package/src/threejs-compatibility/performance/OcclusionCulling.ts +6 -0
- package/src/threejs-compatibility/performance/RaycastAcceleration.ts +12 -0
- package/src/threejs-compatibility/performance/RendererProfiler.ts +19 -0
- package/src/threejs-compatibility/performance/TextureStreaming.ts +4 -0
- package/src/threejs-compatibility/performance/index.ts +12 -0
- package/src/threejs-compatibility/postprocess/BloomPass.ts +16 -0
- package/src/threejs-compatibility/postprocess/ColorGradingPass.ts +16 -0
- package/src/threejs-compatibility/postprocess/DepthOfFieldPass.ts +21 -0
- package/src/threejs-compatibility/postprocess/EffectComposer.ts +14 -0
- package/src/threejs-compatibility/postprocess/FXAAPass.ts +15 -0
- package/src/threejs-compatibility/postprocess/MotionBlurPass.ts +20 -0
- package/src/threejs-compatibility/postprocess/OutlinePass.ts +21 -0
- package/src/threejs-compatibility/postprocess/PostProcessTypes.ts +169 -0
- package/src/threejs-compatibility/postprocess/RenderPass.ts +9 -0
- package/src/threejs-compatibility/postprocess/SMAAPass.ts +15 -0
- package/src/threejs-compatibility/postprocess/SSAOPass.ts +21 -0
- package/src/threejs-compatibility/postprocess/ShaderPass.ts +7 -0
- package/src/threejs-compatibility/postprocess/TAAPass.ts +15 -0
- package/src/threejs-compatibility/postprocess/VignettePass.ts +16 -0
- package/src/threejs-compatibility/postprocess/index.ts +15 -0
- package/src/threejs-compatibility/shaders/NodeMaterial.ts +21 -0
- package/src/threejs-compatibility/shaders/RawShaderMaterial.ts +6 -0
- package/src/threejs-compatibility/shaders/ShaderDiagnostics.ts +17 -0
- package/src/threejs-compatibility/shaders/ShaderMaterial.ts +18 -0
- package/src/threejs-compatibility/shaders/ThreeCompatShaderChunks.ts +6 -0
- package/src/threejs-compatibility/shaders/Uniforms.ts +18 -0
- package/src/threejs-compatibility/shaders/index.ts +9 -0
- package/src/threejs-compatibility/vfx/GPUPointCloud.ts +7 -0
- package/src/threejs-compatibility/vfx/LineRenderer.ts +13 -0
- package/src/threejs-compatibility/vfx/ParticleSystem.ts +23 -0
- package/src/threejs-compatibility/vfx/SpriteSystem.ts +14 -0
- package/src/threejs-compatibility/vfx/TrailRenderer.ts +8 -0
- package/src/threejs-compatibility/vfx/VFXDiagnostics.ts +23 -0
- package/src/threejs-compatibility/vfx/index.ts +9 -0
- package/src/threejs-example-parity/index.ts +205 -0
- package/src/webgpu/WebGPUBuffer.ts +1 -0
- package/src/webgpu/WebGPUCompute.ts +2 -0
- package/src/webgpu/WebGPUPipelineCache.ts +15 -0
- package/src/webgpu/WebGPUPostProcess.ts +2 -0
- package/src/webgpu/WebGPUTexture.ts +2 -0
- package/tsconfig.json +26 -0
- package/vitest.config.ts +20 -0
|
@@ -0,0 +1,842 @@
|
|
|
1
|
+
import { Material } from "./Material.js";
|
|
2
|
+
import { DEFAULT_PBR_ENVIRONMENT_INTENSITY, DEFAULT_PBR_PROCEDURAL_ENVIRONMENT_MAP } from "./PBRLightingDefaults.js";
|
|
3
|
+
import { Sampler } from "./Sampler.js";
|
|
4
|
+
import { DEFAULT_TEXTURED_PBR_CLEARCOAT_SPECULAR_TEXTURES_VARIANT, DEFAULT_TEXTURED_PBR_CLEARCOAT_TEXTURES_VARIANT, DEFAULT_TEXTURED_PBR_CLEARCOAT_TRANSMISSION_VOLUME_TEXTURES_VARIANT, DEFAULT_TEXTURED_PBR_IRIDESCENCE_TEXTURES_VARIANT, DEFAULT_TEXTURED_PBR_SHADER_NAME, DEFAULT_TEXTURED_PBR_SPECULAR_SHEEN_ANISOTROPY_IRIDESCENCE_TEXTURES_VARIANT, DEFAULT_TEXTURED_PBR_SPECULAR_SHEEN_ANISOTROPY_TEXTURES_VARIANT, DEFAULT_TEXTURED_PBR_TRANSMISSION_VOLUME_TEXTURES_VARIANT } from "./ShaderLibrary.js";
|
|
5
|
+
import { Texture } from "./Texture.js";
|
|
6
|
+
import { TextureBinding } from "./TextureBinding.js";
|
|
7
|
+
const BASE_TEXTURED_PBR_SHADER_TEXTURE_SLOTS = [
|
|
8
|
+
"baseColor",
|
|
9
|
+
"normal",
|
|
10
|
+
"metallicRoughness",
|
|
11
|
+
"occlusion",
|
|
12
|
+
"emissive"
|
|
13
|
+
];
|
|
14
|
+
const CLEARCOAT_TEXTURE_SLOTS = [
|
|
15
|
+
"clearcoat",
|
|
16
|
+
"clearcoatRoughness",
|
|
17
|
+
"clearcoatNormal"
|
|
18
|
+
];
|
|
19
|
+
const TRANSMISSION_VOLUME_TEXTURE_SLOTS = [
|
|
20
|
+
"transmission",
|
|
21
|
+
"diffuseTransmission",
|
|
22
|
+
"diffuseTransmissionColor",
|
|
23
|
+
"volumeThickness"
|
|
24
|
+
];
|
|
25
|
+
const SPECULAR_TEXTURE_SLOTS = [
|
|
26
|
+
"specular",
|
|
27
|
+
"specularColor"
|
|
28
|
+
];
|
|
29
|
+
const SHEEN_ANISOTROPY_TEXTURE_SLOTS = [
|
|
30
|
+
"sheenColor",
|
|
31
|
+
"sheenRoughness",
|
|
32
|
+
"anisotropy"
|
|
33
|
+
];
|
|
34
|
+
const IRIDESCENCE_TEXTURE_SLOTS = [
|
|
35
|
+
"iridescence",
|
|
36
|
+
"iridescenceThickness"
|
|
37
|
+
];
|
|
38
|
+
export function texturedPbrShaderActiveTextureSlots(shaderVariant) {
|
|
39
|
+
const slots = new Set(BASE_TEXTURED_PBR_SHADER_TEXTURE_SLOTS);
|
|
40
|
+
if (shaderVariant === DEFAULT_TEXTURED_PBR_CLEARCOAT_TEXTURES_VARIANT ||
|
|
41
|
+
shaderVariant === DEFAULT_TEXTURED_PBR_CLEARCOAT_TRANSMISSION_VOLUME_TEXTURES_VARIANT ||
|
|
42
|
+
shaderVariant === DEFAULT_TEXTURED_PBR_CLEARCOAT_SPECULAR_TEXTURES_VARIANT) {
|
|
43
|
+
for (const slot of CLEARCOAT_TEXTURE_SLOTS)
|
|
44
|
+
slots.add(slot);
|
|
45
|
+
}
|
|
46
|
+
if (shaderVariant === DEFAULT_TEXTURED_PBR_TRANSMISSION_VOLUME_TEXTURES_VARIANT ||
|
|
47
|
+
shaderVariant === DEFAULT_TEXTURED_PBR_CLEARCOAT_TRANSMISSION_VOLUME_TEXTURES_VARIANT) {
|
|
48
|
+
for (const slot of TRANSMISSION_VOLUME_TEXTURE_SLOTS)
|
|
49
|
+
slots.add(slot);
|
|
50
|
+
}
|
|
51
|
+
if (shaderVariant === DEFAULT_TEXTURED_PBR_SPECULAR_SHEEN_ANISOTROPY_TEXTURES_VARIANT ||
|
|
52
|
+
shaderVariant === DEFAULT_TEXTURED_PBR_SPECULAR_SHEEN_ANISOTROPY_IRIDESCENCE_TEXTURES_VARIANT ||
|
|
53
|
+
shaderVariant === DEFAULT_TEXTURED_PBR_CLEARCOAT_SPECULAR_TEXTURES_VARIANT) {
|
|
54
|
+
for (const slot of SPECULAR_TEXTURE_SLOTS)
|
|
55
|
+
slots.add(slot);
|
|
56
|
+
}
|
|
57
|
+
if (shaderVariant === DEFAULT_TEXTURED_PBR_SPECULAR_SHEEN_ANISOTROPY_TEXTURES_VARIANT ||
|
|
58
|
+
shaderVariant === DEFAULT_TEXTURED_PBR_SPECULAR_SHEEN_ANISOTROPY_IRIDESCENCE_TEXTURES_VARIANT) {
|
|
59
|
+
for (const slot of SHEEN_ANISOTROPY_TEXTURE_SLOTS)
|
|
60
|
+
slots.add(slot);
|
|
61
|
+
}
|
|
62
|
+
if (shaderVariant === DEFAULT_TEXTURED_PBR_IRIDESCENCE_TEXTURES_VARIANT ||
|
|
63
|
+
shaderVariant === DEFAULT_TEXTURED_PBR_SPECULAR_SHEEN_ANISOTROPY_IRIDESCENCE_TEXTURES_VARIANT) {
|
|
64
|
+
for (const slot of IRIDESCENCE_TEXTURE_SLOTS)
|
|
65
|
+
slots.add(slot);
|
|
66
|
+
}
|
|
67
|
+
return [...slots];
|
|
68
|
+
}
|
|
69
|
+
export function isTexturedPbrTextureSlotShaderActive(slot, shaderVariant) {
|
|
70
|
+
return texturedPbrShaderActiveTextureSlots(shaderVariant).includes(slot);
|
|
71
|
+
}
|
|
72
|
+
export class TexturedPBRMaterial extends Material {
|
|
73
|
+
constructor(options = {}) {
|
|
74
|
+
const baseColor = options.baseColor ?? [1, 1, 1, 1];
|
|
75
|
+
const environmentColor = options.environmentColor ?? [1, 1, 1];
|
|
76
|
+
const proceduralEnvironmentMap = options.proceduralEnvironmentMap ?? DEFAULT_PBR_PROCEDURAL_ENVIRONMENT_MAP;
|
|
77
|
+
const emissiveColor = options.emissiveColor ?? [0, 0, 0];
|
|
78
|
+
const specularColorFactor = options.specularColorFactor ?? [1, 1, 1];
|
|
79
|
+
const diffuseTransmissionColorFactor = options.diffuseTransmissionColorFactor ?? [1, 1, 1];
|
|
80
|
+
const sheenColorFactor = options.sheenColorFactor ?? [0, 0, 0];
|
|
81
|
+
const volumeAttenuationColor = options.volumeAttenuationColor ?? [1, 1, 1];
|
|
82
|
+
const transmissionParallaxBoxMin = options.transmissionParallaxBoxMin ?? [-1, -1, -1];
|
|
83
|
+
const transmissionParallaxBoxMax = options.transmissionParallaxBoxMax ?? [1, 1, 1];
|
|
84
|
+
const transmissionBackdropResolution = options.transmissionBackdropResolution ?? [1, 1];
|
|
85
|
+
const shaderVariant = texturedPbrShaderVariant(options);
|
|
86
|
+
const hasTransmissionBackdrop = Boolean(options.transmissionBackdropTexture);
|
|
87
|
+
if (hasTransmissionBackdrop && shaderVariant) {
|
|
88
|
+
throw new Error("TexturedPBRMaterial transmissionBackdropTexture currently requires the base textured PBR shader variant; combine advanced extension texture variants through a dedicated transmission pass.");
|
|
89
|
+
}
|
|
90
|
+
const transmissionBackdropUniformSchema = hasTransmissionBackdrop ? [
|
|
91
|
+
{ name: "u_transmissionBackdropTexture", kind: "texture2d", required: false },
|
|
92
|
+
{ name: "u_transmissionBackdropEnabled", kind: "float" },
|
|
93
|
+
{ name: "u_transmissionBackdropStrength", kind: "float" },
|
|
94
|
+
{ name: "u_transmissionBackdropResolution", kind: "vec2" },
|
|
95
|
+
{ name: "u_transmissionBackdropMipCount", kind: "float" },
|
|
96
|
+
{ name: "u_transmissionBackdropRefractionScale", kind: "float" }
|
|
97
|
+
] : [];
|
|
98
|
+
validateColor4(baseColor, "baseColor");
|
|
99
|
+
validateColor3(environmentColor, "environmentColor");
|
|
100
|
+
validateProceduralEnvironmentMap(proceduralEnvironmentMap);
|
|
101
|
+
validateNonNegative(options.environmentMapIntensity ?? 0, "environmentMapIntensity");
|
|
102
|
+
validateNonNegative(options.environmentMapSpecularIntensity ?? 0, "environmentMapSpecularIntensity");
|
|
103
|
+
validateFinite(options.environmentMapRotation ?? 0, "environmentMapRotation");
|
|
104
|
+
validateMipCount(options.environmentMapMipCount ?? 1, "environmentMapMipCount");
|
|
105
|
+
validateColor3(emissiveColor, "emissiveColor");
|
|
106
|
+
validateNonNegativeColor3(specularColorFactor, "specularColorFactor");
|
|
107
|
+
validateColor3(diffuseTransmissionColorFactor, "diffuseTransmissionColorFactor");
|
|
108
|
+
validateColor3(sheenColorFactor, "sheenColorFactor");
|
|
109
|
+
validateColor3(volumeAttenuationColor, "volumeAttenuationColor");
|
|
110
|
+
validateUnit(options.metallic ?? 0, "metallic");
|
|
111
|
+
validateUnit(options.roughness ?? 0.5, "roughness");
|
|
112
|
+
validateNonNegative(options.environmentIntensity ?? DEFAULT_PBR_ENVIRONMENT_INTENSITY, "environmentIntensity");
|
|
113
|
+
validateUnit(options.clearcoatFactor ?? 0, "clearcoatFactor");
|
|
114
|
+
validateUnit(options.clearcoatRoughnessFactor ?? 0, "clearcoatRoughnessFactor");
|
|
115
|
+
validateUnit(options.transmissionFactor ?? 0, "transmissionFactor");
|
|
116
|
+
validateUnit(options.diffuseTransmissionFactor ?? 0, "diffuseTransmissionFactor");
|
|
117
|
+
validateUnit(options.transmissionFallbackEnergy ?? 0.08, "transmissionFallbackEnergy");
|
|
118
|
+
validateNonNegative(options.volumeThicknessFactor ?? 0, "volumeThicknessFactor");
|
|
119
|
+
validatePositive(options.volumeAttenuationDistance ?? 1_000_000, "volumeAttenuationDistance");
|
|
120
|
+
validateUnit(options.transmissionParallaxStrength ?? 0, "transmissionParallaxStrength");
|
|
121
|
+
validateFiniteVec3(transmissionParallaxBoxMin, "transmissionParallaxBoxMin");
|
|
122
|
+
validateFiniteVec3(transmissionParallaxBoxMax, "transmissionParallaxBoxMax");
|
|
123
|
+
if (transmissionParallaxBoxMin.some((component, index) => component >= transmissionParallaxBoxMax[index])) {
|
|
124
|
+
throw new RangeError("TexturedPBRMaterial transmissionParallaxBoxMin must be lower than transmissionParallaxBoxMax");
|
|
125
|
+
}
|
|
126
|
+
validateNonNegative(options.transmissionBounceCount ?? 0, "transmissionBounceCount");
|
|
127
|
+
validateNonNegative(options.transmissionCausticStrength ?? 0, "transmissionCausticStrength");
|
|
128
|
+
validateUnit(options.transmissionBackdropStrength ?? 0, "transmissionBackdropStrength");
|
|
129
|
+
validatePositiveVec2(transmissionBackdropResolution, "transmissionBackdropResolution");
|
|
130
|
+
validateMipCount(options.transmissionBackdropMipCount ?? 1, "transmissionBackdropMipCount");
|
|
131
|
+
validateNonNegative(options.transmissionBackdropRefractionScale ?? 0.035, "transmissionBackdropRefractionScale");
|
|
132
|
+
validateUnit(options.specularFactor ?? 1, "specularFactor");
|
|
133
|
+
validateUnit(options.sheenRoughnessFactor ?? 0, "sheenRoughnessFactor");
|
|
134
|
+
validateUnit(options.anisotropyStrength ?? 0, "anisotropyStrength");
|
|
135
|
+
validateFinite(options.anisotropyRotation ?? 0, "anisotropyRotation");
|
|
136
|
+
validateUnit(options.iridescenceFactor ?? 0, "iridescenceFactor");
|
|
137
|
+
validateIridescenceIOR(options.iridescenceIor ?? 1.3);
|
|
138
|
+
const iridescenceThicknessMinimum = options.iridescenceThicknessMinimum ?? 100;
|
|
139
|
+
const iridescenceThicknessMaximum = options.iridescenceThicknessMaximum ?? 400;
|
|
140
|
+
validateNonNegative(iridescenceThicknessMinimum, "iridescenceThicknessMinimum");
|
|
141
|
+
validateNonNegative(iridescenceThicknessMaximum, "iridescenceThicknessMaximum");
|
|
142
|
+
if (iridescenceThicknessMaximum < iridescenceThicknessMinimum) {
|
|
143
|
+
throw new RangeError("TexturedPBRMaterial iridescenceThicknessMaximum must be greater than or equal to iridescenceThicknessMinimum");
|
|
144
|
+
}
|
|
145
|
+
validateNonNegative(options.dispersion ?? 0, "dispersion");
|
|
146
|
+
validateIOR(options.ior ?? 1.5);
|
|
147
|
+
validateNonNegative(options.emissiveStrength ?? 1, "emissiveStrength");
|
|
148
|
+
const normalScale = options.normalScale ?? 1;
|
|
149
|
+
if (!Number.isFinite(normalScale) || normalScale < 0) {
|
|
150
|
+
throw new RangeError("TexturedPBRMaterial normalScale must be finite and non-negative");
|
|
151
|
+
}
|
|
152
|
+
const occlusionStrength = options.occlusionStrength ?? 1;
|
|
153
|
+
validateUnit(occlusionStrength, "occlusionStrength");
|
|
154
|
+
const clearcoatNormalScale = options.clearcoatNormalScale ?? 1;
|
|
155
|
+
if (!Number.isFinite(clearcoatNormalScale) || clearcoatNormalScale < 0) {
|
|
156
|
+
throw new RangeError("TexturedPBRMaterial clearcoatNormalScale must be finite and non-negative");
|
|
157
|
+
}
|
|
158
|
+
const requiresTangentFrame = Boolean(options.normalTexture || options.clearcoatNormalTexture);
|
|
159
|
+
super({
|
|
160
|
+
name: options.name ?? "textured-pbr",
|
|
161
|
+
shaderKey: DEFAULT_TEXTURED_PBR_SHADER_NAME,
|
|
162
|
+
shaderVariant,
|
|
163
|
+
renderState: options.renderState,
|
|
164
|
+
parameters: {
|
|
165
|
+
u_baseColor: baseColor,
|
|
166
|
+
u_metallic: options.metallic ?? 0,
|
|
167
|
+
u_roughness: options.roughness ?? 0.5,
|
|
168
|
+
u_environmentColor: environmentColor,
|
|
169
|
+
u_environmentIntensity: options.environmentIntensity ?? DEFAULT_PBR_ENVIRONMENT_INTENSITY,
|
|
170
|
+
u_environmentSkyColor: proceduralEnvironmentMap.skyColor,
|
|
171
|
+
u_environmentHorizonColor: proceduralEnvironmentMap.horizonColor,
|
|
172
|
+
u_environmentGroundColor: proceduralEnvironmentMap.groundColor,
|
|
173
|
+
u_environmentSpecularColor: proceduralEnvironmentMap.specularColor,
|
|
174
|
+
u_environmentMapIntensity: proceduralEnvironmentMap.intensity,
|
|
175
|
+
u_environmentSpecularIntensity: proceduralEnvironmentMap.specularIntensity,
|
|
176
|
+
u_environmentMapTexture: options.environmentMapTexture ?? new TextureBinding({ name: "u_environmentMapTexture", required: false }),
|
|
177
|
+
u_environmentMapTextureEnabled: options.environmentMapTexture ? 1 : 0,
|
|
178
|
+
u_environmentMapTextureIntensity: options.environmentMapIntensity ?? 0,
|
|
179
|
+
u_environmentMapTextureSpecularIntensity: options.environmentMapSpecularIntensity ?? 0,
|
|
180
|
+
u_materialEnvironmentSpecularScale: options.materialEnvironmentSpecularScale ?? 1,
|
|
181
|
+
u_environmentMapTextureRotation: options.environmentMapRotation ?? 0,
|
|
182
|
+
u_environmentMapTextureMipCount: options.environmentMapMipCount ?? 1,
|
|
183
|
+
u_environmentMapTextureEncoding: 0,
|
|
184
|
+
u_environmentBrdfLutTexture: options.environmentBrdfLutTexture ?? new TextureBinding({ name: "u_environmentBrdfLutTexture", required: false }),
|
|
185
|
+
u_environmentBrdfLutEnabled: options.environmentBrdfLutTexture ? 1 : 0,
|
|
186
|
+
u_emissiveColor: emissiveColor,
|
|
187
|
+
u_emissiveStrength: options.emissiveStrength ?? 1,
|
|
188
|
+
u_clearcoatFactor: options.clearcoatFactor ?? 0,
|
|
189
|
+
u_clearcoatRoughnessFactor: options.clearcoatRoughnessFactor ?? 0,
|
|
190
|
+
u_transmissionFactor: options.transmissionFactor ?? 0,
|
|
191
|
+
u_diffuseTransmissionFactor: options.diffuseTransmissionFactor ?? 0,
|
|
192
|
+
u_diffuseTransmissionColorFactor: diffuseTransmissionColorFactor,
|
|
193
|
+
u_transmissionFallbackEnergy: options.transmissionFallbackEnergy ?? 0.08,
|
|
194
|
+
u_volumeThicknessFactor: options.volumeThicknessFactor ?? 0,
|
|
195
|
+
u_volumeAttenuationDistance: options.volumeAttenuationDistance ?? 1_000_000,
|
|
196
|
+
u_volumeAttenuationColor: volumeAttenuationColor,
|
|
197
|
+
u_transmissionParallaxStrength: options.transmissionParallaxStrength ?? 0,
|
|
198
|
+
u_transmissionParallaxBoxMin: transmissionParallaxBoxMin,
|
|
199
|
+
u_transmissionParallaxBoxMax: transmissionParallaxBoxMax,
|
|
200
|
+
u_transmissionBounceCount: options.transmissionBounceCount ?? 0,
|
|
201
|
+
u_transmissionCausticStrength: options.transmissionCausticStrength ?? 0,
|
|
202
|
+
u_transmissionBackdropTexture: options.transmissionBackdropTexture ?? new TextureBinding({ name: "u_transmissionBackdropTexture", required: false }),
|
|
203
|
+
u_transmissionBackdropEnabled: options.transmissionBackdropTexture ? 1 : 0,
|
|
204
|
+
u_transmissionBackdropStrength: options.transmissionBackdropStrength ?? 0,
|
|
205
|
+
u_transmissionBackdropResolution: transmissionBackdropResolution,
|
|
206
|
+
u_transmissionBackdropMipCount: options.transmissionBackdropMipCount ?? options.transmissionBackdropTexture?.texture?.textureLevels.length ?? 1,
|
|
207
|
+
u_transmissionBackdropRefractionScale: options.transmissionBackdropRefractionScale ?? 0.035,
|
|
208
|
+
u_ior: options.ior ?? 1.5,
|
|
209
|
+
u_specularFactor: options.specularFactor ?? 1,
|
|
210
|
+
u_specularColorFactor: specularColorFactor,
|
|
211
|
+
u_sheenColorFactor: sheenColorFactor,
|
|
212
|
+
u_sheenRoughnessFactor: options.sheenRoughnessFactor ?? 0,
|
|
213
|
+
u_anisotropyStrength: options.anisotropyStrength ?? 0,
|
|
214
|
+
u_anisotropyRotation: options.anisotropyRotation ?? 0,
|
|
215
|
+
u_iridescenceFactor: options.iridescenceFactor ?? 0,
|
|
216
|
+
u_iridescenceIor: options.iridescenceIor ?? 1.3,
|
|
217
|
+
u_iridescenceThicknessMinimum: iridescenceThicknessMinimum,
|
|
218
|
+
u_iridescenceThicknessMaximum: iridescenceThicknessMaximum,
|
|
219
|
+
u_dispersion: options.dispersion ?? 0,
|
|
220
|
+
u_lightCount: 0,
|
|
221
|
+
u_lightData: new Float32Array(0),
|
|
222
|
+
u_baseColorTexture: new TextureBinding({
|
|
223
|
+
name: "u_baseColorTexture",
|
|
224
|
+
texture: options.baseColorTexture ?? defaultWhiteTexture(),
|
|
225
|
+
sampler: options.baseColorSampler,
|
|
226
|
+
required: true,
|
|
227
|
+
expectedColorSpace: "srgb",
|
|
228
|
+
transform: options.baseColorTextureTransform
|
|
229
|
+
}),
|
|
230
|
+
u_baseColorTextureEnabled: options.baseColorTexture ? 1 : 0,
|
|
231
|
+
u_baseColorTextureOffset: options.baseColorTextureTransform?.offset ?? [0, 0],
|
|
232
|
+
u_baseColorTextureScale: options.baseColorTextureTransform?.scale ?? [1, 1],
|
|
233
|
+
u_baseColorTextureRotation: options.baseColorTextureTransform?.rotation ?? 0,
|
|
234
|
+
u_baseColorTextureTexCoord: textureTexCoord(options.textureTexCoords, "baseColor"),
|
|
235
|
+
u_baseColorTextureWrap: samplerWrapMode(options.baseColorSampler),
|
|
236
|
+
u_normalTexture: new TextureBinding({
|
|
237
|
+
name: "u_normalTexture",
|
|
238
|
+
texture: options.normalTexture ?? defaultFlatNormalTexture(),
|
|
239
|
+
sampler: options.normalSampler,
|
|
240
|
+
required: true,
|
|
241
|
+
expectedColorSpace: "linear",
|
|
242
|
+
transform: options.normalTextureTransform
|
|
243
|
+
}),
|
|
244
|
+
u_normalTextureEnabled: options.normalTexture ? 1 : 0,
|
|
245
|
+
u_normalTextureOffset: options.normalTextureTransform?.offset ?? [0, 0],
|
|
246
|
+
u_normalTextureScale: options.normalTextureTransform?.scale ?? [1, 1],
|
|
247
|
+
u_normalTextureRotation: options.normalTextureTransform?.rotation ?? 0,
|
|
248
|
+
u_normalTextureTexCoord: textureTexCoord(options.textureTexCoords, "normal"),
|
|
249
|
+
u_normalTextureWrap: samplerWrapMode(options.normalSampler),
|
|
250
|
+
u_normalScale: normalScale,
|
|
251
|
+
u_metallicRoughnessTexture: new TextureBinding({
|
|
252
|
+
name: "u_metallicRoughnessTexture",
|
|
253
|
+
texture: options.metallicRoughnessTexture ?? defaultMetallicRoughnessTexture(),
|
|
254
|
+
sampler: options.metallicRoughnessSampler,
|
|
255
|
+
required: true,
|
|
256
|
+
expectedColorSpace: "linear",
|
|
257
|
+
transform: options.metallicRoughnessTextureTransform
|
|
258
|
+
}),
|
|
259
|
+
u_metallicRoughnessTextureEnabled: options.metallicRoughnessTexture ? 1 : 0,
|
|
260
|
+
u_metallicRoughnessTextureOffset: options.metallicRoughnessTextureTransform?.offset ?? [0, 0],
|
|
261
|
+
u_metallicRoughnessTextureScale: options.metallicRoughnessTextureTransform?.scale ?? [1, 1],
|
|
262
|
+
u_metallicRoughnessTextureRotation: options.metallicRoughnessTextureTransform?.rotation ?? 0,
|
|
263
|
+
u_metallicRoughnessTextureTexCoord: textureTexCoord(options.textureTexCoords, "metallicRoughness"),
|
|
264
|
+
u_metallicRoughnessTextureWrap: samplerWrapMode(options.metallicRoughnessSampler),
|
|
265
|
+
u_occlusionTexture: new TextureBinding({
|
|
266
|
+
name: "u_occlusionTexture",
|
|
267
|
+
texture: options.occlusionTexture ?? defaultLinearWhiteTexture("default-occlusion"),
|
|
268
|
+
sampler: options.occlusionSampler,
|
|
269
|
+
required: true,
|
|
270
|
+
expectedColorSpace: "linear",
|
|
271
|
+
transform: options.occlusionTextureTransform
|
|
272
|
+
}),
|
|
273
|
+
u_occlusionTextureEnabled: options.occlusionTexture ? 1 : 0,
|
|
274
|
+
u_occlusionTextureOffset: options.occlusionTextureTransform?.offset ?? [0, 0],
|
|
275
|
+
u_occlusionTextureScale: options.occlusionTextureTransform?.scale ?? [1, 1],
|
|
276
|
+
u_occlusionTextureRotation: options.occlusionTextureTransform?.rotation ?? 0,
|
|
277
|
+
u_occlusionTextureTexCoord: textureTexCoord(options.textureTexCoords, "occlusion"),
|
|
278
|
+
u_occlusionTextureWrap: samplerWrapMode(options.occlusionSampler),
|
|
279
|
+
u_occlusionStrength: occlusionStrength,
|
|
280
|
+
u_emissiveTexture: new TextureBinding({
|
|
281
|
+
name: "u_emissiveTexture",
|
|
282
|
+
texture: options.emissiveTexture ?? defaultWhiteTexture(),
|
|
283
|
+
sampler: options.emissiveSampler,
|
|
284
|
+
required: true,
|
|
285
|
+
expectedColorSpace: "srgb",
|
|
286
|
+
transform: options.emissiveTextureTransform
|
|
287
|
+
}),
|
|
288
|
+
u_emissiveTextureEnabled: options.emissiveTexture ? 1 : 0,
|
|
289
|
+
u_emissiveTextureOffset: options.emissiveTextureTransform?.offset ?? [0, 0],
|
|
290
|
+
u_emissiveTextureScale: options.emissiveTextureTransform?.scale ?? [1, 1],
|
|
291
|
+
u_emissiveTextureRotation: options.emissiveTextureTransform?.rotation ?? 0,
|
|
292
|
+
u_emissiveTextureTexCoord: textureTexCoord(options.textureTexCoords, "emissive"),
|
|
293
|
+
u_emissiveTextureWrap: samplerWrapMode(options.emissiveSampler),
|
|
294
|
+
u_clearcoatTexture: new TextureBinding({
|
|
295
|
+
name: "u_clearcoatTexture",
|
|
296
|
+
texture: options.clearcoatTexture ?? defaultLinearWhiteTexture("default-clearcoat"),
|
|
297
|
+
sampler: options.clearcoatSampler,
|
|
298
|
+
required: true,
|
|
299
|
+
expectedColorSpace: "linear",
|
|
300
|
+
transform: options.clearcoatTextureTransform
|
|
301
|
+
}),
|
|
302
|
+
u_clearcoatTextureEnabled: options.clearcoatTexture ? 1 : 0,
|
|
303
|
+
u_clearcoatTextureOffset: options.clearcoatTextureTransform?.offset ?? [0, 0],
|
|
304
|
+
u_clearcoatTextureScale: options.clearcoatTextureTransform?.scale ?? [1, 1],
|
|
305
|
+
u_clearcoatTextureRotation: options.clearcoatTextureTransform?.rotation ?? 0,
|
|
306
|
+
u_clearcoatTextureTexCoord: textureTexCoord(options.textureTexCoords, "clearcoat"),
|
|
307
|
+
u_clearcoatTextureWrap: samplerWrapMode(options.clearcoatSampler),
|
|
308
|
+
u_clearcoatRoughnessTexture: new TextureBinding({
|
|
309
|
+
name: "u_clearcoatRoughnessTexture",
|
|
310
|
+
texture: options.clearcoatRoughnessTexture ?? defaultLinearWhiteTexture("default-clearcoat-roughness"),
|
|
311
|
+
sampler: options.clearcoatRoughnessSampler,
|
|
312
|
+
required: true,
|
|
313
|
+
expectedColorSpace: "linear",
|
|
314
|
+
transform: options.clearcoatRoughnessTextureTransform
|
|
315
|
+
}),
|
|
316
|
+
u_clearcoatRoughnessTextureEnabled: options.clearcoatRoughnessTexture ? 1 : 0,
|
|
317
|
+
u_clearcoatRoughnessTextureOffset: options.clearcoatRoughnessTextureTransform?.offset ?? [0, 0],
|
|
318
|
+
u_clearcoatRoughnessTextureScale: options.clearcoatRoughnessTextureTransform?.scale ?? [1, 1],
|
|
319
|
+
u_clearcoatRoughnessTextureRotation: options.clearcoatRoughnessTextureTransform?.rotation ?? 0,
|
|
320
|
+
u_clearcoatRoughnessTextureTexCoord: textureTexCoord(options.textureTexCoords, "clearcoatRoughness"),
|
|
321
|
+
u_clearcoatRoughnessTextureWrap: samplerWrapMode(options.clearcoatRoughnessSampler),
|
|
322
|
+
u_clearcoatNormalTexture: new TextureBinding({
|
|
323
|
+
name: "u_clearcoatNormalTexture",
|
|
324
|
+
texture: options.clearcoatNormalTexture ?? defaultFlatNormalTexture(),
|
|
325
|
+
sampler: options.clearcoatNormalSampler,
|
|
326
|
+
required: true,
|
|
327
|
+
expectedColorSpace: "linear",
|
|
328
|
+
transform: options.clearcoatNormalTextureTransform
|
|
329
|
+
}),
|
|
330
|
+
u_clearcoatNormalTextureEnabled: options.clearcoatNormalTexture ? 1 : 0,
|
|
331
|
+
u_clearcoatNormalTextureOffset: options.clearcoatNormalTextureTransform?.offset ?? [0, 0],
|
|
332
|
+
u_clearcoatNormalTextureScale: options.clearcoatNormalTextureTransform?.scale ?? [1, 1],
|
|
333
|
+
u_clearcoatNormalTextureRotation: options.clearcoatNormalTextureTransform?.rotation ?? 0,
|
|
334
|
+
u_clearcoatNormalTextureTexCoord: textureTexCoord(options.textureTexCoords, "clearcoatNormal"),
|
|
335
|
+
u_clearcoatNormalTextureWrap: samplerWrapMode(options.clearcoatNormalSampler),
|
|
336
|
+
u_clearcoatNormalScale: clearcoatNormalScale,
|
|
337
|
+
u_transmissionTexture: new TextureBinding({
|
|
338
|
+
name: "u_transmissionTexture",
|
|
339
|
+
texture: options.transmissionTexture ?? defaultLinearWhiteTexture("default-transmission"),
|
|
340
|
+
sampler: options.transmissionSampler,
|
|
341
|
+
required: true,
|
|
342
|
+
expectedColorSpace: "linear",
|
|
343
|
+
transform: options.transmissionTextureTransform
|
|
344
|
+
}),
|
|
345
|
+
u_transmissionTextureEnabled: options.transmissionTexture ? 1 : 0,
|
|
346
|
+
u_transmissionTextureOffset: options.transmissionTextureTransform?.offset ?? [0, 0],
|
|
347
|
+
u_transmissionTextureScale: options.transmissionTextureTransform?.scale ?? [1, 1],
|
|
348
|
+
u_transmissionTextureRotation: options.transmissionTextureTransform?.rotation ?? 0,
|
|
349
|
+
u_transmissionTextureTexCoord: textureTexCoord(options.textureTexCoords, "transmission"),
|
|
350
|
+
u_transmissionTextureWrap: samplerWrapMode(options.transmissionSampler),
|
|
351
|
+
u_diffuseTransmissionTexture: new TextureBinding({
|
|
352
|
+
name: "u_diffuseTransmissionTexture",
|
|
353
|
+
texture: options.diffuseTransmissionTexture ?? defaultLinearWhiteTexture("default-diffuse-transmission"),
|
|
354
|
+
sampler: options.diffuseTransmissionSampler,
|
|
355
|
+
required: true,
|
|
356
|
+
expectedColorSpace: "linear",
|
|
357
|
+
transform: options.diffuseTransmissionTextureTransform
|
|
358
|
+
}),
|
|
359
|
+
u_diffuseTransmissionTextureEnabled: options.diffuseTransmissionTexture ? 1 : 0,
|
|
360
|
+
u_diffuseTransmissionTextureOffset: options.diffuseTransmissionTextureTransform?.offset ?? [0, 0],
|
|
361
|
+
u_diffuseTransmissionTextureScale: options.diffuseTransmissionTextureTransform?.scale ?? [1, 1],
|
|
362
|
+
u_diffuseTransmissionTextureRotation: options.diffuseTransmissionTextureTransform?.rotation ?? 0,
|
|
363
|
+
u_diffuseTransmissionTextureTexCoord: textureTexCoord(options.textureTexCoords, "diffuseTransmission"),
|
|
364
|
+
u_diffuseTransmissionTextureWrap: samplerWrapMode(options.diffuseTransmissionSampler),
|
|
365
|
+
u_diffuseTransmissionColorTexture: new TextureBinding({
|
|
366
|
+
name: "u_diffuseTransmissionColorTexture",
|
|
367
|
+
texture: options.diffuseTransmissionColorTexture ?? defaultWhiteTexture("default-diffuse-transmission-color"),
|
|
368
|
+
sampler: options.diffuseTransmissionColorSampler,
|
|
369
|
+
required: true,
|
|
370
|
+
expectedColorSpace: "srgb",
|
|
371
|
+
transform: options.diffuseTransmissionColorTextureTransform
|
|
372
|
+
}),
|
|
373
|
+
u_diffuseTransmissionColorTextureEnabled: options.diffuseTransmissionColorTexture ? 1 : 0,
|
|
374
|
+
u_diffuseTransmissionColorTextureOffset: options.diffuseTransmissionColorTextureTransform?.offset ?? [0, 0],
|
|
375
|
+
u_diffuseTransmissionColorTextureScale: options.diffuseTransmissionColorTextureTransform?.scale ?? [1, 1],
|
|
376
|
+
u_diffuseTransmissionColorTextureRotation: options.diffuseTransmissionColorTextureTransform?.rotation ?? 0,
|
|
377
|
+
u_diffuseTransmissionColorTextureTexCoord: textureTexCoord(options.textureTexCoords, "diffuseTransmissionColor"),
|
|
378
|
+
u_diffuseTransmissionColorTextureWrap: samplerWrapMode(options.diffuseTransmissionColorSampler),
|
|
379
|
+
u_volumeThicknessTexture: new TextureBinding({
|
|
380
|
+
name: "u_volumeThicknessTexture",
|
|
381
|
+
texture: options.volumeThicknessTexture ?? defaultLinearWhiteTexture("default-volume-thickness"),
|
|
382
|
+
sampler: options.volumeThicknessSampler,
|
|
383
|
+
required: true,
|
|
384
|
+
expectedColorSpace: "linear",
|
|
385
|
+
transform: options.volumeThicknessTextureTransform
|
|
386
|
+
}),
|
|
387
|
+
u_volumeThicknessTextureEnabled: options.volumeThicknessTexture ? 1 : 0,
|
|
388
|
+
u_volumeThicknessTextureOffset: options.volumeThicknessTextureTransform?.offset ?? [0, 0],
|
|
389
|
+
u_volumeThicknessTextureScale: options.volumeThicknessTextureTransform?.scale ?? [1, 1],
|
|
390
|
+
u_volumeThicknessTextureRotation: options.volumeThicknessTextureTransform?.rotation ?? 0,
|
|
391
|
+
u_volumeThicknessTextureTexCoord: textureTexCoord(options.textureTexCoords, "volumeThickness"),
|
|
392
|
+
u_volumeThicknessTextureWrap: samplerWrapMode(options.volumeThicknessSampler),
|
|
393
|
+
u_specularTexture: new TextureBinding({
|
|
394
|
+
name: "u_specularTexture",
|
|
395
|
+
texture: options.specularTexture ?? defaultLinearWhiteTexture("default-specular"),
|
|
396
|
+
sampler: options.specularSampler,
|
|
397
|
+
required: true,
|
|
398
|
+
expectedColorSpace: "linear",
|
|
399
|
+
transform: options.specularTextureTransform
|
|
400
|
+
}),
|
|
401
|
+
u_specularTextureEnabled: options.specularTexture ? 1 : 0,
|
|
402
|
+
u_specularTextureOffset: options.specularTextureTransform?.offset ?? [0, 0],
|
|
403
|
+
u_specularTextureScale: options.specularTextureTransform?.scale ?? [1, 1],
|
|
404
|
+
u_specularTextureRotation: options.specularTextureTransform?.rotation ?? 0,
|
|
405
|
+
u_specularTextureTexCoord: textureTexCoord(options.textureTexCoords, "specular"),
|
|
406
|
+
u_specularTextureWrap: samplerWrapMode(options.specularSampler),
|
|
407
|
+
u_specularColorTexture: new TextureBinding({
|
|
408
|
+
name: "u_specularColorTexture",
|
|
409
|
+
texture: options.specularColorTexture ?? defaultWhiteTexture("default-specular-color"),
|
|
410
|
+
sampler: options.specularColorSampler,
|
|
411
|
+
required: true,
|
|
412
|
+
expectedColorSpace: "srgb",
|
|
413
|
+
transform: options.specularColorTextureTransform
|
|
414
|
+
}),
|
|
415
|
+
u_specularColorTextureEnabled: options.specularColorTexture ? 1 : 0,
|
|
416
|
+
u_specularColorTextureOffset: options.specularColorTextureTransform?.offset ?? [0, 0],
|
|
417
|
+
u_specularColorTextureScale: options.specularColorTextureTransform?.scale ?? [1, 1],
|
|
418
|
+
u_specularColorTextureRotation: options.specularColorTextureTransform?.rotation ?? 0,
|
|
419
|
+
u_specularColorTextureTexCoord: textureTexCoord(options.textureTexCoords, "specularColor"),
|
|
420
|
+
u_specularColorTextureWrap: samplerWrapMode(options.specularColorSampler),
|
|
421
|
+
u_sheenColorTexture: new TextureBinding({
|
|
422
|
+
name: "u_sheenColorTexture",
|
|
423
|
+
texture: options.sheenColorTexture ?? defaultWhiteTexture("default-sheen-color"),
|
|
424
|
+
sampler: options.sheenColorSampler,
|
|
425
|
+
required: true,
|
|
426
|
+
expectedColorSpace: "srgb",
|
|
427
|
+
transform: options.sheenColorTextureTransform
|
|
428
|
+
}),
|
|
429
|
+
u_sheenColorTextureEnabled: options.sheenColorTexture ? 1 : 0,
|
|
430
|
+
u_sheenColorTextureOffset: options.sheenColorTextureTransform?.offset ?? [0, 0],
|
|
431
|
+
u_sheenColorTextureScale: options.sheenColorTextureTransform?.scale ?? [1, 1],
|
|
432
|
+
u_sheenColorTextureRotation: options.sheenColorTextureTransform?.rotation ?? 0,
|
|
433
|
+
u_sheenColorTextureTexCoord: textureTexCoord(options.textureTexCoords, "sheenColor"),
|
|
434
|
+
u_sheenColorTextureWrap: samplerWrapMode(options.sheenColorSampler),
|
|
435
|
+
u_sheenRoughnessTexture: new TextureBinding({
|
|
436
|
+
name: "u_sheenRoughnessTexture",
|
|
437
|
+
texture: options.sheenRoughnessTexture ?? defaultLinearWhiteTexture("default-sheen-roughness"),
|
|
438
|
+
sampler: options.sheenRoughnessSampler,
|
|
439
|
+
required: true,
|
|
440
|
+
expectedColorSpace: "linear",
|
|
441
|
+
transform: options.sheenRoughnessTextureTransform
|
|
442
|
+
}),
|
|
443
|
+
u_sheenRoughnessTextureEnabled: options.sheenRoughnessTexture ? 1 : 0,
|
|
444
|
+
u_sheenRoughnessTextureOffset: options.sheenRoughnessTextureTransform?.offset ?? [0, 0],
|
|
445
|
+
u_sheenRoughnessTextureScale: options.sheenRoughnessTextureTransform?.scale ?? [1, 1],
|
|
446
|
+
u_sheenRoughnessTextureRotation: options.sheenRoughnessTextureTransform?.rotation ?? 0,
|
|
447
|
+
u_sheenRoughnessTextureTexCoord: textureTexCoord(options.textureTexCoords, "sheenRoughness"),
|
|
448
|
+
u_sheenRoughnessTextureWrap: samplerWrapMode(options.sheenRoughnessSampler),
|
|
449
|
+
u_anisotropyTexture: new TextureBinding({
|
|
450
|
+
name: "u_anisotropyTexture",
|
|
451
|
+
texture: options.anisotropyTexture ?? defaultLinearWhiteTexture("default-anisotropy"),
|
|
452
|
+
sampler: options.anisotropySampler,
|
|
453
|
+
required: true,
|
|
454
|
+
expectedColorSpace: "linear",
|
|
455
|
+
transform: options.anisotropyTextureTransform
|
|
456
|
+
}),
|
|
457
|
+
u_anisotropyTextureEnabled: options.anisotropyTexture ? 1 : 0,
|
|
458
|
+
u_anisotropyTextureOffset: options.anisotropyTextureTransform?.offset ?? [0, 0],
|
|
459
|
+
u_anisotropyTextureScale: options.anisotropyTextureTransform?.scale ?? [1, 1],
|
|
460
|
+
u_anisotropyTextureRotation: options.anisotropyTextureTransform?.rotation ?? 0,
|
|
461
|
+
u_anisotropyTextureTexCoord: textureTexCoord(options.textureTexCoords, "anisotropy"),
|
|
462
|
+
u_anisotropyTextureWrap: samplerWrapMode(options.anisotropySampler),
|
|
463
|
+
u_iridescenceTexture: new TextureBinding({
|
|
464
|
+
name: "u_iridescenceTexture",
|
|
465
|
+
texture: options.iridescenceTexture ?? defaultLinearWhiteTexture("default-iridescence"),
|
|
466
|
+
sampler: options.iridescenceSampler,
|
|
467
|
+
required: true,
|
|
468
|
+
expectedColorSpace: "linear",
|
|
469
|
+
transform: options.iridescenceTextureTransform
|
|
470
|
+
}),
|
|
471
|
+
u_iridescenceTextureEnabled: options.iridescenceTexture ? 1 : 0,
|
|
472
|
+
u_iridescenceTextureOffset: options.iridescenceTextureTransform?.offset ?? [0, 0],
|
|
473
|
+
u_iridescenceTextureScale: options.iridescenceTextureTransform?.scale ?? [1, 1],
|
|
474
|
+
u_iridescenceTextureRotation: options.iridescenceTextureTransform?.rotation ?? 0,
|
|
475
|
+
u_iridescenceTextureTexCoord: textureTexCoord(options.textureTexCoords, "iridescence"),
|
|
476
|
+
u_iridescenceTextureWrap: samplerWrapMode(options.iridescenceSampler),
|
|
477
|
+
u_iridescenceThicknessTexture: new TextureBinding({
|
|
478
|
+
name: "u_iridescenceThicknessTexture",
|
|
479
|
+
texture: options.iridescenceThicknessTexture ?? defaultLinearWhiteTexture("default-iridescence-thickness"),
|
|
480
|
+
sampler: options.iridescenceThicknessSampler,
|
|
481
|
+
required: true,
|
|
482
|
+
expectedColorSpace: "linear",
|
|
483
|
+
transform: options.iridescenceThicknessTextureTransform
|
|
484
|
+
}),
|
|
485
|
+
u_iridescenceThicknessTextureEnabled: options.iridescenceThicknessTexture ? 1 : 0,
|
|
486
|
+
u_iridescenceThicknessTextureOffset: options.iridescenceThicknessTextureTransform?.offset ?? [0, 0],
|
|
487
|
+
u_iridescenceThicknessTextureScale: options.iridescenceThicknessTextureTransform?.scale ?? [1, 1],
|
|
488
|
+
u_iridescenceThicknessTextureRotation: options.iridescenceThicknessTextureTransform?.rotation ?? 0,
|
|
489
|
+
u_iridescenceThicknessTextureTexCoord: textureTexCoord(options.textureTexCoords, "iridescenceThickness"),
|
|
490
|
+
u_iridescenceThicknessTextureWrap: samplerWrapMode(options.iridescenceThicknessSampler),
|
|
491
|
+
u_modelViewProjection: identityMatrix(),
|
|
492
|
+
u_normalMatrix: identityMatrix()
|
|
493
|
+
},
|
|
494
|
+
requiredAttributes: [
|
|
495
|
+
"a_position",
|
|
496
|
+
"a_normal",
|
|
497
|
+
"a_uv",
|
|
498
|
+
...(requiresTangentFrame ? ["a_tangent"] : []),
|
|
499
|
+
...(usesSecondaryTexCoord(options.textureTexCoords) ? ["a_uv1"] : [])
|
|
500
|
+
],
|
|
501
|
+
uniformSchema: [
|
|
502
|
+
{ name: "u_baseColor", kind: "vec4" },
|
|
503
|
+
{ name: "u_metallic", kind: "float" },
|
|
504
|
+
{ name: "u_roughness", kind: "float" },
|
|
505
|
+
{ name: "u_environmentColor", kind: "vec3" },
|
|
506
|
+
{ name: "u_environmentIntensity", kind: "float" },
|
|
507
|
+
{ name: "u_environmentSkyColor", kind: "vec3" },
|
|
508
|
+
{ name: "u_environmentHorizonColor", kind: "vec3" },
|
|
509
|
+
{ name: "u_environmentGroundColor", kind: "vec3" },
|
|
510
|
+
{ name: "u_environmentSpecularColor", kind: "vec3" },
|
|
511
|
+
{ name: "u_environmentMapIntensity", kind: "float" },
|
|
512
|
+
{ name: "u_environmentSpecularIntensity", kind: "float" },
|
|
513
|
+
{ name: "u_environmentMapTexture", kind: "texture2d", required: false },
|
|
514
|
+
{ name: "u_environmentMapTextureEnabled", kind: "float" },
|
|
515
|
+
{ name: "u_environmentMapTextureIntensity", kind: "float" },
|
|
516
|
+
{ name: "u_environmentMapTextureSpecularIntensity", kind: "float" },
|
|
517
|
+
{ name: "u_materialEnvironmentSpecularScale", kind: "float" },
|
|
518
|
+
{ name: "u_environmentMapTextureRotation", kind: "float" },
|
|
519
|
+
{ name: "u_environmentMapTextureMipCount", kind: "float" },
|
|
520
|
+
{ name: "u_environmentMapTextureEncoding", kind: "float" },
|
|
521
|
+
{ name: "u_environmentBrdfLutTexture", kind: "texture2d", required: false },
|
|
522
|
+
{ name: "u_environmentBrdfLutEnabled", kind: "float", required: false },
|
|
523
|
+
{ name: "u_emissiveColor", kind: "vec3" },
|
|
524
|
+
{ name: "u_emissiveStrength", kind: "float" },
|
|
525
|
+
{ name: "u_clearcoatFactor", kind: "float" },
|
|
526
|
+
{ name: "u_clearcoatRoughnessFactor", kind: "float" },
|
|
527
|
+
{ name: "u_transmissionFactor", kind: "float" },
|
|
528
|
+
{ name: "u_diffuseTransmissionFactor", kind: "float" },
|
|
529
|
+
{ name: "u_diffuseTransmissionColorFactor", kind: "vec3" },
|
|
530
|
+
{ name: "u_transmissionFallbackEnergy", kind: "float" },
|
|
531
|
+
{ name: "u_volumeThicknessFactor", kind: "float" },
|
|
532
|
+
{ name: "u_volumeAttenuationDistance", kind: "float" },
|
|
533
|
+
{ name: "u_volumeAttenuationColor", kind: "vec3" },
|
|
534
|
+
{ name: "u_transmissionParallaxStrength", kind: "float" },
|
|
535
|
+
{ name: "u_transmissionParallaxBoxMin", kind: "vec3" },
|
|
536
|
+
{ name: "u_transmissionParallaxBoxMax", kind: "vec3" },
|
|
537
|
+
{ name: "u_transmissionBounceCount", kind: "float" },
|
|
538
|
+
{ name: "u_transmissionCausticStrength", kind: "float" },
|
|
539
|
+
...transmissionBackdropUniformSchema,
|
|
540
|
+
{ name: "u_ior", kind: "float" },
|
|
541
|
+
{ name: "u_specularFactor", kind: "float" },
|
|
542
|
+
{ name: "u_specularColorFactor", kind: "vec3" },
|
|
543
|
+
{ name: "u_sheenColorFactor", kind: "vec3" },
|
|
544
|
+
{ name: "u_sheenRoughnessFactor", kind: "float" },
|
|
545
|
+
{ name: "u_anisotropyStrength", kind: "float" },
|
|
546
|
+
{ name: "u_anisotropyRotation", kind: "float" },
|
|
547
|
+
{ name: "u_iridescenceFactor", kind: "float" },
|
|
548
|
+
{ name: "u_iridescenceIor", kind: "float" },
|
|
549
|
+
{ name: "u_iridescenceThicknessMinimum", kind: "float" },
|
|
550
|
+
{ name: "u_iridescenceThicknessMaximum", kind: "float" },
|
|
551
|
+
{ name: "u_dispersion", kind: "float" },
|
|
552
|
+
{ name: "u_lightCount", kind: "float" },
|
|
553
|
+
{ name: "u_lightData", kind: "any" },
|
|
554
|
+
{ name: "u_baseColorTexture", kind: "texture2d" },
|
|
555
|
+
{ name: "u_baseColorTextureEnabled", kind: "float" },
|
|
556
|
+
{ name: "u_baseColorTextureOffset", kind: "vec2" },
|
|
557
|
+
{ name: "u_baseColorTextureScale", kind: "vec2" },
|
|
558
|
+
{ name: "u_baseColorTextureRotation", kind: "float" },
|
|
559
|
+
{ name: "u_baseColorTextureTexCoord", kind: "float" },
|
|
560
|
+
{ name: "u_baseColorTextureWrap", kind: "vec2" },
|
|
561
|
+
{ name: "u_normalTexture", kind: "texture2d" },
|
|
562
|
+
{ name: "u_normalTextureOffset", kind: "vec2" },
|
|
563
|
+
{ name: "u_normalTextureScale", kind: "vec2" },
|
|
564
|
+
{ name: "u_normalTextureRotation", kind: "float" },
|
|
565
|
+
{ name: "u_normalTextureTexCoord", kind: "float" },
|
|
566
|
+
{ name: "u_normalTextureWrap", kind: "vec2" },
|
|
567
|
+
{ name: "u_normalTextureEnabled", kind: "float" },
|
|
568
|
+
{ name: "u_normalScale", kind: "float" },
|
|
569
|
+
{ name: "u_metallicRoughnessTexture", kind: "texture2d" },
|
|
570
|
+
{ name: "u_metallicRoughnessTextureEnabled", kind: "float" },
|
|
571
|
+
{ name: "u_metallicRoughnessTextureOffset", kind: "vec2" },
|
|
572
|
+
{ name: "u_metallicRoughnessTextureScale", kind: "vec2" },
|
|
573
|
+
{ name: "u_metallicRoughnessTextureRotation", kind: "float" },
|
|
574
|
+
{ name: "u_metallicRoughnessTextureTexCoord", kind: "float" },
|
|
575
|
+
{ name: "u_metallicRoughnessTextureWrap", kind: "vec2" },
|
|
576
|
+
{ name: "u_occlusionTexture", kind: "texture2d" },
|
|
577
|
+
{ name: "u_occlusionTextureEnabled", kind: "float" },
|
|
578
|
+
{ name: "u_occlusionTextureOffset", kind: "vec2" },
|
|
579
|
+
{ name: "u_occlusionTextureScale", kind: "vec2" },
|
|
580
|
+
{ name: "u_occlusionTextureRotation", kind: "float" },
|
|
581
|
+
{ name: "u_occlusionTextureTexCoord", kind: "float" },
|
|
582
|
+
{ name: "u_occlusionTextureWrap", kind: "vec2" },
|
|
583
|
+
{ name: "u_occlusionStrength", kind: "float" },
|
|
584
|
+
{ name: "u_emissiveTexture", kind: "texture2d" },
|
|
585
|
+
{ name: "u_emissiveTextureEnabled", kind: "float" },
|
|
586
|
+
{ name: "u_emissiveTextureOffset", kind: "vec2" },
|
|
587
|
+
{ name: "u_emissiveTextureScale", kind: "vec2" },
|
|
588
|
+
{ name: "u_emissiveTextureRotation", kind: "float" },
|
|
589
|
+
{ name: "u_emissiveTextureTexCoord", kind: "float" },
|
|
590
|
+
{ name: "u_emissiveTextureWrap", kind: "vec2" },
|
|
591
|
+
{ name: "u_clearcoatTexture", kind: "texture2d", required: false },
|
|
592
|
+
{ name: "u_clearcoatTextureEnabled", kind: "float", required: false },
|
|
593
|
+
{ name: "u_clearcoatTextureOffset", kind: "vec2", required: false },
|
|
594
|
+
{ name: "u_clearcoatTextureScale", kind: "vec2", required: false },
|
|
595
|
+
{ name: "u_clearcoatTextureRotation", kind: "float", required: false },
|
|
596
|
+
{ name: "u_clearcoatTextureTexCoord", kind: "float", required: false },
|
|
597
|
+
{ name: "u_clearcoatTextureWrap", kind: "vec2", required: false },
|
|
598
|
+
{ name: "u_clearcoatRoughnessTexture", kind: "texture2d", required: false },
|
|
599
|
+
{ name: "u_clearcoatRoughnessTextureEnabled", kind: "float", required: false },
|
|
600
|
+
{ name: "u_clearcoatRoughnessTextureOffset", kind: "vec2", required: false },
|
|
601
|
+
{ name: "u_clearcoatRoughnessTextureScale", kind: "vec2", required: false },
|
|
602
|
+
{ name: "u_clearcoatRoughnessTextureRotation", kind: "float", required: false },
|
|
603
|
+
{ name: "u_clearcoatRoughnessTextureTexCoord", kind: "float", required: false },
|
|
604
|
+
{ name: "u_clearcoatRoughnessTextureWrap", kind: "vec2", required: false },
|
|
605
|
+
{ name: "u_clearcoatNormalTexture", kind: "texture2d", required: false },
|
|
606
|
+
{ name: "u_clearcoatNormalTextureEnabled", kind: "float", required: false },
|
|
607
|
+
{ name: "u_clearcoatNormalTextureOffset", kind: "vec2", required: false },
|
|
608
|
+
{ name: "u_clearcoatNormalTextureScale", kind: "vec2", required: false },
|
|
609
|
+
{ name: "u_clearcoatNormalTextureRotation", kind: "float", required: false },
|
|
610
|
+
{ name: "u_clearcoatNormalTextureTexCoord", kind: "float", required: false },
|
|
611
|
+
{ name: "u_clearcoatNormalTextureWrap", kind: "vec2", required: false },
|
|
612
|
+
{ name: "u_clearcoatNormalScale", kind: "float" },
|
|
613
|
+
{ name: "u_transmissionTexture", kind: "texture2d", required: false },
|
|
614
|
+
{ name: "u_transmissionTextureEnabled", kind: "float", required: false },
|
|
615
|
+
{ name: "u_transmissionTextureOffset", kind: "vec2", required: false },
|
|
616
|
+
{ name: "u_transmissionTextureScale", kind: "vec2", required: false },
|
|
617
|
+
{ name: "u_transmissionTextureRotation", kind: "float", required: false },
|
|
618
|
+
{ name: "u_transmissionTextureTexCoord", kind: "float", required: false },
|
|
619
|
+
{ name: "u_transmissionTextureWrap", kind: "vec2", required: false },
|
|
620
|
+
{ name: "u_diffuseTransmissionTexture", kind: "texture2d", required: false },
|
|
621
|
+
{ name: "u_diffuseTransmissionTextureEnabled", kind: "float", required: false },
|
|
622
|
+
{ name: "u_diffuseTransmissionTextureOffset", kind: "vec2", required: false },
|
|
623
|
+
{ name: "u_diffuseTransmissionTextureScale", kind: "vec2", required: false },
|
|
624
|
+
{ name: "u_diffuseTransmissionTextureRotation", kind: "float", required: false },
|
|
625
|
+
{ name: "u_diffuseTransmissionTextureTexCoord", kind: "float", required: false },
|
|
626
|
+
{ name: "u_diffuseTransmissionTextureWrap", kind: "vec2", required: false },
|
|
627
|
+
{ name: "u_diffuseTransmissionColorTexture", kind: "texture2d", required: false },
|
|
628
|
+
{ name: "u_diffuseTransmissionColorTextureEnabled", kind: "float", required: false },
|
|
629
|
+
{ name: "u_diffuseTransmissionColorTextureOffset", kind: "vec2", required: false },
|
|
630
|
+
{ name: "u_diffuseTransmissionColorTextureScale", kind: "vec2", required: false },
|
|
631
|
+
{ name: "u_diffuseTransmissionColorTextureRotation", kind: "float", required: false },
|
|
632
|
+
{ name: "u_diffuseTransmissionColorTextureTexCoord", kind: "float", required: false },
|
|
633
|
+
{ name: "u_diffuseTransmissionColorTextureWrap", kind: "vec2", required: false },
|
|
634
|
+
{ name: "u_volumeThicknessTexture", kind: "texture2d", required: false },
|
|
635
|
+
{ name: "u_volumeThicknessTextureEnabled", kind: "float", required: false },
|
|
636
|
+
{ name: "u_volumeThicknessTextureOffset", kind: "vec2", required: false },
|
|
637
|
+
{ name: "u_volumeThicknessTextureScale", kind: "vec2", required: false },
|
|
638
|
+
{ name: "u_volumeThicknessTextureRotation", kind: "float", required: false },
|
|
639
|
+
{ name: "u_volumeThicknessTextureTexCoord", kind: "float", required: false },
|
|
640
|
+
{ name: "u_volumeThicknessTextureWrap", kind: "vec2", required: false },
|
|
641
|
+
{ name: "u_specularTexture", kind: "texture2d", required: false },
|
|
642
|
+
{ name: "u_specularTextureEnabled", kind: "float", required: false },
|
|
643
|
+
{ name: "u_specularTextureOffset", kind: "vec2", required: false },
|
|
644
|
+
{ name: "u_specularTextureScale", kind: "vec2", required: false },
|
|
645
|
+
{ name: "u_specularTextureRotation", kind: "float", required: false },
|
|
646
|
+
{ name: "u_specularTextureTexCoord", kind: "float", required: false },
|
|
647
|
+
{ name: "u_specularTextureWrap", kind: "vec2", required: false },
|
|
648
|
+
{ name: "u_specularColorTexture", kind: "texture2d", required: false },
|
|
649
|
+
{ name: "u_specularColorTextureEnabled", kind: "float", required: false },
|
|
650
|
+
{ name: "u_specularColorTextureOffset", kind: "vec2", required: false },
|
|
651
|
+
{ name: "u_specularColorTextureScale", kind: "vec2", required: false },
|
|
652
|
+
{ name: "u_specularColorTextureRotation", kind: "float", required: false },
|
|
653
|
+
{ name: "u_specularColorTextureTexCoord", kind: "float", required: false },
|
|
654
|
+
{ name: "u_specularColorTextureWrap", kind: "vec2", required: false },
|
|
655
|
+
{ name: "u_sheenColorTexture", kind: "texture2d", required: false },
|
|
656
|
+
{ name: "u_sheenColorTextureEnabled", kind: "float", required: false },
|
|
657
|
+
{ name: "u_sheenColorTextureOffset", kind: "vec2", required: false },
|
|
658
|
+
{ name: "u_sheenColorTextureScale", kind: "vec2", required: false },
|
|
659
|
+
{ name: "u_sheenColorTextureRotation", kind: "float", required: false },
|
|
660
|
+
{ name: "u_sheenColorTextureTexCoord", kind: "float", required: false },
|
|
661
|
+
{ name: "u_sheenColorTextureWrap", kind: "vec2", required: false },
|
|
662
|
+
{ name: "u_sheenRoughnessTexture", kind: "texture2d", required: false },
|
|
663
|
+
{ name: "u_sheenRoughnessTextureEnabled", kind: "float", required: false },
|
|
664
|
+
{ name: "u_sheenRoughnessTextureOffset", kind: "vec2", required: false },
|
|
665
|
+
{ name: "u_sheenRoughnessTextureScale", kind: "vec2", required: false },
|
|
666
|
+
{ name: "u_sheenRoughnessTextureRotation", kind: "float", required: false },
|
|
667
|
+
{ name: "u_sheenRoughnessTextureTexCoord", kind: "float", required: false },
|
|
668
|
+
{ name: "u_sheenRoughnessTextureWrap", kind: "vec2", required: false },
|
|
669
|
+
{ name: "u_anisotropyTexture", kind: "texture2d", required: false },
|
|
670
|
+
{ name: "u_anisotropyTextureEnabled", kind: "float", required: false },
|
|
671
|
+
{ name: "u_anisotropyTextureOffset", kind: "vec2", required: false },
|
|
672
|
+
{ name: "u_anisotropyTextureScale", kind: "vec2", required: false },
|
|
673
|
+
{ name: "u_anisotropyTextureRotation", kind: "float", required: false },
|
|
674
|
+
{ name: "u_anisotropyTextureTexCoord", kind: "float", required: false },
|
|
675
|
+
{ name: "u_anisotropyTextureWrap", kind: "vec2", required: false },
|
|
676
|
+
{ name: "u_iridescenceTexture", kind: "texture2d", required: false },
|
|
677
|
+
{ name: "u_iridescenceTextureEnabled", kind: "float", required: false },
|
|
678
|
+
{ name: "u_iridescenceTextureOffset", kind: "vec2", required: false },
|
|
679
|
+
{ name: "u_iridescenceTextureScale", kind: "vec2", required: false },
|
|
680
|
+
{ name: "u_iridescenceTextureRotation", kind: "float", required: false },
|
|
681
|
+
{ name: "u_iridescenceTextureTexCoord", kind: "float", required: false },
|
|
682
|
+
{ name: "u_iridescenceTextureWrap", kind: "vec2", required: false },
|
|
683
|
+
{ name: "u_iridescenceThicknessTexture", kind: "texture2d", required: false },
|
|
684
|
+
{ name: "u_iridescenceThicknessTextureEnabled", kind: "float", required: false },
|
|
685
|
+
{ name: "u_iridescenceThicknessTextureOffset", kind: "vec2", required: false },
|
|
686
|
+
{ name: "u_iridescenceThicknessTextureScale", kind: "vec2", required: false },
|
|
687
|
+
{ name: "u_iridescenceThicknessTextureRotation", kind: "float", required: false },
|
|
688
|
+
{ name: "u_iridescenceThicknessTextureTexCoord", kind: "float", required: false },
|
|
689
|
+
{ name: "u_iridescenceThicknessTextureWrap", kind: "vec2", required: false },
|
|
690
|
+
{ name: "u_modelViewProjection", kind: "mat4" },
|
|
691
|
+
{ name: "u_normalMatrix", kind: "mat4" }
|
|
692
|
+
]
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
function validateNonNegative(value, label) {
|
|
697
|
+
if (!Number.isFinite(value) || value < 0) {
|
|
698
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must be finite and non-negative`);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
function textureTexCoord(texCoords, slot) {
|
|
702
|
+
const value = texCoords?.[slot] ?? 0;
|
|
703
|
+
if (!Number.isInteger(value) || value < 0 || value > 1) {
|
|
704
|
+
throw new RangeError(`TexturedPBRMaterial ${slot} texCoord must be 0 or 1`);
|
|
705
|
+
}
|
|
706
|
+
return value;
|
|
707
|
+
}
|
|
708
|
+
function usesSecondaryTexCoord(texCoords) {
|
|
709
|
+
return Object.values(texCoords ?? {}).some((value) => value === 1);
|
|
710
|
+
}
|
|
711
|
+
function samplerWrapMode(sampler) {
|
|
712
|
+
return [
|
|
713
|
+
addressModeCode(sampler?.addressU ?? "clamp-to-edge"),
|
|
714
|
+
addressModeCode(sampler?.addressV ?? "clamp-to-edge")
|
|
715
|
+
];
|
|
716
|
+
}
|
|
717
|
+
function addressModeCode(mode) {
|
|
718
|
+
if (mode === "repeat")
|
|
719
|
+
return 1;
|
|
720
|
+
if (mode === "mirror-repeat")
|
|
721
|
+
return 2;
|
|
722
|
+
return 0;
|
|
723
|
+
}
|
|
724
|
+
function texturedPbrShaderVariant(options) {
|
|
725
|
+
const hasClearcoatTextures = Boolean(options.clearcoatTexture || options.clearcoatRoughnessTexture || options.clearcoatNormalTexture);
|
|
726
|
+
const hasTransmissionVolumeTextures = Boolean(options.transmissionTexture ||
|
|
727
|
+
options.diffuseTransmissionTexture ||
|
|
728
|
+
options.diffuseTransmissionColorTexture ||
|
|
729
|
+
options.volumeThicknessTexture);
|
|
730
|
+
const hasSpecularTextures = Boolean(options.specularTexture || options.specularColorTexture);
|
|
731
|
+
const hasSheenAnisotropyTextures = Boolean(options.sheenColorTexture ||
|
|
732
|
+
options.sheenRoughnessTexture ||
|
|
733
|
+
options.anisotropyTexture);
|
|
734
|
+
const hasSpecularSheenAnisotropyTextures = hasSpecularTextures || hasSheenAnisotropyTextures;
|
|
735
|
+
const hasIridescenceTextures = Boolean(options.iridescenceTexture || options.iridescenceThicknessTexture);
|
|
736
|
+
if (hasClearcoatTextures && hasSpecularTextures && !hasTransmissionVolumeTextures) {
|
|
737
|
+
return DEFAULT_TEXTURED_PBR_CLEARCOAT_SPECULAR_TEXTURES_VARIANT;
|
|
738
|
+
}
|
|
739
|
+
if (hasClearcoatTextures && hasTransmissionVolumeTextures) {
|
|
740
|
+
return DEFAULT_TEXTURED_PBR_CLEARCOAT_TRANSMISSION_VOLUME_TEXTURES_VARIANT;
|
|
741
|
+
}
|
|
742
|
+
if (hasSpecularSheenAnisotropyTextures && hasIridescenceTextures) {
|
|
743
|
+
return DEFAULT_TEXTURED_PBR_SPECULAR_SHEEN_ANISOTROPY_IRIDESCENCE_TEXTURES_VARIANT;
|
|
744
|
+
}
|
|
745
|
+
if (hasClearcoatTextures) {
|
|
746
|
+
return DEFAULT_TEXTURED_PBR_CLEARCOAT_TEXTURES_VARIANT;
|
|
747
|
+
}
|
|
748
|
+
if (hasTransmissionVolumeTextures) {
|
|
749
|
+
return DEFAULT_TEXTURED_PBR_TRANSMISSION_VOLUME_TEXTURES_VARIANT;
|
|
750
|
+
}
|
|
751
|
+
if (hasSpecularSheenAnisotropyTextures) {
|
|
752
|
+
return DEFAULT_TEXTURED_PBR_SPECULAR_SHEEN_ANISOTROPY_TEXTURES_VARIANT;
|
|
753
|
+
}
|
|
754
|
+
if (hasIridescenceTextures) {
|
|
755
|
+
return DEFAULT_TEXTURED_PBR_IRIDESCENCE_TEXTURES_VARIANT;
|
|
756
|
+
}
|
|
757
|
+
return undefined;
|
|
758
|
+
}
|
|
759
|
+
function validatePositive(value, label) {
|
|
760
|
+
if (!Number.isFinite(value) || value <= 0) {
|
|
761
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must be finite and positive`);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
function validateMipCount(value, label) {
|
|
765
|
+
if (!Number.isInteger(value) || value < 1) {
|
|
766
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must be a positive integer`);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
function validateProceduralEnvironmentMap(value) {
|
|
770
|
+
validateColor3(value.skyColor, "proceduralEnvironmentMap.skyColor");
|
|
771
|
+
validateColor3(value.horizonColor, "proceduralEnvironmentMap.horizonColor");
|
|
772
|
+
validateColor3(value.groundColor, "proceduralEnvironmentMap.groundColor");
|
|
773
|
+
validateColor3(value.specularColor, "proceduralEnvironmentMap.specularColor");
|
|
774
|
+
validateNonNegative(value.intensity, "proceduralEnvironmentMap.intensity");
|
|
775
|
+
validateNonNegative(value.specularIntensity, "proceduralEnvironmentMap.specularIntensity");
|
|
776
|
+
}
|
|
777
|
+
function defaultWhiteTexture(label = "default-white") {
|
|
778
|
+
return new Texture({ width: 1, height: 1, colorSpace: "srgb", label, data: new Uint8Array([255, 255, 255, 255]) });
|
|
779
|
+
}
|
|
780
|
+
function defaultLinearWhiteTexture(label = "default-linear-white") {
|
|
781
|
+
return new Texture({ width: 1, height: 1, colorSpace: "linear", label, data: new Uint8Array([255, 255, 255, 255]) });
|
|
782
|
+
}
|
|
783
|
+
function defaultFlatNormalTexture() {
|
|
784
|
+
return new Texture({ width: 1, height: 1, label: "default-flat-normal", data: new Uint8Array([128, 128, 255, 255]) });
|
|
785
|
+
}
|
|
786
|
+
function defaultMetallicRoughnessTexture() {
|
|
787
|
+
return new Texture({ width: 1, height: 1, colorSpace: "linear", label: "default-metallic-roughness", data: new Uint8Array([255, 255, 255, 255]) });
|
|
788
|
+
}
|
|
789
|
+
function validateUnit(value, label) {
|
|
790
|
+
if (!Number.isFinite(value) || value < 0 || value > 1) {
|
|
791
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must be finite and within [0, 1]`);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
function validateFinite(value, label) {
|
|
795
|
+
if (!Number.isFinite(value)) {
|
|
796
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must be finite`);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
function validateIOR(value) {
|
|
800
|
+
if (!Number.isFinite(value) || value < 1) {
|
|
801
|
+
throw new RangeError("TexturedPBRMaterial ior must be finite and at least 1");
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
function validateIridescenceIOR(value) {
|
|
805
|
+
if (!Number.isFinite(value) || value < 1 || value > 3) {
|
|
806
|
+
throw new RangeError("TexturedPBRMaterial iridescenceIor must be finite and within [1, 3]");
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
function validateColor4(value, label) {
|
|
810
|
+
if (value.length !== 4 || value.some((channel) => !Number.isFinite(channel) || channel < 0 || channel > 1)) {
|
|
811
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must contain four finite values in [0, 1]`);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
function validateColor3(value, label) {
|
|
815
|
+
if (value.length !== 3 || value.some((channel) => !Number.isFinite(channel) || channel < 0 || channel > 1)) {
|
|
816
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must contain three finite values in [0, 1]`);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
function validateNonNegativeColor3(value, label) {
|
|
820
|
+
if (value.length !== 3 || value.some((channel) => !Number.isFinite(channel) || channel < 0)) {
|
|
821
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must contain three finite non-negative values`);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
function validateFiniteVec3(value, label) {
|
|
825
|
+
if (value.length !== 3 || value.some((channel) => !Number.isFinite(channel))) {
|
|
826
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must contain three finite values`);
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
function validatePositiveVec2(value, label) {
|
|
830
|
+
if (value.length !== 2 || value.some((channel) => !Number.isFinite(channel) || channel <= 0)) {
|
|
831
|
+
throw new RangeError(`TexturedPBRMaterial ${label} must contain two finite positive values`);
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
function identityMatrix() {
|
|
835
|
+
return new Float32Array([
|
|
836
|
+
1, 0, 0, 0,
|
|
837
|
+
0, 1, 0, 0,
|
|
838
|
+
0, 0, 1, 0,
|
|
839
|
+
0, 0, 0, 1
|
|
840
|
+
]);
|
|
841
|
+
}
|
|
842
|
+
//# sourceMappingURL=TexturedPBRMaterial.js.map
|