@baidumap/mapv-three 1.3.3 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/textures/cloud/stbn.bin +0 -0
- package/dist/assets/wasm/lanelet.js +3296 -165
- package/dist/assets/wasm/lanelet.wasm +0 -0
- package/dist/assets/workers/{BaiduVectorParser.worker-d550338e.js → BaiduVectorParser.worker-f7fcc351.js} +915 -865
- package/dist/assets/workers/{CesiumTerrainParser.worker-20119751.js → CesiumTerrainParser.worker-fcae0cc9.js} +1081 -998
- package/dist/assets/workers/{MVTParser.worker-7dc8b0e4.js → MVTParser.worker-0dd27c39.js} +746 -685
- package/dist/devtool/panel.js +99 -29
- package/dist/mapvthree.module.js +16513 -18418
- package/dist/mapvthree.umd.js +13 -7
- package/dist/types/Internal.d.ts +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.open.d.ts +4 -0
- package/dist/types/threejs/controls/PointerLockControls.d.ts +2 -0
- package/dist/types/threejs/loaders/utilities/BatchTableHierarchyExtension.d.ts +4 -4
- package/dist/types/threejs/loaders/utilities/FeatureTable.d.ts +1 -1
- package/dist/types/threejs/materials/effects/LightningMaterial.d.ts +9 -0
- package/dist/types/threejs/materials/extend/ExtendMeshStandardMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/natural/DynamicSkyMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/natural/StaticSkyMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/natural/VerticalGradientSkyMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/polygon/PolygonMaterial.d.ts +1 -0
- package/dist/types/threejs/objects/GeoInstancedMesh.d.ts +1 -0
- package/dist/types/threejs/objects/line/Polyline.d.ts +1 -1
- package/dist/types/threejs/objects/point/Icon.d.ts +1 -0
- package/dist/types/threejs/objects/point/Label.d.ts +5 -1
- package/dist/types/threejs/objects/point/label/GeometryBufferBuilder.d.ts +3 -0
- package/dist/types/threejs/objects/point/label/TextBoxCalculator.d.ts +5 -3
- package/dist/types/threejs/objects/text/utils.d.ts +1 -1
- package/dist/types/threemap/3dtiles/HDMap3DTiles.d.ts +26 -0
- package/dist/types/threemap/3dtiles/materials/Default3DTilesMaterialManager.d.ts +51 -3
- package/dist/types/threemap/Engine.d.ts +6 -0
- package/dist/types/threemap/animations/ObjectTracker.d.ts +73 -44
- package/dist/types/threemap/animations/PathTracker.d.ts +92 -24
- package/dist/types/threemap/animations/RotateTracker.d.ts +115 -21
- package/dist/types/threemap/animations/TrackerAbstract.d.ts +15 -11
- package/dist/types/threemap/controls/PointerLockControls.d.ts +8 -2
- package/dist/types/threemap/controls/controller/ColumbusController.d.ts +10 -0
- package/dist/types/threemap/controls/controller/Scene3DController.d.ts +9 -0
- package/dist/types/threemap/controls/editors/Editor.d.ts +3 -0
- package/dist/types/threemap/engine/Clock.d.ts +156 -0
- package/dist/types/threemap/engine/Map.d.ts +20 -2
- package/dist/types/threemap/engine/Rendering.d.ts +15 -0
- package/dist/types/threemap/engine/rendering/Label.d.ts +2 -0
- package/dist/types/threemap/engine/rendering/MainNew.d.ts +1 -1
- package/dist/types/threemap/engine/rendering/postprocessing/OpaquePostprocessings.d.ts +1 -1
- package/dist/types/threemap/engine/rendering/postprocessing/SkyAtmospherePass.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/scene/DirectSceneRendering.d.ts +5 -0
- package/dist/types/threemap/mapView/geo/terrainData/QuantizedMeshTerrainData.d.ts +1 -1
- package/dist/types/threemap/mapView/grid/BaiduVectorOfflineGrid.d.ts +5 -0
- package/dist/types/threemap/mapView/map/MapView.d.ts +3 -0
- package/dist/types/threemap/mapView/parser/baidulane/ElementParser.d.ts +86 -0
- package/dist/types/threemap/mapView/parser/baidulane/StyleParser.d.ts +28 -0
- package/dist/types/threemap/mapView/parser/baidulane/constants/index.d.ts +25 -0
- package/dist/types/threemap/mapView/parser/baidulane/constants/types.d.ts +47 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/GeometryBuilder.d.ts +40 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/LayerManager.d.ts +41 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/MaterialFactory.d.ts +71 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/StyleManager.d.ts +50 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/TextureManager.d.ts +65 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/wasmManager.d.ts +18 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Base.d.ts +46 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Building3d.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/FlatSymbol.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/LabelLine.d.ts +29 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Line.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Line3d.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Line3dTexture.d.ts +3 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/LineDash.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/LineTexture.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Poi.d.ts +26 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon3d.d.ts +40 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrude.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrudeTexture.d.ts +18 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonOpacity.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/SimplePoint.d.ts +39 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Background.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Base.d.ts +27 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/BridgePier.d.ts +20 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/DebugLine.d.ts +16 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPoint.d.ts +5 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPolygon.d.ts +20 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGradient.d.ts +16 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGuide.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingLine.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingPoly.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingRoad.d.ts +13 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/HRegion.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/LineName.d.ts +48 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Link.d.ts +10 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Poi.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Poly.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Texture.d.ts +10 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/color.d.ts +13 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/coordinate.d.ts +18 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/geometry.d.ts +3 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/icon.d.ts +8 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/merge.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/tracer.d.ts +7 -0
- package/dist/types/{util/mapbox.d.ts → threemap/mapView/parser/mapbox/util.d.ts} +1 -1
- package/dist/types/threemap/mapView/surface/GroundSceneRenderer.d.ts +7 -2
- package/dist/types/threemap/mapView/surface/MapSurface.d.ts +2 -0
- package/dist/types/threemap/mapView/tileProvider/terrain/CesiumTerrainTileProvider.d.ts +3 -0
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduLaneVectorTileProvider.d.ts +7 -0
- package/dist/types/threemap/mapView/tileProvider/vector/MapboxVectorTileProvider.d.ts +6 -10
- package/dist/types/threemap/mapView/utils/createGroundTileMesh.d.ts +2 -1
- package/dist/types/threemap/mapView/utils/projectVertices.d.ts +1 -1
- package/dist/types/threemap/materials/BatchBuildingMaterial.d.ts +9 -11
- package/dist/types/threemap/materials/RoadMarkingMaterial.d.ts +2 -11
- package/dist/types/threemap/materials/TerrainClassificationMaterial.d.ts +9 -7
- package/dist/types/threemap/natural/DynamicSky.d.ts +68 -22
- package/dist/types/threemap/natural/DynamicWeather.d.ts +15 -105
- package/dist/types/threemap/natural/EmptySky.d.ts +48 -62
- package/dist/types/threemap/natural/PhysicalSky.d.ts +220 -0
- package/dist/types/threemap/natural/Rain.d.ts +5 -2
- package/dist/types/threemap/natural/Snow.d.ts +5 -2
- package/dist/types/threemap/natural/StaticSky.d.ts +1 -0
- package/dist/types/threemap/natural/Thunderstorm.d.ts +31 -0
- package/dist/types/threemap/natural/clouds/CascadedShadowMaps.d.ts +31 -0
- package/dist/types/threemap/natural/clouds/CloudLayer.d.ts +19 -0
- package/dist/types/threemap/natural/clouds/CloudLayers.d.ts +13 -0
- package/dist/types/threemap/natural/clouds/CloudShape.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/CloudShapeDetail.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/CloudsEffect.d.ts +173 -0
- package/dist/types/threemap/natural/clouds/CloudsMaterial.d.ts +35 -0
- package/dist/types/threemap/natural/clouds/CloudsPass.d.ts +39 -0
- package/dist/types/threemap/natural/clouds/CloudsPostPass.d.ts +10 -0
- package/dist/types/threemap/natural/clouds/CloudsResolveMaterial.d.ts +13 -0
- package/dist/types/threemap/natural/clouds/DensityProfile.d.ts +10 -0
- package/dist/types/threemap/natural/clouds/LocalWeather.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/PassBase.d.ts +7 -0
- package/dist/types/threemap/natural/clouds/Procedural3DTexture.d.ts +15 -0
- package/dist/types/threemap/natural/clouds/ProceduralTexture.d.ts +15 -0
- package/dist/types/threemap/natural/clouds/ShaderArrayPass.d.ts +3 -0
- package/dist/types/threemap/natural/clouds/ShadowMaterial.d.ts +14 -0
- package/dist/types/threemap/natural/clouds/ShadowPass.d.ts +31 -0
- package/dist/types/threemap/natural/clouds/ShadowResolveMaterial.d.ts +8 -0
- package/dist/types/threemap/natural/clouds/Turbulence.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/bayer.d.ts +2 -0
- package/dist/types/threemap/natural/clouds/constants.d.ts +6 -0
- package/dist/types/threemap/natural/clouds/helpers/FrustumCorners.d.ts +10 -0
- package/dist/types/threemap/natural/clouds/helpers/setArrayRenderTargetLayers.d.ts +1 -0
- package/dist/types/threemap/natural/clouds/helpers/splitFrustum.d.ts +6 -0
- package/dist/types/threemap/natural/clouds/qualityPresets.d.ts +130 -0
- package/dist/types/threemap/natural/clouds/uniforms.d.ts +44 -0
- package/dist/types/threemap/natural/core/ArrayBufferLoader.d.ts +3 -0
- package/dist/types/threemap/natural/core/DataTextureLoader.d.ts +11 -0
- package/dist/types/threemap/natural/core/Ellipsoid.d.ts +17 -0
- package/dist/types/threemap/natural/core/Geodetic.d.ts +23 -0
- package/dist/types/threemap/natural/core/TypedArrayLoader.d.ts +5 -0
- package/dist/types/threemap/natural/core/capabilities.d.ts +1 -0
- package/dist/types/threemap/natural/core/celestialDirections.d.ts +5 -0
- package/dist/types/threemap/natural/core/decorators.d.ts +61 -0
- package/dist/types/threemap/natural/core/defineShorthand.d.ts +2 -0
- package/dist/types/threemap/natural/core/helpers/projectOnEllipsoidSurface.d.ts +1 -0
- package/dist/types/threemap/natural/core/math.d.ts +15 -0
- package/dist/types/threemap/natural/core/requestIdleCallback.d.ts +2 -0
- package/dist/types/threemap/natural/core/resolveIncludes.d.ts +1 -0
- package/dist/types/threemap/natural/core/shaders/index.d.ts +10 -0
- package/dist/types/threemap/natural/core/unrollLoops.d.ts +1 -0
- package/dist/types/threemap/natural/effects/DepthEffect.d.ts +15 -0
- package/dist/types/threemap/natural/effects/DitheringEffect.d.ts +6 -0
- package/dist/types/threemap/natural/effects/DownsampleThresholdMaterial.d.ts +14 -0
- package/dist/types/threemap/natural/effects/GeometryEffect.d.ts +11 -0
- package/dist/types/threemap/natural/effects/GeometryPass.d.ts +6 -0
- package/dist/types/threemap/natural/effects/LensFlareEffect.d.ts +31 -0
- package/dist/types/threemap/natural/effects/LensFlareFeaturesMaterial.d.ts +17 -0
- package/dist/types/threemap/natural/effects/NormalEffect.d.ts +16 -0
- package/dist/types/threemap/natural/effects/createHaldLookupTexture.d.ts +1 -0
- package/dist/types/threemap/natural/effects/index.d.ts +7 -0
- package/dist/types/threemap/natural/effects/setupMaterialsForGeometryPass.d.ts +1 -0
- package/dist/types/threemap/natural/sky/AerialPerspectiveEffect.d.ts +95 -0
- package/dist/types/threemap/natural/sky/AtmosphereMaterialBase.d.ts +40 -0
- package/dist/types/threemap/natural/sky/AtmosphereParameters.d.ts +32 -0
- package/dist/types/threemap/natural/sky/AtmospherePostPass.d.ts +10 -0
- package/dist/types/threemap/natural/sky/PrecomputedTexturesGenerator.d.ts +66 -0
- package/dist/types/threemap/natural/sky/SkyMaterial.d.ts +26 -0
- package/dist/types/threemap/natural/sky/constants.d.ts +14 -0
- package/dist/types/threemap/natural/sky/getAltitudeCorrectionOffset.d.ts +1 -0
- package/dist/types/threemap/video/VideoConfig.d.ts +2 -2
- package/dist/types/util/graphics/line.d.ts +2 -2
- package/dist/types/util/request.d.ts +1 -1
- package/package.json +6 -3
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/color.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/background.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill-extrusion.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/line.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/symbol.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/compound_expression.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/assertion.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/at.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/case.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coalesce.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coercion.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/collator.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/comparison.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/format.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/image.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/in.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index_of.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/interpolate.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/length.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/let.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/literal.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/match.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/number_format.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/slice.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/step.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/var.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/within.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/evaluation_context.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/expression.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/is_constant.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_context.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_error.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/scope.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/stops.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/collator.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/formatted.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/resolved_image.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/values.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/feature_filter/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/convert.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sourceLayer.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sprite.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/style.d.ts +0 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 动态天空继承自 {@link EmptySky},提供高级的大气层渲染、光照变化和云层效果,可以根据时间自动变化光照和天空外观。
|
|
3
|
+
* 支持体积云、大气散射以及环境反射烘培,为3D场景提供真实感的天空和照明效果。
|
|
4
|
+
*
|
|
5
|
+
* @category Natural
|
|
6
|
+
* @example
|
|
7
|
+
* ```javascript
|
|
8
|
+
* // 创建动态天空
|
|
9
|
+
* const sky = engine.add(new mapvthree.PhysicalSky());
|
|
10
|
+
*
|
|
11
|
+
* // 设置时间为下午5:30
|
|
12
|
+
* sky.time = 3600 * 17.5;
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export class PhysicalSky extends EmptySky {
|
|
16
|
+
/**
|
|
17
|
+
* 标识为PhysicalSky对象
|
|
18
|
+
* @type {boolean}
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
readonly isPhysicalSky: boolean;
|
|
22
|
+
/** @private */ private _rtFlipCount;
|
|
23
|
+
/** @private */ private _skyNeedsCapture;
|
|
24
|
+
/** @private */ private _skyNeedsUpdate;
|
|
25
|
+
/** @private */ private _staticEnvMapNeedsUpdate;
|
|
26
|
+
/** @private */ private _realtimeCapture;
|
|
27
|
+
/** @private */ private _envMapType;
|
|
28
|
+
/** @private */ private _PMREMGenerator;
|
|
29
|
+
/** @private */ private _cloud;
|
|
30
|
+
/** @private */ private _envRenderTarget1;
|
|
31
|
+
/** @private */ private _envRenderTarget2;
|
|
32
|
+
/** @private */ private _skyAtmosphere;
|
|
33
|
+
/** @private */ private _lastCameraZ;
|
|
34
|
+
/**
|
|
35
|
+
* 天空名称
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @readonly
|
|
38
|
+
*/
|
|
39
|
+
readonly name: string;
|
|
40
|
+
_currentTime: Date;
|
|
41
|
+
_presetWeatherProperties: {
|
|
42
|
+
clear: {
|
|
43
|
+
sunLightIntensity: number;
|
|
44
|
+
skyLightIntensity: number;
|
|
45
|
+
cloudsCoverage: number;
|
|
46
|
+
};
|
|
47
|
+
partlyCloudy: {
|
|
48
|
+
sunLightIntensity: number;
|
|
49
|
+
skyLightIntensity: number;
|
|
50
|
+
cloudsCoverage: number;
|
|
51
|
+
};
|
|
52
|
+
cloudy: {
|
|
53
|
+
sunLightIntensity: number;
|
|
54
|
+
skyLightIntensity: number;
|
|
55
|
+
cloudsCoverage: number;
|
|
56
|
+
};
|
|
57
|
+
overcast: {
|
|
58
|
+
sunLightIntensity: number;
|
|
59
|
+
skyLightIntensity: number;
|
|
60
|
+
cloudsCoverage: number;
|
|
61
|
+
};
|
|
62
|
+
foggy: {
|
|
63
|
+
sunLightIntensity: number;
|
|
64
|
+
skyLightIntensity: number;
|
|
65
|
+
cloudsCoverage: number;
|
|
66
|
+
};
|
|
67
|
+
rainy: {
|
|
68
|
+
sunLightIntensity: number;
|
|
69
|
+
skyLightIntensity: number;
|
|
70
|
+
cloudsCoverage: number;
|
|
71
|
+
};
|
|
72
|
+
snowy: {
|
|
73
|
+
sunLightIntensity: number;
|
|
74
|
+
skyLightIntensity: number;
|
|
75
|
+
cloudsCoverage: number;
|
|
76
|
+
};
|
|
77
|
+
stormy: {
|
|
78
|
+
sunLightIntensity: number;
|
|
79
|
+
skyLightIntensity: number;
|
|
80
|
+
cloudsCoverage: number;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
_upDirection: any;
|
|
84
|
+
_currentParameters: {
|
|
85
|
+
sunDirection: any;
|
|
86
|
+
moonDirection: any;
|
|
87
|
+
transmittanceTexture: null;
|
|
88
|
+
scatteringTexture: null;
|
|
89
|
+
irradianceTexture: null;
|
|
90
|
+
singleMieScatteringTexture: null;
|
|
91
|
+
higherOrderScatteringTexture: null;
|
|
92
|
+
stbnTexture: null;
|
|
93
|
+
overlay: null;
|
|
94
|
+
atmosphereShadow: null;
|
|
95
|
+
atmosphereShadowLength: null;
|
|
96
|
+
sunLight: any;
|
|
97
|
+
skyLight: any;
|
|
98
|
+
worldToECEFMatrix: any;
|
|
99
|
+
correctAltitude: boolean;
|
|
100
|
+
windDirection: any;
|
|
101
|
+
cloudsSpeed: number;
|
|
102
|
+
};
|
|
103
|
+
_engine: any;
|
|
104
|
+
_skyCamera: any;
|
|
105
|
+
_precomputedTexturesGenerator: PrecomputedTexturesGenerator | undefined;
|
|
106
|
+
_skyMaterial: SkyMaterial | undefined;
|
|
107
|
+
_oldToneMappingExposure: any;
|
|
108
|
+
_oldToneMapping: any;
|
|
109
|
+
/**
|
|
110
|
+
* 初始化环境和大气效果
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
initEnv(): void;
|
|
114
|
+
_atmospherePass: AtmospherePostPass | undefined;
|
|
115
|
+
_cloudsPass: CloudsPostPass | undefined;
|
|
116
|
+
_lensFlarePass: any;
|
|
117
|
+
_hasGeneratedTextures: boolean | undefined;
|
|
118
|
+
_syncSkyAndClouds(): void;
|
|
119
|
+
/**
|
|
120
|
+
* 获取纹理资源
|
|
121
|
+
* @internal
|
|
122
|
+
* @returns {Object} 纹理对象列表
|
|
123
|
+
*/
|
|
124
|
+
getTextures(): Object;
|
|
125
|
+
/**
|
|
126
|
+
* 释放环境贴图资源
|
|
127
|
+
* @param {number} type 环境贴图类型
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
|
+
private disposeEnvRenderTarget;
|
|
131
|
+
/**
|
|
132
|
+
* 设置是否启用后处理通道
|
|
133
|
+
* @type {boolean}
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
set enableAtmospherePass(value: boolean);
|
|
137
|
+
/**
|
|
138
|
+
* 获取是否启用后处理通道
|
|
139
|
+
* @type {boolean}
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
get enableAtmospherePass(): boolean;
|
|
143
|
+
/**
|
|
144
|
+
* 设置是否启用体积云效果
|
|
145
|
+
* @type {boolean}
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
set enableCloudsPass(value: boolean);
|
|
149
|
+
/**
|
|
150
|
+
* 获取是否启用体积云效果
|
|
151
|
+
* @type {boolean}
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
get enableCloudsPass(): boolean;
|
|
155
|
+
set enableCloudsShadow(value: boolean);
|
|
156
|
+
get enableCloudsShadow(): boolean;
|
|
157
|
+
/**
|
|
158
|
+
* 天空颜色是否影响场景颜色
|
|
159
|
+
* @type {boolean}
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
162
|
+
set affectWorld(value: boolean);
|
|
163
|
+
/**
|
|
164
|
+
* 天空颜色是否影响场景颜色
|
|
165
|
+
* @type {boolean}
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
get affectWorld(): boolean;
|
|
169
|
+
/**
|
|
170
|
+
* 设置是否实时捕获环境
|
|
171
|
+
* @type {boolean}
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
set realtimeCapture(value: boolean);
|
|
175
|
+
/**
|
|
176
|
+
* 获取是否实时捕获环境
|
|
177
|
+
* @type {boolean}
|
|
178
|
+
* @internal
|
|
179
|
+
*/
|
|
180
|
+
get realtimeCapture(): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* 设置云层覆盖率
|
|
183
|
+
* @type {number}
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
set cloudsCoverage(value: number);
|
|
187
|
+
/**
|
|
188
|
+
* 云层覆盖率,范围0-1
|
|
189
|
+
* @type {number}
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
get cloudsCoverage(): number;
|
|
193
|
+
/**
|
|
194
|
+
* 设置云层移动速度
|
|
195
|
+
* @type {number}
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
set cloudsSpeed(value: number);
|
|
199
|
+
/**
|
|
200
|
+
* 云层移动速度
|
|
201
|
+
* @type {number}
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
get cloudsSpeed(): number;
|
|
205
|
+
set windDirection(value: any);
|
|
206
|
+
get windDirection(): any;
|
|
207
|
+
set cloudsBaseHeight(value: number);
|
|
208
|
+
get cloudsBaseHeight(): number;
|
|
209
|
+
/**
|
|
210
|
+
* 获取向上方向
|
|
211
|
+
* @type {Vector3}
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
get upDirection(): Vector3;
|
|
215
|
+
}
|
|
216
|
+
import { EmptySky } from './EmptySky';
|
|
217
|
+
import { PrecomputedTexturesGenerator } from './sky/PrecomputedTexturesGenerator';
|
|
218
|
+
import { SkyMaterial } from './sky/SkyMaterial';
|
|
219
|
+
import { AtmospherePostPass } from './sky/AtmospherePostPass';
|
|
220
|
+
import { CloudsPostPass } from './clouds/CloudsPostPass';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export class Rain {
|
|
2
|
-
constructor(renderer: any, camera: any);
|
|
2
|
+
constructor(renderer: any, camera: any, options?: {});
|
|
3
|
+
_density: number;
|
|
3
4
|
_clock: any;
|
|
4
5
|
_system: any;
|
|
5
6
|
_emitter: any;
|
|
6
|
-
update: () => void;
|
|
7
|
+
update: (engine: any) => void;
|
|
7
8
|
createRain: () => any;
|
|
8
9
|
createEmitter: () => any;
|
|
10
|
+
set density(value: number);
|
|
11
|
+
get density(): number;
|
|
9
12
|
dispose(): void;
|
|
10
13
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export class Snow {
|
|
2
|
-
constructor(renderer: any, camera: any);
|
|
2
|
+
constructor(renderer: any, camera: any, options?: {});
|
|
3
3
|
_renderer: any;
|
|
4
4
|
_camera: any;
|
|
5
|
+
_density: number;
|
|
5
6
|
_clock: any;
|
|
6
7
|
_system: any;
|
|
7
8
|
_emitter: any;
|
|
8
|
-
update: () => void;
|
|
9
|
+
update: (engine: any) => void;
|
|
9
10
|
createSnow: () => any;
|
|
10
11
|
createEmitter: () => any;
|
|
12
|
+
set density(value: number);
|
|
13
|
+
get density(): number;
|
|
11
14
|
dispose(): void;
|
|
12
15
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 闪电形状
|
|
3
|
+
* *
|
|
4
|
+
* *
|
|
5
|
+
* ***
|
|
6
|
+
* *
|
|
7
|
+
* *
|
|
8
|
+
*/
|
|
9
|
+
export class Thunderstorm {
|
|
10
|
+
constructor(renderer: any, camera: any, options?: {});
|
|
11
|
+
_clock: any;
|
|
12
|
+
_renderer: any;
|
|
13
|
+
_camera: any;
|
|
14
|
+
_lightningInterval: number;
|
|
15
|
+
_lastLightningTime: number;
|
|
16
|
+
_mainLightning: any;
|
|
17
|
+
sceneSize: number;
|
|
18
|
+
_createRainSystem(): any;
|
|
19
|
+
_createLightningEffect(): void;
|
|
20
|
+
_lightningMaterial: LightningMaterial | undefined;
|
|
21
|
+
_lightningContainer: any;
|
|
22
|
+
_generateLightningPath(): any;
|
|
23
|
+
update(): void;
|
|
24
|
+
_updateLightning(delta: any): void;
|
|
25
|
+
_triggerLightning(): void;
|
|
26
|
+
set density(value: any);
|
|
27
|
+
get density(): any;
|
|
28
|
+
_density: any;
|
|
29
|
+
dispose(): void;
|
|
30
|
+
}
|
|
31
|
+
import { LightningMaterial } from '../../threejs/materials/effects/LightningMaterial';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export namespace cascadedShadowMapsDefaults {
|
|
2
|
+
let maxFar: null;
|
|
3
|
+
let farScale: number;
|
|
4
|
+
let splitMode: string;
|
|
5
|
+
let splitLambda: number;
|
|
6
|
+
let margin: number;
|
|
7
|
+
let fade: boolean;
|
|
8
|
+
}
|
|
9
|
+
export class CascadedShadowMaps {
|
|
10
|
+
constructor(options: any);
|
|
11
|
+
cascades: any[];
|
|
12
|
+
mapSize: any;
|
|
13
|
+
maxFar: any;
|
|
14
|
+
farScale: any;
|
|
15
|
+
splitMode: any;
|
|
16
|
+
splitLambda: any;
|
|
17
|
+
margin: any;
|
|
18
|
+
fade: any;
|
|
19
|
+
cameraFrustum: FrustumCorners;
|
|
20
|
+
frusta: any[];
|
|
21
|
+
splits: any[];
|
|
22
|
+
_far: number;
|
|
23
|
+
set cascadeCount(value: number);
|
|
24
|
+
get cascadeCount(): number;
|
|
25
|
+
get far(): number;
|
|
26
|
+
updateIntervals(camera: any): void;
|
|
27
|
+
getFrustumRadius(camera: any, frustum: any): number;
|
|
28
|
+
updateMatrices(camera: any, sunDirection: any, distance?: number): void;
|
|
29
|
+
update(camera: any, sunDirection: any, distance: any): void;
|
|
30
|
+
}
|
|
31
|
+
import { FrustumCorners } from './helpers/FrustumCorners';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class CloudLayer {
|
|
2
|
+
static DEFAULT: CloudLayer;
|
|
3
|
+
constructor(options: any);
|
|
4
|
+
channel: string;
|
|
5
|
+
altitude: number;
|
|
6
|
+
height: number;
|
|
7
|
+
densityScale: number;
|
|
8
|
+
shapeAmount: number;
|
|
9
|
+
shapeDetailAmount: number;
|
|
10
|
+
weatherExponent: number;
|
|
11
|
+
shapeAlteringBias: number;
|
|
12
|
+
coverageFilterWidth: number;
|
|
13
|
+
densityProfile: DensityProfile;
|
|
14
|
+
shadow: boolean;
|
|
15
|
+
set(options: any): this;
|
|
16
|
+
clone(): CloudLayer;
|
|
17
|
+
copy(other: any): this;
|
|
18
|
+
}
|
|
19
|
+
import { DensityProfile } from './DensityProfile';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class CloudLayers extends Array<any> {
|
|
2
|
+
static DEFAULT: CloudLayers;
|
|
3
|
+
constructor(options: any);
|
|
4
|
+
set(options: any): this;
|
|
5
|
+
reset(): this;
|
|
6
|
+
clone(): CloudLayers;
|
|
7
|
+
copy(other: any): this;
|
|
8
|
+
get localWeatherChannels(): any;
|
|
9
|
+
packValues(key: any, result: any): any;
|
|
10
|
+
packSums(a: any, b: any, result: any): any;
|
|
11
|
+
packDensityProfiles(key: any, result: any): any;
|
|
12
|
+
packIntervalHeights(minIntervals: any, maxIntervals: any, baseHeight?: number): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
export namespace cloudsPassOptionsDefaults {
|
|
2
|
+
let resolutionScale: number;
|
|
3
|
+
let width: any;
|
|
4
|
+
let height: any;
|
|
5
|
+
}
|
|
6
|
+
export class CloudsEffect {
|
|
7
|
+
constructor(camera: any, options: any, atmosphere?: AtmosphereParameters);
|
|
8
|
+
camera: any;
|
|
9
|
+
atmosphere: AtmosphereParameters;
|
|
10
|
+
cloudLayers: CloudLayers;
|
|
11
|
+
correctAltitude: boolean;
|
|
12
|
+
localWeatherRepeat: any;
|
|
13
|
+
localWeatherOffset: any;
|
|
14
|
+
shapeRepeat: any;
|
|
15
|
+
shapeOffset: any;
|
|
16
|
+
shapeDetailRepeat: any;
|
|
17
|
+
shapeDetailOffset: any;
|
|
18
|
+
turbulenceRepeat: any;
|
|
19
|
+
worldToECEFMatrix: any;
|
|
20
|
+
ecefToWorldMatrix: any;
|
|
21
|
+
altitudeCorrection: any;
|
|
22
|
+
sunDirection: any;
|
|
23
|
+
parameterUniforms: {
|
|
24
|
+
scatteringCoefficient: any;
|
|
25
|
+
absorptionCoefficient: any;
|
|
26
|
+
coverage: any;
|
|
27
|
+
localWeatherTexture: any;
|
|
28
|
+
localWeatherRepeat: any;
|
|
29
|
+
localWeatherOffset: any;
|
|
30
|
+
shapeTexture: any;
|
|
31
|
+
shapeRepeat: any;
|
|
32
|
+
shapeOffset: any;
|
|
33
|
+
shapeDetailTexture: any;
|
|
34
|
+
shapeDetailRepeat: any;
|
|
35
|
+
shapeDetailOffset: any;
|
|
36
|
+
turbulenceTexture: any;
|
|
37
|
+
turbulenceRepeat: any;
|
|
38
|
+
turbulenceDisplacement: any;
|
|
39
|
+
};
|
|
40
|
+
layerUniforms: {
|
|
41
|
+
minLayerHeights: any;
|
|
42
|
+
maxLayerHeights: any;
|
|
43
|
+
minIntervalHeights: any;
|
|
44
|
+
maxIntervalHeights: any;
|
|
45
|
+
densityScales: any;
|
|
46
|
+
shapeAmounts: any;
|
|
47
|
+
shapeDetailAmounts: any;
|
|
48
|
+
weatherExponents: any;
|
|
49
|
+
shapeAlteringBiases: any;
|
|
50
|
+
coverageFilterWidths: any;
|
|
51
|
+
minHeight: any;
|
|
52
|
+
maxHeight: any;
|
|
53
|
+
shadowTopHeight: any;
|
|
54
|
+
shadowBottomHeight: any;
|
|
55
|
+
shadowLayerMask: any;
|
|
56
|
+
densityProfile: any;
|
|
57
|
+
};
|
|
58
|
+
atmosphereUniforms: {
|
|
59
|
+
bottomRadius: any;
|
|
60
|
+
topRadius: any;
|
|
61
|
+
worldToECEFMatrix: any;
|
|
62
|
+
ecefToWorldMatrix: any;
|
|
63
|
+
altitudeCorrection: any;
|
|
64
|
+
sunDirection: any;
|
|
65
|
+
};
|
|
66
|
+
localWeatherVelocity: any;
|
|
67
|
+
shapeVelocity: any;
|
|
68
|
+
shapeDetailVelocity: any;
|
|
69
|
+
proceduralLocalWeather: any;
|
|
70
|
+
proceduralShape: any;
|
|
71
|
+
proceduralShapeDetail: any;
|
|
72
|
+
proceduralTurbulence: any;
|
|
73
|
+
shadowMaps: CascadedShadowMaps;
|
|
74
|
+
shadowPass: ShadowPass;
|
|
75
|
+
cloudsPass: CloudsPass;
|
|
76
|
+
clouds: any;
|
|
77
|
+
shadow: any;
|
|
78
|
+
_atmosphereOverlay: null;
|
|
79
|
+
_atmosphereShadow: null;
|
|
80
|
+
_atmosphereShadowLength: null;
|
|
81
|
+
resolution: any;
|
|
82
|
+
events: any;
|
|
83
|
+
frame: number;
|
|
84
|
+
shadowCascadeCount: number;
|
|
85
|
+
shadowMapSize: any;
|
|
86
|
+
baseHeight: number;
|
|
87
|
+
skipRendering: boolean;
|
|
88
|
+
onResolutionChange: () => void;
|
|
89
|
+
set mainCamera(value: any);
|
|
90
|
+
get mainCamera(): any;
|
|
91
|
+
initialize(renderer: any, alpha: any, frameBufferType: any): void;
|
|
92
|
+
updateSharedUniforms(deltaTime: any): void;
|
|
93
|
+
updateWeatherTextureChannels(): void;
|
|
94
|
+
updateAtmosphereComposition(): void;
|
|
95
|
+
update(renderer: any, inputBuffer: any, deltaTime?: number): void;
|
|
96
|
+
setSize(baseWidth: any, baseHeight: any): void;
|
|
97
|
+
setDepthTexture(depthTexture: any, depthPacking: any): void;
|
|
98
|
+
set qualityPreset(value: any);
|
|
99
|
+
set localWeatherTexture(value: any);
|
|
100
|
+
get localWeatherTexture(): any;
|
|
101
|
+
set shapeTexture(value: any);
|
|
102
|
+
get shapeTexture(): any;
|
|
103
|
+
set shapeDetailTexture(value: any);
|
|
104
|
+
get shapeDetailTexture(): any;
|
|
105
|
+
set turbulenceTexture(value: any);
|
|
106
|
+
get turbulenceTexture(): any;
|
|
107
|
+
set stbnTexture(value: any);
|
|
108
|
+
get stbnTexture(): any;
|
|
109
|
+
set resolutionScale(value: any);
|
|
110
|
+
get resolutionScale(): any;
|
|
111
|
+
set temporalUpscale(value: boolean);
|
|
112
|
+
get temporalUpscale(): boolean;
|
|
113
|
+
set lightShafts(value: boolean);
|
|
114
|
+
get lightShafts(): boolean;
|
|
115
|
+
set shapeDetail(value: boolean);
|
|
116
|
+
get shapeDetail(): boolean;
|
|
117
|
+
set turbulence(value: boolean);
|
|
118
|
+
get turbulence(): boolean;
|
|
119
|
+
set haze(value: boolean);
|
|
120
|
+
get haze(): boolean;
|
|
121
|
+
set scatteringCoefficient(value: any);
|
|
122
|
+
get scatteringCoefficient(): any;
|
|
123
|
+
set absorptionCoefficient(value: any);
|
|
124
|
+
get absorptionCoefficient(): any;
|
|
125
|
+
set coverage(value: any);
|
|
126
|
+
get coverage(): any;
|
|
127
|
+
set turbulenceDisplacement(value: any);
|
|
128
|
+
get turbulenceDisplacement(): any;
|
|
129
|
+
set scatterAnisotropy1(value: number);
|
|
130
|
+
get scatterAnisotropy1(): number;
|
|
131
|
+
set scatterAnisotropy2(value: number);
|
|
132
|
+
get scatterAnisotropy2(): number;
|
|
133
|
+
set scatterAnisotropyMix(value: number);
|
|
134
|
+
get scatterAnisotropyMix(): number;
|
|
135
|
+
/** @deprecated Use skyLightScale instead. */
|
|
136
|
+
set skyIrradianceScale(value: any);
|
|
137
|
+
/** @deprecated Use skyLightScale instead. */
|
|
138
|
+
get skyIrradianceScale(): any;
|
|
139
|
+
set skyLightScale(value: any);
|
|
140
|
+
get skyLightScale(): any;
|
|
141
|
+
/** @deprecated Use groundBounceScale instead. */
|
|
142
|
+
set groundIrradianceScale(value: any);
|
|
143
|
+
/** @deprecated Use groundBounceScale instead. */
|
|
144
|
+
get groundIrradianceScale(): any;
|
|
145
|
+
set groundBounceScale(value: any);
|
|
146
|
+
get groundBounceScale(): any;
|
|
147
|
+
set powderScale(value: any);
|
|
148
|
+
get powderScale(): any;
|
|
149
|
+
set powderExponent(value: any);
|
|
150
|
+
get powderExponent(): any;
|
|
151
|
+
get atmosphereOverlay(): null;
|
|
152
|
+
get atmosphereShadow(): null;
|
|
153
|
+
get atmosphereShadowLength(): null;
|
|
154
|
+
set irradianceTexture(value: any);
|
|
155
|
+
get irradianceTexture(): any;
|
|
156
|
+
set scatteringTexture(value: any);
|
|
157
|
+
get scatteringTexture(): any;
|
|
158
|
+
set transmittanceTexture(value: any);
|
|
159
|
+
get transmittanceTexture(): any;
|
|
160
|
+
set singleMieScatteringTexture(value: any);
|
|
161
|
+
get singleMieScatteringTexture(): any;
|
|
162
|
+
set higherOrderScatteringTexture(value: any);
|
|
163
|
+
get higherOrderScatteringTexture(): any;
|
|
164
|
+
set ellipsoid(value: any);
|
|
165
|
+
get ellipsoid(): any;
|
|
166
|
+
set sunAngularRadius(value: any);
|
|
167
|
+
get sunAngularRadius(): any;
|
|
168
|
+
}
|
|
169
|
+
import { AtmosphereParameters } from '../sky/AtmosphereParameters';
|
|
170
|
+
import { CloudLayers } from './CloudLayers';
|
|
171
|
+
import { CascadedShadowMaps } from './CascadedShadowMaps';
|
|
172
|
+
import { ShadowPass } from './ShadowPass';
|
|
173
|
+
import { CloudsPass } from './CloudsPass';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export class CloudsMaterial extends AtmosphereMaterialBase {
|
|
2
|
+
constructor({ parameterUniforms, layerUniforms, atmosphereUniforms }: {
|
|
3
|
+
parameterUniforms: any;
|
|
4
|
+
layerUniforms: any;
|
|
5
|
+
atmosphereUniforms: any;
|
|
6
|
+
}, atmosphere?: AtmosphereParameters);
|
|
7
|
+
temporalUpscale: boolean;
|
|
8
|
+
previousProjectionMatrix: any;
|
|
9
|
+
previousViewMatrix: any;
|
|
10
|
+
depthPacking: number;
|
|
11
|
+
localWeatherChannels: string;
|
|
12
|
+
shapeDetail: boolean;
|
|
13
|
+
turbulence: boolean;
|
|
14
|
+
shadowLength: boolean;
|
|
15
|
+
haze: boolean;
|
|
16
|
+
multiScatteringOctaves: number;
|
|
17
|
+
accurateSunSkyLight: boolean;
|
|
18
|
+
accuratePhaseFunction: boolean;
|
|
19
|
+
shadowCascadeCount: number;
|
|
20
|
+
shadowSampleCount: number;
|
|
21
|
+
scatterAnisotropy1: number;
|
|
22
|
+
scatterAnisotropy2: number;
|
|
23
|
+
scatterAnisotropyMix: number;
|
|
24
|
+
copyReprojectionMatrix(camera: any): void;
|
|
25
|
+
setSize(width: any, height: any, targetWidth: any, targetHeight: any): void;
|
|
26
|
+
setShadowSize(width: any, height: any): void;
|
|
27
|
+
set depthBuffer(value: any);
|
|
28
|
+
get depthBuffer(): any;
|
|
29
|
+
/** @deprecated Use accurateSunSkyLight instead. */
|
|
30
|
+
set accurateSunSkyIrradiance(value: boolean);
|
|
31
|
+
/** @deprecated Use accurateSunSkyLight instead. */
|
|
32
|
+
get accurateSunSkyIrradiance(): boolean;
|
|
33
|
+
}
|
|
34
|
+
import { AtmosphereMaterialBase } from '../sky/AtmosphereMaterialBase';
|
|
35
|
+
import { AtmosphereParameters } from '../sky/AtmosphereParameters';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export class CloudsPass extends PassBase {
|
|
2
|
+
constructor({ parameterUniforms, layerUniforms, atmosphereUniforms, ...options }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
parameterUniforms: any;
|
|
5
|
+
layerUniforms: any;
|
|
6
|
+
atmosphereUniforms: any;
|
|
7
|
+
}, atmosphere: any);
|
|
8
|
+
atmosphere: any;
|
|
9
|
+
currentRenderTarget: any;
|
|
10
|
+
currentMaterial: CloudsMaterial;
|
|
11
|
+
currentPass: any;
|
|
12
|
+
resolveRenderTarget: any;
|
|
13
|
+
resolveMaterial: CloudsResolveMaterial;
|
|
14
|
+
resolvePass: any;
|
|
15
|
+
historyRenderTarget: any;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
copyCameraSettings(camera: any): void;
|
|
19
|
+
initialize(renderer: any, alpha: any, frameBufferType: any): void;
|
|
20
|
+
initRenderTargets(options: any): void;
|
|
21
|
+
copyShadow(): void;
|
|
22
|
+
copyReprojection(): void;
|
|
23
|
+
swapBuffers(): void;
|
|
24
|
+
update(renderer: any, frame: any, deltaTime: any): void;
|
|
25
|
+
setSize(width: any, height: any): void;
|
|
26
|
+
setShadowSize(width: any, height: any, depth: any): void;
|
|
27
|
+
setDepthTexture(depthTexture: any, depthPacking: any): void;
|
|
28
|
+
get outputBuffer(): any;
|
|
29
|
+
set shadowBuffer(value: any);
|
|
30
|
+
get shadowBuffer(): any;
|
|
31
|
+
get shadowLengthBuffer(): any;
|
|
32
|
+
set temporalUpscale(value: boolean);
|
|
33
|
+
get temporalUpscale(): boolean;
|
|
34
|
+
set lightShafts(value: boolean);
|
|
35
|
+
get lightShafts(): boolean;
|
|
36
|
+
}
|
|
37
|
+
import { PassBase } from './PassBase';
|
|
38
|
+
import { CloudsMaterial } from './CloudsMaterial';
|
|
39
|
+
import { CloudsResolveMaterial } from './CloudsResolveMaterial';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class CloudsPostPass {
|
|
2
|
+
constructor(camera: any);
|
|
3
|
+
_effect: CloudsEffect;
|
|
4
|
+
initialize(renderer: any, alpha: any, frameBufferType: any): void;
|
|
5
|
+
onFrameUpdate(engine: any, parameters: any): void;
|
|
6
|
+
get effect(): CloudsEffect;
|
|
7
|
+
set baseHeight(value: number);
|
|
8
|
+
get baseHeight(): number;
|
|
9
|
+
}
|
|
10
|
+
import { CloudsEffect } from './CloudsEffect';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class CloudsResolveMaterial {
|
|
2
|
+
constructor({ colorBuffer, depthVelocityBuffer, shadowLengthBuffer, colorHistoryBuffer, shadowLengthHistoryBuffer }?: {
|
|
3
|
+
colorBuffer?: null | undefined;
|
|
4
|
+
depthVelocityBuffer?: null | undefined;
|
|
5
|
+
shadowLengthBuffer?: null | undefined;
|
|
6
|
+
colorHistoryBuffer?: null | undefined;
|
|
7
|
+
shadowLengthHistoryBuffer?: null | undefined;
|
|
8
|
+
});
|
|
9
|
+
temporalUpscale: boolean;
|
|
10
|
+
shadowLength: boolean;
|
|
11
|
+
setSize(width: any, height: any): void;
|
|
12
|
+
onBeforeRender(renderer: any, scene: any, camera: any, geometry: any, object: any, group: any): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class DensityProfile {
|
|
2
|
+
constructor(expTerm?: number, exponent?: number, linearTerm?: number, constantTerm?: number);
|
|
3
|
+
expTerm: number;
|
|
4
|
+
exponent: number;
|
|
5
|
+
linearTerm: number;
|
|
6
|
+
constantTerm: number;
|
|
7
|
+
set(expTerm?: number, exponent?: number, linearTerm?: number, constantTerm?: number): this;
|
|
8
|
+
clone(): DensityProfile;
|
|
9
|
+
copy(other: any): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class Procedural3DTextureBase {
|
|
2
|
+
constructor({ size, fragmentShader }: {
|
|
3
|
+
size: any;
|
|
4
|
+
fragmentShader: any;
|
|
5
|
+
});
|
|
6
|
+
size: any;
|
|
7
|
+
needsRender: boolean;
|
|
8
|
+
material: any;
|
|
9
|
+
mesh: any;
|
|
10
|
+
renderTarget: any;
|
|
11
|
+
camera: any;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
render(renderer: any, deltaTime: any): void;
|
|
14
|
+
get texture(): any;
|
|
15
|
+
}
|