index.d.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. declare module 'babylonjs/additionalPostProcess_imageProcessing' {
  2. class ImageProcessingPostProcess extends PostProcess {
  3. /**
  4. * Default configuration related to image processing available in the PBR Material.
  5. */
  6. protected _imageProcessingConfiguration: ImageProcessingConfiguration;
  7. /**
  8. * Gets the image processing configuration used either in this material.
  9. */
  10. /**
  11. * Sets the Default image processing configuration used either in the this material.
  12. *
  13. * If sets to null, the scene one is in use.
  14. */
  15. imageProcessingConfiguration: ImageProcessingConfiguration;
  16. /**
  17. * Keep track of the image processing observer to allow dispose and replace.
  18. */
  19. private _imageProcessingObserver;
  20. /**
  21. * Attaches a new image processing configuration to the PBR Material.
  22. * @param configuration
  23. */
  24. protected _attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>, doNotBuild?: boolean): void;
  25. /**
  26. * Gets Color curves setup used in the effect if colorCurvesEnabled is set to true .
  27. */
  28. /**
  29. * Sets Color curves setup used in the effect if colorCurvesEnabled is set to true .
  30. */
  31. colorCurves: Nullable<ColorCurves>;
  32. /**
  33. * Gets wether the color curves effect is enabled.
  34. */
  35. /**
  36. * Sets wether the color curves effect is enabled.
  37. */
  38. colorCurvesEnabled: boolean;
  39. /**
  40. * Gets Color grading LUT texture used in the effect if colorGradingEnabled is set to true.
  41. */
  42. /**
  43. * Sets Color grading LUT texture used in the effect if colorGradingEnabled is set to true.
  44. */
  45. colorGradingTexture: Nullable<BaseTexture>;
  46. /**
  47. * Gets wether the color grading effect is enabled.
  48. */
  49. /**
  50. * Gets wether the color grading effect is enabled.
  51. */
  52. colorGradingEnabled: boolean;
  53. /**
  54. * Gets exposure used in the effect.
  55. */
  56. /**
  57. * Sets exposure used in the effect.
  58. */
  59. exposure: number;
  60. /**
  61. * Gets wether tonemapping is enabled or not.
  62. */
  63. /**
  64. * Sets wether tonemapping is enabled or not
  65. */
  66. toneMappingEnabled: boolean;
  67. /**
  68. * Gets contrast used in the effect.
  69. */
  70. /**
  71. * Sets contrast used in the effect.
  72. */
  73. contrast: number;
  74. /**
  75. * Gets Vignette stretch size.
  76. */
  77. /**
  78. * Sets Vignette stretch size.
  79. */
  80. vignetteStretch: number;
  81. /**
  82. * Gets Vignette centre X Offset.
  83. */
  84. /**
  85. * Sets Vignette centre X Offset.
  86. */
  87. vignetteCentreX: number;
  88. /**
  89. * Gets Vignette centre Y Offset.
  90. */
  91. /**
  92. * Sets Vignette centre Y Offset.
  93. */
  94. vignetteCentreY: number;
  95. /**
  96. * Gets Vignette weight or intensity of the vignette effect.
  97. */
  98. /**
  99. * Sets Vignette weight or intensity of the vignette effect.
  100. */
  101. vignetteWeight: number;
  102. /**
  103. * Gets Color of the vignette applied on the screen through the chosen blend mode (vignetteBlendMode)
  104. * if vignetteEnabled is set to true.
  105. */
  106. /**
  107. * Sets Color of the vignette applied on the screen through the chosen blend mode (vignetteBlendMode)
  108. * if vignetteEnabled is set to true.
  109. */
  110. vignetteColor: Color4;
  111. /**
  112. * Gets Camera field of view used by the Vignette effect.
  113. */
  114. /**
  115. * Sets Camera field of view used by the Vignette effect.
  116. */
  117. vignetteCameraFov: number;
  118. /**
  119. * Gets the vignette blend mode allowing different kind of effect.
  120. */
  121. /**
  122. * Sets the vignette blend mode allowing different kind of effect.
  123. */
  124. vignetteBlendMode: number;
  125. /**
  126. * Gets wether the vignette effect is enabled.
  127. */
  128. /**
  129. * Sets wether the vignette effect is enabled.
  130. */
  131. vignetteEnabled: boolean;
  132. private _fromLinearSpace;
  133. /**
  134. * Gets wether the input of the processing is in Gamma or Linear Space.
  135. */
  136. /**
  137. * Sets wether the input of the processing is in Gamma or Linear Space.
  138. */
  139. fromLinearSpace: boolean;
  140. /**
  141. * Defines cache preventing GC.
  142. */
  143. private _defines;
  144. constructor(name: string, options: number | PostProcessOptions, camera?: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType?: number, imageProcessingConfiguration?: ImageProcessingConfiguration);
  145. getClassName(): string;
  146. protected _updateParameters(): void;
  147. dispose(camera?: Camera): void;
  148. }
  149. }
  150. import {EffectFallbacks,EffectCreationOptions,Effect,Nullable,float,double,int,FloatArray,IndicesArray,KeyboardEventTypes,KeyboardInfo,KeyboardInfoPre,PointerEventTypes,PointerInfoBase,PointerInfoPre,PointerInfo,ToGammaSpace,ToLinearSpace,Epsilon,Color3,Color4,Vector2,Vector3,Vector4,ISize,Size,Quaternion,Matrix,Plane,Viewport,Frustum,Space,Axis,BezierCurve,Orientation,Angle,Arc2,Path2,Path3D,Curve3,PositionNormalVertex,PositionNormalTextureVertex,Tmp,Scalar,expandToProperty,serialize,serializeAsTexture,serializeAsColor3,serializeAsFresnelParameters,serializeAsVector2,serializeAsVector3,serializeAsMeshReference,serializeAsColorCurves,serializeAsColor4,serializeAsImageProcessingConfiguration,serializeAsQuaternion,SerializationHelper,EventState,Observer,MultiObserver,Observable,SmartArray,SmartArrayNoDuplicate,IAnimatable,LoadFileError,RetryStrategy,IFileRequest,Tools,PerfCounter,className,AsyncLoop,_AlphaState,_DepthCullingState,_StencilState,InstancingAttributeInfo,RenderTargetCreationOptions,EngineCapabilities,EngineOptions,IDisplayChangedEventArgs,Engine,Node,BoundingSphere,BoundingBox,ICullable,BoundingInfo,TransformNode,AbstractMesh,Light,Camera,RenderingManager,RenderingGroup,IDisposable,IActiveMeshCandidateProvider,RenderingGroupInfo,Scene,Buffer,VertexBuffer,InternalTexture,BaseTexture,Texture,_InstancesBatch,Mesh,BaseSubMesh,SubMesh,MaterialDefines,Material,UniformBuffer,IGetSetVerticesData,VertexData,Geometry,_PrimitiveGeometry,RibbonGeometry,BoxGeometry,SphereGeometry,DiscGeometry,CylinderGeometry,TorusGeometry,GroundGeometry,TiledGroundGeometry,PlaneGeometry,TorusKnotGeometry,PostProcessManager,PerformanceMonitor,RollingAverage,IImageProcessingConfigurationDefines,ImageProcessingConfiguration,ColorGradingTexture,ColorCurves,Behavior,MaterialHelper,PushMaterial,StandardMaterialDefines,StandardMaterial} from 'babylonjs/core';
  151. import {EngineInstrumentation,SceneInstrumentation,_TimeToken} from 'babylonjs/instrumentation';
  152. import {Particle,IParticleSystem,ParticleSystem,BoxParticleEmitter,ConeParticleEmitter,SphereParticleEmitter,SphereDirectedParticleEmitter,IParticleEmitterType} from 'babylonjs/particles';
  153. import {GPUParticleSystem} from 'babylonjs/gpuParticles';
  154. import {FramingBehavior,BouncingBehavior,AutoRotationBehavior} from 'babylonjs/cameraBehaviors';
  155. import {NullEngineOptions,NullEngine} from 'babylonjs/nullEngine';
  156. import {TextureTools} from 'babylonjs/textureTools';
  157. import {SolidParticle,ModelShape,DepthSortedParticle,SolidParticleSystem} from 'babylonjs/solidParticles';
  158. import {Collider,CollisionWorker,ICollisionCoordinator,SerializedMesh,SerializedSubMesh,SerializedGeometry,BabylonMessage,SerializedColliderToWorker,WorkerTaskType,WorkerReply,CollisionReplyPayload,InitPayload,CollidePayload,UpdatePayload,WorkerReplyType,CollisionCoordinatorWorker,CollisionCoordinatorLegacy} from 'babylonjs/collisions';
  159. import {IntersectionInfo,PickingInfo,Ray} from 'babylonjs/picking';
  160. import {SpriteManager,Sprite} from 'babylonjs/sprites';
  161. import {AnimationRange,AnimationEvent,PathCursor,Animation,TargetedAnimation,AnimationGroup,RuntimeAnimation,Animatable,IEasingFunction,EasingFunction,CircleEase,BackEase,BounceEase,CubicEase,ElasticEase,ExponentialEase,PowerEase,QuadraticEase,QuarticEase,QuinticEase,SineEase,BezierCurveEase} from 'babylonjs/animations';
  162. import {Condition,ValueCondition,PredicateCondition,StateCondition,Action,ActionEvent,ActionManager,InterpolateValueAction,SwitchBooleanAction,SetStateAction,SetValueAction,IncrementValueAction,PlayAnimationAction,StopAnimationAction,DoNothingAction,CombineAction,ExecuteCodeAction,SetParentAction,PlaySoundAction,StopSoundAction} from 'babylonjs/actions';
  163. import {GroundMesh,InstancedMesh,LinesMesh} from 'babylonjs/additionalMeshes';
  164. import {ShaderMaterial} from 'babylonjs/shaderMaterial';
  165. import {MeshBuilder} from 'babylonjs/meshBuilder';
  166. import {PBRBaseMaterial,PBRBaseSimpleMaterial,PBRMaterial,PBRMetallicRoughnessMaterial,PBRSpecularGlossinessMaterial} from 'babylonjs/pbrMaterial';
  167. import {CameraInputTypes,ICameraInput,CameraInputsMap,CameraInputsManager,TargetCamera} from 'babylonjs/targetCamera';
  168. import {ArcRotateCameraKeyboardMoveInput,ArcRotateCameraMouseWheelInput,ArcRotateCameraPointersInput,ArcRotateCameraInputsManager,ArcRotateCamera} from 'babylonjs/arcRotateCamera';
  169. import {FreeCameraMouseInput,FreeCameraKeyboardMoveInput,FreeCameraInputsManager,FreeCamera} from 'babylonjs/freeCamera';
  170. import {HemisphericLight} from 'babylonjs/hemisphericLight';
  171. import {IShadowLight,ShadowLight,PointLight} from 'babylonjs/pointLight';
  172. import {DirectionalLight} from 'babylonjs/directionalLight';
  173. import {SpotLight} from 'babylonjs/spotLight';
  174. import {CubeTexture,RenderTargetTexture,IMultiRenderTargetOptions,MultiRenderTarget,MirrorTexture,RefractionTexture,DynamicTexture,VideoTexture,RawTexture} from 'babylonjs/additionalTextures';
  175. import {AudioEngine,Sound,SoundTrack,Analyser} from 'babylonjs/audio';
  176. import {ILoadingScreen,DefaultLoadingScreen,SceneLoaderProgressEvent,ISceneLoaderPluginExtensions,ISceneLoaderPluginFactory,ISceneLoaderPlugin,ISceneLoaderPluginAsync,SceneLoader,FilesInput} from 'babylonjs/loader';
  177. import {IShadowGenerator,ShadowGenerator} from 'babylonjs/shadows';
  178. import {StringDictionary} from 'babylonjs/stringDictionary';
  179. import {Tags,AndOrNotEvaluator} from 'babylonjs/userData';
  180. import {FresnelParameters} from 'babylonjs/fresnel';
  181. import {MultiMaterial} from 'babylonjs/multiMaterial';
  182. import {Database} from 'babylonjs/offline';
  183. import {FreeCameraTouchInput,TouchCamera} from 'babylonjs/touchCamera';
  184. import {ProceduralTexture,CustomProceduralTexture} from 'babylonjs/procedural';
  185. import {FreeCameraGamepadInput,ArcRotateCameraGamepadInput,GamepadManager,StickValues,GamepadButtonChanges,Gamepad,GenericPad,Xbox360Button,Xbox360Dpad,Xbox360Pad,PoseEnabledControllerType,MutableGamepadButton,ExtendedGamepadButton,PoseEnabledControllerHelper,PoseEnabledController,WebVRController,OculusTouchController,ViveController,GenericController,WindowsMotionController} from 'babylonjs/gamepad';
  186. import {FollowCamera,ArcFollowCamera,UniversalCamera,GamepadCamera} from 'babylonjs/additionalCameras';
  187. import {DepthRenderer} from 'babylonjs/depthRenderer';
  188. import {GeometryBufferRenderer} from 'babylonjs/geometryBufferRenderer';
  189. import {PostProcessOptions,PostProcess,PassPostProcess} from 'babylonjs/postProcesses';
  190. import {BlurPostProcess} from 'babylonjs/additionalPostProcess_blur';
  191. import {FxaaPostProcess} from 'babylonjs/additionalPostProcess_fxaa';
  192. import {HighlightsPostProcess} from 'babylonjs/additionalPostProcess_highlights';
  193. import {RefractionPostProcess,BlackAndWhitePostProcess,ConvolutionPostProcess,FilterPostProcess,VolumetricLightScatteringPostProcess,ColorCorrectionPostProcess,TonemappingOperator,TonemapPostProcess,DisplayPassPostProcess,ImageProcessingPostProcess} from 'babylonjs/additionalPostProcesses';
  194. import {PostProcessRenderPipelineManager,PostProcessRenderPass,PostProcessRenderEffect,PostProcessRenderPipeline} from 'babylonjs/renderingPipeline';
  195. import {SSAORenderingPipeline,SSAO2RenderingPipeline,LensRenderingPipeline,StandardRenderingPipeline} from 'babylonjs/additionalRenderingPipeline';
  196. import {DefaultRenderingPipeline} from 'babylonjs/defaultRenderingPipeline';
  197. import {Bone,BoneIKController,BoneLookController,Skeleton} from 'babylonjs/bones';
  198. import {SphericalPolynomial,SphericalHarmonics,CubeMapToSphericalPolynomialTools,CubeMapInfo,PanoramaToCubeMapTools,HDRInfo,HDRTools,HDRCubeTexture} from 'babylonjs/hdr';
  199. import {CSG} from 'babylonjs/csg';
  200. import {Polygon,PolygonMeshBuilder} from 'babylonjs/polygonMesh';
  201. import {LensFlare,LensFlareSystem} from 'babylonjs/lensFlares';
  202. import {PhysicsJointData,PhysicsJoint,DistanceJoint,MotorEnabledJoint,HingeJoint,Hinge2Joint,IMotorEnabledJoint,DistanceJointData,SpringJointData,PhysicsImpostorParameters,IPhysicsEnabledObject,PhysicsImpostor,PhysicsImpostorJoint,PhysicsEngine,IPhysicsEnginePlugin,PhysicsHelper,PhysicsRadialExplosionEvent,PhysicsGravitationalFieldEvent,PhysicsUpdraftEvent,PhysicsVortexEvent,PhysicsRadialImpulseFalloff,PhysicsUpdraftMode,PhysicsForceAndContactPoint,PhysicsRadialExplosionEventData,PhysicsGravitationalFieldEventData,PhysicsUpdraftEventData,PhysicsVortexEventData,CannonJSPlugin,OimoJSPlugin} from 'babylonjs/physics';
  203. import {TGATools,DDSInfo,DDSTools,KhronosTextureContainer} from 'babylonjs/textureFormats';
  204. import {Debug,RayHelper,DebugLayer,BoundingBoxRenderer} from 'babylonjs/debug';
  205. import {MorphTarget,MorphTargetManager} from 'babylonjs/morphTargets';
  206. import {IOctreeContainer,Octree,OctreeBlock} from 'babylonjs/octrees';
  207. import {SIMDHelper} from 'babylonjs/simd';
  208. import {VRDistortionCorrectionPostProcess,AnaglyphPostProcess,StereoscopicInterlacePostProcess,FreeCameraDeviceOrientationInput,ArcRotateCameraVRDeviceOrientationInput,VRCameraMetrics,DevicePose,PoseControlled,WebVROptions,WebVRFreeCamera,DeviceOrientationCamera,VRDeviceOrientationFreeCamera,VRDeviceOrientationGamepadCamera,VRDeviceOrientationArcRotateCamera,AnaglyphFreeCamera,AnaglyphArcRotateCamera,AnaglyphGamepadCamera,AnaglyphUniversalCamera,StereoscopicFreeCamera,StereoscopicArcRotateCamera,StereoscopicGamepadCamera,StereoscopicUniversalCamera,VRTeleportationOptions,VRExperienceHelperOptions,VRExperienceHelper} from 'babylonjs/vr';
  209. import {JoystickAxis,VirtualJoystick,VirtualJoysticksCamera,FreeCameraVirtualJoystickInput} from 'babylonjs/virtualJoystick';
  210. import {ISimplifier,ISimplificationSettings,SimplificationSettings,ISimplificationTask,SimplificationQueue,SimplificationType,DecimationTriangle,DecimationVertex,QuadraticMatrix,Reference,QuadraticErrorSimplification,MeshLODLevel,SceneOptimization,TextureOptimization,HardwareScalingOptimization,ShadowsOptimization,PostProcessesOptimization,LensFlaresOptimization,ParticlesOptimization,RenderTargetsOptimization,MergeMeshesOptimization,SceneOptimizerOptions,SceneOptimizer} from 'babylonjs/optimizations';
  211. import {OutlineRenderer,EdgesRenderer,IHighlightLayerOptions,HighlightLayer} from 'babylonjs/highlights';
  212. import {SceneSerializer} from 'babylonjs/serialization';
  213. import {AssetTaskState,AbstractAssetTask,IAssetsProgressEvent,AssetsProgressEvent,MeshAssetTask,TextFileAssetTask,BinaryFileAssetTask,ImageAssetTask,ITextureAssetTask,TextureAssetTask,CubeTextureAssetTask,HDRCubeTextureAssetTask,AssetsManager} from 'babylonjs/assetsManager';
  214. import {ReflectionProbe} from 'babylonjs/probes';
  215. import {BackgroundMaterial} from 'babylonjs/backgroundMaterial';
  216. import {Layer} from 'babylonjs/layer';
  217. import {IEnvironmentHelperOptions,EnvironmentHelper} from 'babylonjs/environmentHelper';