diff --git a/package.json b/package.json index 15d21271..768595cc 100644 --- a/package.json +++ b/package.json @@ -47,11 +47,11 @@ "devDependencies": { "@babel/core": "^7.11.6", "@babel/plugin-proposal-class-properties": "^7.10.4", - "@babylonjs/core": "^4.1.0", - "@babylonjs/gui": "^4.1.0", - "@babylonjs/inspector": "^4.1.0", - "@babylonjs/loaders": "^4.1.0", - "@babylonjs/procedural-textures": "^4.1.0", + "@babylonjs/core": "^4.2.0-rc.6", + "@babylonjs/gui": "^4.2.0-rc.6", + "@babylonjs/inspector": "4.2.0-rc.6", + "@babylonjs/loaders": "4.2.0-rc.6", + "@babylonjs/procedural-textures": "4.2.0-rc.6", "@inlet/react-pixi": "^1.2.8", "@rollup/plugin-json": "^4.0.2", "@rollup/plugin-typescript": "^4.0.0", diff --git a/src/customHosts/LoadedModel.ts b/src/customHosts/LoadedModel.ts index e091413e..d45cbd69 100644 --- a/src/customHosts/LoadedModel.ts +++ b/src/customHosts/LoadedModel.ts @@ -1,4 +1,4 @@ -import { IParticleSystem, Skeleton, AnimationGroup, AbstractMesh, Nullable, Vector3, BoundingInfo, SceneLoaderProgressEvent } from "@babylonjs/core" +import { IParticleSystem, Skeleton, AnimationGroup, AbstractMesh, Nullable, Vector3, BoundingInfo, ISceneLoaderProgressEvent } from "@babylonjs/core" import "@babylonjs/loaders" export enum LoaderStatus { diff --git a/src/customHosts/ModelLifecycleListener.ts b/src/customHosts/ModelLifecycleListener.ts index 8399786b..ba877e1b 100644 --- a/src/customHosts/ModelLifecycleListener.ts +++ b/src/customHosts/ModelLifecycleListener.ts @@ -8,7 +8,7 @@ import { Nullable, ISceneLoaderPlugin, ISceneLoaderPluginAsync, - SceneLoaderProgressEvent + ISceneLoaderProgressEvent } from "@babylonjs/core" import "@babylonjs/loaders" import { applyUpdateToInstance } from "../UpdateInstance" @@ -99,7 +99,7 @@ export default class ModelLifecycleListener implements LifecycleListener { + (event: ISceneLoaderProgressEvent): void => { if (this.props.onLoadProgress) { this.props.onLoadProgress(event) } diff --git a/src/generatedCode.ts b/src/generatedCode.ts index 410ec359..0dc112c2 100644 --- a/src/generatedCode.ts +++ b/src/generatedCode.ts @@ -1,6 +1,6 @@ import { PropsHandler, PropertyUpdate, HasPropsHandlers, checkColor3Diff, checkColor4Diff, checkControlDiff, checkFresnelParametersDiff, checkLambdaDiff, checkMethodDiff, checkNumericArrayDiff, checkObjectDiff, checkObservableDiff, checkPrimitiveDiff, checkQuaternionDiff, checkTextureDiff, checkVector3Diff } from "./PropsHandler"; import { CreatedInstanceMetadata } from "./CreatedInstance"; -import { FiberNodeProps, FiberTransformNodeProps, FiberAbstractMeshProps, FiberInstancedMeshProps, FiberInstancedLinesMeshProps, FiberMeshProps, FiberLinesMeshProps, FiberGroundMeshProps, FiberTrailMeshProps, FiberCameraProps, FiberTargetCameraProps, FiberFreeCameraProps, FiberTouchCameraProps, FiberUniversalCameraProps, FiberGamepadCameraProps, FiberAnaglyphGamepadCameraProps, FiberStereoscopicGamepadCameraProps, FiberAnaglyphUniversalCameraProps, FiberStereoscopicUniversalCameraProps, FiberDeviceOrientationCameraProps, FiberVRDeviceOrientationFreeCameraProps, FiberVRDeviceOrientationGamepadCameraProps, FiberAnaglyphFreeCameraProps, FiberStereoscopicFreeCameraProps, FiberVirtualJoysticksCameraProps, FiberWebVRFreeCameraProps, FiberWebXRCameraProps, FiberArcRotateCameraProps, FiberAnaglyphArcRotateCameraProps, FiberStereoscopicArcRotateCameraProps, FiberVRDeviceOrientationArcRotateCameraProps, FiberFlyCameraProps, FiberFollowCameraProps, FiberArcFollowCameraProps, FiberMaterialProps, FiberShaderMaterialProps, FiberMultiMaterialProps, FiberPushMaterialProps, FiberStandardMaterialProps, FiberBackgroundMaterialProps, FiberPBRBaseMaterialProps, FiberPBRBaseSimpleMaterialProps, FiberPBRMetallicRoughnessMaterialProps, FiberPBRSpecularGlossinessMaterialProps, FiberPBRMaterialProps, FiberNodeMaterialProps, FiberFluentMaterialProps, FiberLightProps, FiberShadowLightProps, FiberDirectionalLightProps, FiberPointLightProps, FiberSpotLightProps, FiberHemisphericLightProps, FiberControlProps, FiberContainerProps, FiberRectangleProps, FiberButtonProps, FiberSelectionPanelProps, FiberScrollViewerProps, FiberStackPanelProps, FiberVirtualKeyboardProps, FiberEllipseProps, FiberGridProps, Fiber_ScrollViewerWindowProps, FiberTextBlockProps, FiberImageProps, FiberCheckboxProps, FiberColorPickerProps, FiberInputTextProps, FiberInputPasswordProps, FiberLineProps, FiberMultiLineProps, FiberRadioButtonProps, FiberBaseSliderProps, FiberScrollBarProps, FiberImageScrollBarProps, FiberSliderProps, FiberImageBasedSliderProps, FiberDisplayGridProps, FiberControl3DProps, FiberContainer3DProps, FiberVolumeBasedPanelProps, FiberCylinderPanelProps, FiberPlanePanelProps, FiberScatterPanelProps, FiberSpherePanelProps, FiberStackPanel3DProps, FiberAbstractButton3DProps, FiberButton3DProps, FiberHolographicButtonProps, FiberMeshButton3DProps, FiberEffectLayerProps, FiberGlowLayerProps, FiberHighlightLayerProps, FiberBaseTextureProps, FiberCubeTextureProps, FiberRawCubeTextureProps, FiberTextureProps, FiberRawTextureProps, FiberProceduralTextureProps, FiberCustomProceduralTextureProps, FiberNoiseProceduralTextureProps, FiberRenderTargetTextureProps, FiberMirrorTextureProps, FiberMultiRenderTargetProps, FiberRefractionTextureProps, FiberMultiviewRenderTargetProps, FiberVideoTextureProps, FiberDynamicTextureProps, FiberAdvancedDynamicTextureProps, FiberRawTexture3DProps, FiberRawTexture2DArrayProps, FiberColorGradingTextureProps, FiberEquiRectangularCubeTextureProps, FiberHDRCubeTextureProps, FiberHtmlElementTextureProps, FiberGUI3DManagerProps, FiberShadowGeneratorProps, FiberCascadedShadowGeneratorProps, FiberEnvironmentHelperProps, FiberPhysicsImpostorProps, FiberVRExperienceHelperProps, FiberDynamicTerrainProps, FiberPointsCloudSystemProps, FiberAutoRotationBehaviorProps, FiberBouncingBehaviorProps, FiberFramingBehaviorProps, FiberAttachToBoxBehaviorProps, FiberFadeInOutBehaviorProps, FiberMultiPointerScaleBehaviorProps, FiberPointerDragBehaviorProps, FiberSixDofDragBehaviorProps, FiberSceneProps } from "./generatedProps"; +import { FiberNodeProps, FiberTransformNodeProps, FiberAbstractMeshProps, FiberInstancedMeshProps, FiberInstancedLinesMeshProps, FiberMeshProps, FiberLinesMeshProps, FiberGroundMeshProps, FiberTrailMeshProps, FiberCameraProps, FiberTargetCameraProps, FiberFreeCameraProps, FiberTouchCameraProps, FiberUniversalCameraProps, FiberGamepadCameraProps, FiberAnaglyphGamepadCameraProps, FiberStereoscopicGamepadCameraProps, FiberAnaglyphUniversalCameraProps, FiberStereoscopicUniversalCameraProps, FiberDeviceOrientationCameraProps, FiberVRDeviceOrientationFreeCameraProps, FiberVRDeviceOrientationGamepadCameraProps, FiberAnaglyphFreeCameraProps, FiberStereoscopicFreeCameraProps, FiberVirtualJoysticksCameraProps, FiberWebVRFreeCameraProps, FiberWebXRCameraProps, FiberArcRotateCameraProps, FiberAnaglyphArcRotateCameraProps, FiberStereoscopicArcRotateCameraProps, FiberVRDeviceOrientationArcRotateCameraProps, FiberFlyCameraProps, FiberFollowCameraProps, FiberArcFollowCameraProps, FiberMaterialProps, FiberPushMaterialProps, FiberNodeMaterialProps, FiberStandardMaterialProps, FiberBackgroundMaterialProps, FiberPBRBaseMaterialProps, FiberPBRBaseSimpleMaterialProps, FiberPBRMetallicRoughnessMaterialProps, FiberPBRSpecularGlossinessMaterialProps, FiberPBRMaterialProps, FiberFluentMaterialProps, FiberShaderMaterialProps, FiberMultiMaterialProps, FiberLightProps, FiberShadowLightProps, FiberDirectionalLightProps, FiberPointLightProps, FiberSpotLightProps, FiberHemisphericLightProps, FiberControlProps, FiberContainerProps, FiberRectangleProps, FiberButtonProps, FiberSelectionPanelProps, FiberScrollViewerProps, FiberStackPanelProps, FiberVirtualKeyboardProps, FiberEllipseProps, FiberGridProps, Fiber_ScrollViewerWindowProps, FiberTextBlockProps, FiberImageProps, FiberCheckboxProps, FiberColorPickerProps, FiberInputTextProps, FiberInputPasswordProps, FiberLineProps, FiberMultiLineProps, FiberRadioButtonProps, FiberBaseSliderProps, FiberScrollBarProps, FiberImageScrollBarProps, FiberSliderProps, FiberImageBasedSliderProps, FiberDisplayGridProps, FiberControl3DProps, FiberContainer3DProps, FiberVolumeBasedPanelProps, FiberCylinderPanelProps, FiberPlanePanelProps, FiberScatterPanelProps, FiberSpherePanelProps, FiberStackPanel3DProps, FiberAbstractButton3DProps, FiberButton3DProps, FiberHolographicButtonProps, FiberMeshButton3DProps, FiberEffectLayerProps, FiberGlowLayerProps, FiberHighlightLayerProps, FiberThinTextureProps, FiberBaseTextureProps, FiberCubeTextureProps, FiberRawCubeTextureProps, FiberTextureProps, FiberRawTextureProps, FiberProceduralTextureProps, FiberCustomProceduralTextureProps, FiberNoiseProceduralTextureProps, FiberRenderTargetTextureProps, FiberMirrorTextureProps, FiberMultiRenderTargetProps, FiberRefractionTextureProps, FiberMultiviewRenderTargetProps, FiberVideoTextureProps, FiberDynamicTextureProps, FiberAdvancedDynamicTextureProps, FiberRawTexture2DArrayProps, FiberRawTexture3DProps, FiberColorGradingTextureProps, FiberEquiRectangularCubeTextureProps, FiberHDRCubeTextureProps, FiberHtmlElementTextureProps, FiberGUI3DManagerProps, FiberShadowGeneratorProps, FiberCascadedShadowGeneratorProps, FiberEnvironmentHelperProps, FiberPhysicsImpostorProps, FiberVRExperienceHelperProps, FiberDynamicTerrainProps, FiberPointsCloudSystemProps, FiberAutoRotationBehaviorProps, FiberBouncingBehaviorProps, FiberFramingBehaviorProps, FiberAttachToBoxBehaviorProps, FiberFadeInOutBehaviorProps, FiberMultiPointerScaleBehaviorProps, FiberPointerDragBehaviorProps, FiberSixDofDragBehaviorProps, FiberSceneProps } from "./generatedProps"; import { DynamicTerrain as ExtensionsDynamicTerrain } from "./extensions/DynamicTerrain"; import { AbstractScene as BabylonjsCoreAbstractScene } from "@babylonjs/core/abstractScene"; import { Scene as BabylonjsCoreScene } from "@babylonjs/core/scene"; @@ -12,8 +12,8 @@ import { EnvironmentHelper as BabylonjsCoreEnvironmentHelper, IEnvironmentHelper import { EffectLayer as BabylonjsCoreEffectLayer } from "@babylonjs/core/Layers/effectLayer"; import { Light as BabylonjsCoreLight } from "@babylonjs/core/Lights/light"; import { SceneLoaderAnimationGroupLoadingMode as BabylonjsCoreSceneLoaderAnimationGroupLoadingMode } from "@babylonjs/core/Loading/sceneLoader"; -import { Material as BabylonjsCoreMaterial } from "@babylonjs/core/Materials/material"; -import { Space as BabylonjsCoreSpace } from "@babylonjs/core/Maths/math.axis"; +import { Material as BabylonjsCoreMaterial, ICustomShaderNameResolveOptions as BabylonjsCoreICustomShaderNameResolveOptions } from "@babylonjs/core/Materials/material"; +import { Space as BabylonjsCoreSpace, Coordinate as BabylonjsCoreCoordinate } from "@babylonjs/core/Maths/math.axis"; import { Orientation as BabylonjsCoreOrientation } from "@babylonjs/core/Maths/math.path"; import { AbstractMesh as BabylonjsCoreAbstractMesh } from "@babylonjs/core/Meshes/abstractMesh"; import { Mesh as BabylonjsCoreMesh } from "@babylonjs/core/Meshes/mesh"; @@ -21,6 +21,7 @@ import { MeshBuilder as BabylonjsCoreMeshBuilder } from "@babylonjs/core/Meshes/ import { TransformNode as BabylonjsCoreTransformNode } from "@babylonjs/core/Meshes/transformNode"; import { AssetTaskState as BabylonjsCoreAssetTaskState } from "@babylonjs/core/Misc/assetsManager"; import { InspectableType as BabylonjsCoreInspectableType, IInspectable as BabylonjsCoreIInspectable } from "@babylonjs/core/Misc/iInspectable"; +import { TimerState as BabylonjsCoreTimerState } from "@babylonjs/core/Misc/timer"; import { JoystickAxis as BabylonjsCoreJoystickAxis } from "@babylonjs/core/Misc/virtualJoystick"; import { PointsCloudSystem as BabylonjsCorePointsCloudSystem, PointColor as BabylonjsCorePointColor } from "@babylonjs/core/Particles/pointsCloudSystem"; import { SubEmitterType as BabylonjsCoreSubEmitterType } from "@babylonjs/core/Particles/subEmitter"; @@ -28,7 +29,7 @@ import { PhysicsRadialImpulseFalloff as BabylonjsCorePhysicsRadialImpulseFalloff import { PhysicsImpostor as BabylonjsCorePhysicsImpostor, IPhysicsEnabledObject as BabylonjsCoreIPhysicsEnabledObject, PhysicsImpostorParameters as BabylonjsCorePhysicsImpostorParameters } from "@babylonjs/core/Physics/physicsImpostor"; import { DepthOfFieldEffectBlurLevel as BabylonjsCoreDepthOfFieldEffectBlurLevel } from "@babylonjs/core/PostProcesses/depthOfFieldEffect"; import { TonemappingOperator as BabylonjsCoreTonemappingOperator } from "@babylonjs/core/PostProcesses/tonemapPostProcess"; -import { WebXRState as BabylonjsCoreWebXRState } from "@babylonjs/core/XR/webXRTypes"; +import { WebXRState as BabylonjsCoreWebXRState, WebXRTrackingState as BabylonjsCoreWebXRTrackingState } from "@babylonjs/core/XR/webXRTypes"; import { AdvancedDynamicTexture as BabylonjsGuiAdvancedDynamicTexture, IFocusableControl as BabylonjsGuiIFocusableControl } from "@babylonjs/gui/2D/advancedDynamicTexture"; import { GUI3DManager as BabylonjsGuiGUI3DManager } from "@babylonjs/gui/3D/gui3DManager"; import { AutoRotationBehavior as BabylonjsCoreAutoRotationBehavior } from "@babylonjs/core/Behaviors/Cameras/autoRotationBehavior"; @@ -40,12 +41,15 @@ import { MultiPointerScaleBehavior as BabylonjsCoreMultiPointerScaleBehavior } f import { PointerDragBehavior as BabylonjsCorePointerDragBehavior } from "@babylonjs/core/Behaviors/Meshes/pointerDragBehavior"; import { SixDofDragBehavior as BabylonjsCoreSixDofDragBehavior } from "@babylonjs/core/Behaviors/Meshes/sixDofDragBehavior"; import { VRExperienceHelper as BabylonjsCoreVRExperienceHelper, OnAfterEnteringVRObservableEvent as BabylonjsCoreOnAfterEnteringVRObservableEvent, VRExperienceHelperOptions as BabylonjsCoreVRExperienceHelperOptions, VRTeleportationOptions as BabylonjsCoreVRTeleportationOptions } from "@babylonjs/core/Cameras/VR/vrExperienceHelper"; +import { DeviceType as BabylonjsCoreDeviceType, PointerInput as BabylonjsCorePointerInput, DualShockInput as BabylonjsCoreDualShockInput, XboxInput as BabylonjsCoreXboxInput, SwitchInput as BabylonjsCoreSwitchInput } from "@babylonjs/core/DeviceInput/InputDevices/deviceEnums"; import { PoseEnabledControllerType as BabylonjsCorePoseEnabledControllerType } from "@babylonjs/core/Gamepads/Controllers/poseEnabledController"; import { CascadedShadowGenerator as BabylonjsCoreCascadedShadowGenerator } from "@babylonjs/core/Lights/Shadows/cascadedShadowGenerator"; import { ShadowGenerator as BabylonjsCoreShadowGenerator, ICustomShaderOptions as BabylonjsCoreICustomShaderOptions } from "@babylonjs/core/Lights/Shadows/shadowGenerator"; import { NodeMaterialConnectionPointCompatibilityStates as BabylonjsCoreNodeMaterialConnectionPointCompatibilityStates, NodeMaterialConnectionPointDirection as BabylonjsCoreNodeMaterialConnectionPointDirection } from "@babylonjs/core/Materials/Node/nodeMaterialBlockConnectionPoint"; -import { BaseTexture as BabylonjsCoreBaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture"; -import { InternalTextureSource as BabylonjsCoreInternalTextureSource } from "@babylonjs/core/Materials/Textures/internalTexture"; +import { PropertyTypeForEdition as BabylonjsCorePropertyTypeForEdition } from "@babylonjs/core/Materials/Node/nodeMaterialDecorator"; +import { InternalTextureSource as BabylonjsCoreInternalTextureSource, InternalTexture as BabylonjsCoreInternalTexture } from "@babylonjs/core/Materials/Textures/internalTexture"; +import { ThinTexture as BabylonjsCoreThinTexture } from "@babylonjs/core/Materials/Textures/thinTexture"; +import { HandPart as BabylonjsCoreHandPart } from "@babylonjs/core/XR/features/WebXRHandTracking"; import { Control as BabylonjsGuiControl } from "@babylonjs/gui/2D/controls/control"; import { TextWrapping as BabylonjsGuiTextWrapping, TextBlock as BabylonjsGuiTextBlock } from "@babylonjs/gui/2D/controls/textBlock"; import { Control3D as BabylonjsGuiControl3D } from "@babylonjs/gui/3D/controls/control3D"; @@ -54,6 +58,7 @@ import { WaveBlockKind as BabylonjsCoreWaveBlockKind } from "@babylonjs/core/Mat import { NodeMaterialBlockConnectionPointMode as BabylonjsCoreNodeMaterialBlockConnectionPointMode } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockConnectionPointMode"; import { NodeMaterialBlockConnectionPointTypes as BabylonjsCoreNodeMaterialBlockConnectionPointTypes } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes"; import { NodeMaterialBlockTargets as BabylonjsCoreNodeMaterialBlockTargets } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockTargets"; +import { NodeMaterialModes as BabylonjsCoreNodeMaterialModes } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialModes"; import { NodeMaterialSystemValues as BabylonjsCoreNodeMaterialSystemValues } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialSystemValues"; import { AnimatedInputBlockTypes as BabylonjsCoreAnimatedInputBlockTypes } from "@babylonjs/core/Materials/Node/Blocks/Input/animatedInputBlockTypes"; import { Node as BabylonjsCoreNode } from "@babylonjs/core/node"; @@ -67,6 +72,7 @@ import { AbstractActionManager as BabylonjsCoreAbstractActionManager } from "@ba import { Color4 as BabylonjsCoreColor4, Color3 as BabylonjsCoreColor3 } from "@babylonjs/core/Maths/math.color"; import { Skeleton as BabylonjsCoreSkeleton } from "@babylonjs/core/Bones/skeleton"; import { SubMesh as BabylonjsCoreSubMesh } from "@babylonjs/core/Meshes/subMesh"; +import { IEdgesRendererOptions as BabylonjsCoreIEdgesRendererOptions } from "@babylonjs/core/Rendering/edgesRenderer"; import { BoundingInfo as BabylonjsCoreBoundingInfo } from "@babylonjs/core/Culling/boundingInfo"; import { InstancedMesh as BabylonjsCoreInstancedMesh } from "@babylonjs/core/Meshes/instancedMesh"; import { InstancedLinesMesh as BabylonjsCoreInstancedLinesMesh, LinesMesh as BabylonjsCoreLinesMesh } from "@babylonjs/core/Meshes/linesMesh"; @@ -108,26 +114,30 @@ import { FlyCameraInputsManager as BabylonjsCoreFlyCameraInputsManager } from "@ import { FollowCamera as BabylonjsCoreFollowCamera, ArcFollowCamera as BabylonjsCoreArcFollowCamera } from "@babylonjs/core/Cameras/followCamera"; import { FollowCameraInputsManager as BabylonjsCoreFollowCameraInputsManager } from "@babylonjs/core/Cameras/followCameraInputsManager"; import { Plane as BabylonjsCorePlane } from "@babylonjs/core/Maths/math.plane"; +import { ICreateCapsuleOptions as BabylonjsCoreICreateCapsuleOptions } from "@babylonjs/core/Meshes/Builders/capsuleBuilder"; +import { MaterialDefines as BabylonjsCoreMaterialDefines } from "@babylonjs/core/Materials/materialDefines"; import { SmartArray as BabylonjsCoreSmartArray, ISmartArrayLike as BabylonjsCoreISmartArrayLike } from "@babylonjs/core/Misc/smartArray"; import { Effect as BabylonjsCoreEffect } from "@babylonjs/core/Materials/effect"; -import { ShaderMaterial as BabylonjsCoreShaderMaterial, IShaderMaterialOptions as BabylonjsCoreIShaderMaterialOptions } from "@babylonjs/core/Materials/shaderMaterial"; -import { Texture as BabylonjsCoreTexture } from "@babylonjs/core/Materials/Textures/texture"; -import { MultiMaterial as BabylonjsCoreMultiMaterial } from "@babylonjs/core/Materials/multiMaterial"; +import { ShadowDepthWrapper as BabylonjsCoreShadowDepthWrapper } from "@babylonjs/core/Materials/shadowDepthWrapper"; +import { PrePassRenderer as BabylonjsCorePrePassRenderer } from "@babylonjs/core/Rendering/prePassRenderer"; import { PushMaterial as BabylonjsCorePushMaterial } from "@babylonjs/core/Materials/pushMaterial"; -import { StandardMaterial as BabylonjsCoreStandardMaterial, StandardMaterialDefines as BabylonjsCoreStandardMaterialDefines } from "@babylonjs/core/Materials/standardMaterial"; +import { NodeMaterial as BabylonjsCoreNodeMaterial, INodeMaterialOptions as BabylonjsCoreINodeMaterialOptions } from "@babylonjs/core/Materials/Node/nodeMaterial"; +import { NodeMaterialBlock as BabylonjsCoreNodeMaterialBlock } from "@babylonjs/core/Materials/Node/nodeMaterialBlock"; +import { ImageProcessingConfiguration as BabylonjsCoreImageProcessingConfiguration } from "@babylonjs/core/Materials/imageProcessingConfiguration"; +import { StandardMaterial as BabylonjsCoreStandardMaterial } from "@babylonjs/core/Materials/standardMaterial"; +import { BaseTexture as BabylonjsCoreBaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture"; import { ColorCurves as BabylonjsCoreColorCurves } from "@babylonjs/core/Materials/colorCurves"; import { FresnelParameters as BabylonjsCoreFresnelParameters } from "@babylonjs/core/Materials/fresnelParameters"; -import { ImageProcessingConfiguration as BabylonjsCoreImageProcessingConfiguration } from "@babylonjs/core/Materials/imageProcessingConfiguration"; import { BackgroundMaterial as BabylonjsCoreBackgroundMaterial } from "@babylonjs/core/Materials/Background/backgroundMaterial"; import { IShadowLight as BabylonjsCoreIShadowLight, ShadowLight as BabylonjsCoreShadowLight } from "@babylonjs/core/Lights/shadowLight"; -import { PBRBaseMaterial as BabylonjsCorePBRBaseMaterial, PBRMaterialDefines as BabylonjsCorePBRMaterialDefines } from "@babylonjs/core/Materials/PBR/pbrBaseMaterial"; +import { PBRBaseMaterial as BabylonjsCorePBRBaseMaterial } from "@babylonjs/core/Materials/PBR/pbrBaseMaterial"; import { PBRBaseSimpleMaterial as BabylonjsCorePBRBaseSimpleMaterial } from "@babylonjs/core/Materials/PBR/pbrBaseSimpleMaterial"; import { PBRMetallicRoughnessMaterial as BabylonjsCorePBRMetallicRoughnessMaterial } from "@babylonjs/core/Materials/PBR/pbrMetallicRoughnessMaterial"; import { PBRSpecularGlossinessMaterial as BabylonjsCorePBRSpecularGlossinessMaterial } from "@babylonjs/core/Materials/PBR/pbrSpecularGlossinessMaterial"; import { PBRMaterial as BabylonjsCorePBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial"; -import { NodeMaterial as BabylonjsCoreNodeMaterial, INodeMaterialOptions as BabylonjsCoreINodeMaterialOptions } from "@babylonjs/core/Materials/Node/nodeMaterial"; -import { NodeMaterialBlock as BabylonjsCoreNodeMaterialBlock } from "@babylonjs/core/Materials/Node/nodeMaterialBlock"; import { FluentMaterial as BabylonjsGuiFluentMaterial } from "@babylonjs/gui/3D/materials/fluentMaterial"; +import { ShaderMaterial as BabylonjsCoreShaderMaterial, IShaderMaterialOptions as BabylonjsCoreIShaderMaterialOptions } from "@babylonjs/core/Materials/shaderMaterial"; +import { MultiMaterial as BabylonjsCoreMultiMaterial } from "@babylonjs/core/Materials/multiMaterial"; import { DirectionalLight as BabylonjsCoreDirectionalLight } from "@babylonjs/core/Lights/directionalLight"; import { PointLight as BabylonjsCorePointLight } from "@babylonjs/core/Lights/pointLight"; import { SpotLight as BabylonjsCoreSpotLight } from "@babylonjs/core/Lights/spotLight"; @@ -172,12 +182,14 @@ import { Button3D as BabylonjsGuiButton3D } from "@babylonjs/gui/3D/controls/but import { HolographicButton as BabylonjsGuiHolographicButton } from "@babylonjs/gui/3D/controls/holographicButton"; import { MeshButton3D as BabylonjsGuiMeshButton3D } from "@babylonjs/gui/3D/controls/meshButton3D"; import { GlowLayer as BabylonjsCoreGlowLayer, IGlowLayerOptions as BabylonjsCoreIGlowLayerOptions } from "@babylonjs/core/Layers/glowLayer"; +import { Texture as BabylonjsCoreTexture } from "@babylonjs/core/Materials/Textures/texture"; import { HighlightLayer as BabylonjsCoreHighlightLayer, IHighlightLayerOptions as BabylonjsCoreIHighlightLayerOptions } from "@babylonjs/core/Layers/highlightLayer"; +import { ThinEngine as BabylonjsCoreThinEngine } from "@babylonjs/core/Engines/thinEngine"; import { CubeTexture as BabylonjsCoreCubeTexture } from "@babylonjs/core/Materials/Textures/cubeTexture"; import { RawCubeTexture as BabylonjsCoreRawCubeTexture } from "@babylonjs/core/Materials/Textures/rawCubeTexture"; -import { ThinEngine as BabylonjsCoreThinEngine } from "@babylonjs/core/Engines/thinEngine"; import { RawTexture as BabylonjsCoreRawTexture } from "@babylonjs/core/Materials/Textures/rawTexture"; import { ProceduralTexture as BabylonjsCoreProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/proceduralTexture"; +import { RenderTargetTextureSize as BabylonjsCoreRenderTargetTextureSize } from "@babylonjs/core/Engines/Extensions/engine.renderTarget"; import { CustomProceduralTexture as BabylonjsCoreCustomProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/customProceduralTexture"; import { NoiseProceduralTexture as BabylonjsCoreNoiseProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/noiseProceduralTexture"; import { Engine as BabylonjsCoreEngine } from "@babylonjs/core/Engines/engine"; @@ -189,8 +201,8 @@ import { MultiviewRenderTarget as BabylonjsCoreMultiviewRenderTarget } from "@ba import { VideoTexture as BabylonjsCoreVideoTexture, VideoTextureSettings as BabylonjsCoreVideoTextureSettings } from "@babylonjs/core/Materials/Textures/videoTexture"; import { DynamicTexture as BabylonjsCoreDynamicTexture } from "@babylonjs/core/Materials/Textures/dynamicTexture"; import { ClipboardInfo as BabylonjsCoreClipboardInfo } from "@babylonjs/core/Events/clipboardEvents"; -import { RawTexture3D as BabylonjsCoreRawTexture3D } from "@babylonjs/core/Materials/Textures/rawTexture3D"; import { RawTexture2DArray as BabylonjsCoreRawTexture2DArray } from "@babylonjs/core/Materials/Textures/rawTexture2DArray"; +import { RawTexture3D as BabylonjsCoreRawTexture3D } from "@babylonjs/core/Materials/Textures/rawTexture3D"; import { ColorGradingTexture as BabylonjsCoreColorGradingTexture } from "@babylonjs/core/Materials/Textures/colorGradingTexture"; import { EquiRectangularCubeTexture as BabylonjsCoreEquiRectangularCubeTexture } from "@babylonjs/core/Materials/Textures/equiRectangularCubeTexture"; import { HDRCubeTexture as BabylonjsCoreHDRCubeTexture } from "@babylonjs/core/Materials/Textures/hdrCubeTexture"; @@ -378,6 +390,7 @@ export class FiberAbstractMeshPropsHandler implements PropsHandler { getPropertyUpdates(oldProps: FiberMeshProps, newProps: FiberMeshProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] + checkPrimitiveDiff(oldProps.computeBonesUsingShaders, newProps.computeBonesUsingShaders, 'computeBonesUsingShaders', changedProps) checkPrimitiveDiff(oldProps.delayLoadingFile, newProps.delayLoadingFile, 'delayLoadingFile', changedProps) checkPrimitiveDiff(oldProps.delayLoadState, newProps.delayLoadState, 'delayLoadState', changedProps) // type: 'BabylonjsCoreInstancedMesh[]' property (not coded) BabylonjsCoreMesh.instances. @@ -1036,6 +1051,9 @@ export class FiberTargetCameraPropsHandler implements PropsHandler { "type": "BabylonjsCoreVector4", "optional": true }, + { + "name": "wrap", + "type": "boolean", + "optional": true + }, + { + "name": "topBaseAt", + "type": "number", + "optional": true + }, + { + "name": "bottomBaseAt", + "type": "number", + "optional": true + }, { "name": "updatable", "type": "boolean", @@ -5384,6 +5425,11 @@ export class FiberExtrudePolygon implements HasPropsHandlers { "name": "backUVs", "type": "BabylonjsCoreVector4", "optional": true + }, + { + "name": "wrap", + "type": "boolean", + "optional": true } ], "optional": false @@ -5753,16 +5799,75 @@ export class FiberDecal implements HasPropsHandlers { }; } +/** + * Creates a Capsule Mesh + * + * This code has been generated + */ +export class FiberCapsule implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; + + constructor() { + this.propsHandlers = [ + new FiberMeshPropsHandler() + , new FiberAbstractMeshPropsHandler() + , new FiberTransformNodePropsHandler() + , new FiberNodePropsHandler() + ]; + } + + getPropsHandlers(): PropsHandler[] { + return this.propsHandlers; + } + + addPropsHandler(propHandler: PropsHandler): void { + this.propsHandlers.push(propHandler); + } + + public static readonly CreateInfo = { + "creationType": "FactoryMethod", + "libraryLocation": "meshBuilder", + "namespace": "@babylonjs/core", + "factoryMethod": "CreateCapsule", + "parameters": [ + { + "name": "name", + "type": "string", + "optional": false + }, + { + "name": "options", + "type": "BabylonjsCoreICreateCapsuleOptions", + "optional": true + }, + { + "name": "scene", + "type": "BabylonjsCoreScene", + "optional": true + } + ] + }; + public static readonly Metadata: CreatedInstanceMetadata = { + "acceptsMaterials": true, + "isNode": true, + "isMesh": true, + "className": "FiberCapsule" + }; +} + export class FiberMaterialPropsHandler implements PropsHandler { getPropertyUpdates(oldProps: FiberMaterialProps, newProps: FiberMaterialProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] + checkPrimitiveDiff(oldProps.allowShaderHotSwapping, newProps.allowShaderHotSwapping, 'allowShaderHotSwapping', changedProps) checkPrimitiveDiff(oldProps.alpha, newProps.alpha, 'alpha', changedProps) checkPrimitiveDiff(oldProps.alphaMode, newProps.alphaMode, 'alphaMode', changedProps) // type: 'BabylonjsCoreAnimation[]' property (not coded) BabylonjsCoreMaterial.animations. checkPrimitiveDiff(oldProps.backFaceCulling, newProps.backFaceCulling, 'backFaceCulling', changedProps) checkPrimitiveDiff(oldProps.checkReadyOnEveryCall, newProps.checkReadyOnEveryCall, 'checkReadyOnEveryCall', changedProps) checkPrimitiveDiff(oldProps.checkReadyOnlyOnce, newProps.checkReadyOnlyOnce, 'checkReadyOnlyOnce', changedProps) + checkLambdaDiff(oldProps.customShaderNameResolve, newProps.customShaderNameResolve, 'customShaderNameResolve', changedProps) checkPrimitiveDiff(oldProps.depthFunction, newProps.depthFunction, 'depthFunction', changedProps) + checkPrimitiveDiff(oldProps.disableColorWrite, newProps.disableColorWrite, 'disableColorWrite', changedProps) checkPrimitiveDiff(oldProps.disableDepthWrite, newProps.disableDepthWrite, 'disableDepthWrite', changedProps) checkPrimitiveDiff(oldProps.doNotSerialize, newProps.doNotSerialize, 'doNotSerialize', changedProps) checkPrimitiveDiff(oldProps.fillMode, newProps.fillMode, 'fillMode', changedProps) @@ -5785,11 +5890,14 @@ export class FiberMaterialPropsHandler implements PropsHandler { }; } -export class FiberShaderMaterialPropsHandler implements PropsHandler { - getPropertyUpdates(oldProps: FiberShaderMaterialProps, newProps: FiberShaderMaterialProps): PropertyUpdate[] | null { - const changedProps: PropertyUpdate[] = [] - // type: 'any' property (not coded) BabylonjsCoreShaderMaterial.shaderPath. - checkMethodDiff(oldProps.setArray2, newProps.setArray2, 'setArray2', changedProps) - checkMethodDiff(oldProps.setArray3, newProps.setArray3, 'setArray3', changedProps) - checkMethodDiff(oldProps.setArray4, newProps.setArray4, 'setArray4', changedProps) - checkMethodDiff(oldProps.setColor3, newProps.setColor3, 'setColor3', changedProps) - checkMethodDiff(oldProps.setColor3Array, newProps.setColor3Array, 'setColor3Array', changedProps) - checkMethodDiff(oldProps.setColor4, newProps.setColor4, 'setColor4', changedProps) - checkMethodDiff(oldProps.setColor4Array, newProps.setColor4Array, 'setColor4Array', changedProps) - checkMethodDiff(oldProps.setFloat, newProps.setFloat, 'setFloat', changedProps) - checkMethodDiff(oldProps.setFloats, newProps.setFloats, 'setFloats', changedProps) - checkMethodDiff(oldProps.setInt, newProps.setInt, 'setInt', changedProps) - checkMethodDiff(oldProps.setMatrices, newProps.setMatrices, 'setMatrices', changedProps) - checkMethodDiff(oldProps.setMatrix, newProps.setMatrix, 'setMatrix', changedProps) - checkMethodDiff(oldProps.setMatrix2x2, newProps.setMatrix2x2, 'setMatrix2x2', changedProps) - checkMethodDiff(oldProps.setMatrix3x3, newProps.setMatrix3x3, 'setMatrix3x3', changedProps) - checkMethodDiff(oldProps.setTexture, newProps.setTexture, 'setTexture', changedProps) - checkMethodDiff(oldProps.setTextureArray, newProps.setTextureArray, 'setTextureArray', changedProps) - checkMethodDiff(oldProps.setVector2, newProps.setVector2, 'setVector2', changedProps) - checkMethodDiff(oldProps.setVector3, newProps.setVector3, 'setVector3', changedProps) - checkMethodDiff(oldProps.setVector4, newProps.setVector4, 'setVector4', changedProps) - return changedProps.length === 0 ? null : changedProps; - } -} - -/** - * The ShaderMaterial object has the necessary methods to pass data from your scene to the Vertex and Fragment Shaders and returns a material that can be applied to any mesh. - * - * This returned material effects how the mesh will look based on the code in the shaders. - * - * This code has been generated - */ -export class FiberShaderMaterial implements HasPropsHandlers { - private propsHandlers: PropsHandler[]; - - constructor() { - this.propsHandlers = [ - new FiberShaderMaterialPropsHandler(), - new FiberMaterialPropsHandler() - ]; - } - - getPropsHandlers(): PropsHandler[] { - return this.propsHandlers; - } - - addPropsHandler(propHandler: PropsHandler): void { - this.propsHandlers.push(propHandler); - } - - public static readonly CreateInfo = { - "creationType": "Constructor", - "libraryLocation": "ShaderMaterial", - "namespace": "@babylonjs/core", - "parameters": [ - { - "name": "name", - "type": "string", - "optional": false - }, - { - "name": "scene", - "type": "BabylonjsCoreScene", - "optional": false - }, - { - "name": "shaderPath", - "type": "any", - "optional": false - }, - { - "name": "options", - "type": "Partial", - "optional": true - } - ] - }; - public static readonly Metadata: CreatedInstanceMetadata = { - "isMaterial": true, - "className": "FiberShaderMaterial" - }; -} - -export class FiberMultiMaterialPropsHandler implements PropsHandler { - getPropertyUpdates(oldProps: FiberMultiMaterialProps, newProps: FiberMultiMaterialProps): PropertyUpdate[] | null { - // skipping type: 'BabylonjsCoreMaterial[]' property (not coded) BabylonjsCoreMultiMaterial.subMaterials. +export class FiberPushMaterialPropsHandler implements PropsHandler { + getPropertyUpdates(oldProps: FiberPushMaterialProps, newProps: FiberPushMaterialProps): PropertyUpdate[] | null { return null; // no props to check } } /** - * A multi-material is used to apply different materials to different parts of the same object without the need of - * separate meshes. This can be use to improve performances. + * Base class of materials working in push mode in babylon JS * * This code has been generated */ -export class FiberMultiMaterial implements HasPropsHandlers { +export class FiberPushMaterial implements HasPropsHandlers { private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ - new FiberMultiMaterialPropsHandler(), + new FiberPushMaterialPropsHandler(), new FiberMaterialPropsHandler() ]; } @@ -5962,7 +5983,7 @@ export class FiberMultiMaterial implements HasPropsHandlers public static readonly CreateInfo = { "creationType": "Constructor", - "libraryLocation": "MultiMaterial", + "libraryLocation": "PushMaterial", "namespace": "@babylonjs/core", "parameters": [ { @@ -5979,28 +6000,39 @@ export class FiberMultiMaterial implements HasPropsHandlers }; public static readonly Metadata: CreatedInstanceMetadata = { "isMaterial": true, - "className": "FiberMultiMaterial" + "className": "FiberPushMaterial" }; } -export class FiberPushMaterialPropsHandler implements PropsHandler { - getPropertyUpdates(oldProps: FiberPushMaterialProps, newProps: FiberPushMaterialProps): PropertyUpdate[] | null { +export class FiberNodeMaterialPropsHandler implements PropsHandler { + getPropertyUpdates(oldProps: FiberNodeMaterialProps, newProps: FiberNodeMaterialProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] - checkPrimitiveDiff(oldProps.allowShaderHotSwapping, newProps.allowShaderHotSwapping, 'allowShaderHotSwapping', changedProps) + // type: 'BabylonjsCoreNodeMaterialBlock[]' property (not coded) BabylonjsCoreNodeMaterial.attachedBlocks. + // type: 'any' property (not coded) BabylonjsCoreNodeMaterial.BJSNODEMATERIALEDITOR. + checkPrimitiveDiff(oldProps.comment, newProps.comment, 'comment', changedProps) + // type: 'any' property (not coded) BabylonjsCoreNodeMaterial.editorData. + checkPrimitiveDiff(oldProps.ignoreAlpha, newProps.ignoreAlpha, 'ignoreAlpha', changedProps) + // type: 'BabylonjsCoreImageProcessingConfiguration' property (not coded) BabylonjsCoreNodeMaterial.imageProcessingConfiguration. + checkPrimitiveDiff(oldProps.maxSimultaneousLights, newProps.maxSimultaneousLights, 'maxSimultaneousLights', changedProps) + checkObservableDiff(oldProps.onBuildObservable, newProps.onBuildObservable, 'onBuildObservable', changedProps) + // type: 'BabylonjsCoreINodeMaterialOptions' property (not coded) BabylonjsCoreNodeMaterial.options. + checkPrimitiveDiff(oldProps.snippetId, newProps.snippetId, 'snippetId', changedProps) + checkMethodDiff(oldProps.addOutputNode, newProps.addOutputNode, 'addOutputNode', changedProps) return changedProps.length === 0 ? null : changedProps; } } /** - * Base class of materials working in push mode in babylon JS + * Class used to create a node based material built by assembling shader blocks * * This code has been generated */ -export class FiberPushMaterial implements HasPropsHandlers { +export class FiberNodeMaterial implements HasPropsHandlers { private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ + new FiberNodeMaterialPropsHandler(), new FiberPushMaterialPropsHandler(), new FiberMaterialPropsHandler() ]; @@ -6016,7 +6048,7 @@ export class FiberPushMaterial implements HasPropsHandlers { public static readonly CreateInfo = { "creationType": "Constructor", - "libraryLocation": "PushMaterial", + "libraryLocation": "NodeMaterial", "namespace": "@babylonjs/core", "parameters": [ { @@ -6027,13 +6059,18 @@ export class FiberPushMaterial implements HasPropsHandlers { { "name": "scene", "type": "BabylonjsCoreScene", - "optional": false + "optional": true + }, + { + "name": "options", + "type": "Partial", + "optional": true } ] }; public static readonly Metadata: CreatedInstanceMetadata = { "isMaterial": true, - "className": "FiberPushMaterial" + "className": "FiberNodeMaterial" }; } @@ -6042,27 +6079,27 @@ export class FiberStandardMaterialPropsHandler implements PropsHandler { getPropertyUpdates(oldProps: FiberPBRBaseMaterialProps, newProps: FiberPBRBaseMaterialProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] - checkLambdaDiff(oldProps.customShaderNameResolve, newProps.customShaderNameResolve, 'customShaderNameResolve', changedProps) // type: 'any' property (not coded) BabylonjsCorePBRBaseMaterial.debugFactor. // type: 'any' property (not coded) BabylonjsCorePBRBaseMaterial.debugLimit. checkPrimitiveDiff(oldProps.debugMode, newProps.debugMode, 'debugMode', changedProps) - checkPrimitiveDiff(oldProps.transparencyMode, newProps.transparencyMode, 'transparencyMode', changedProps) + checkPrimitiveDiff(oldProps.realTimeFiltering, newProps.realTimeFiltering, 'realTimeFiltering', changedProps) + checkPrimitiveDiff(oldProps.realTimeFilteringQuality, newProps.realTimeFilteringQuality, 'realTimeFilteringQuality', changedProps) checkPrimitiveDiff(oldProps.useLogarithmicDepth, newProps.useLogarithmicDepth, 'useLogarithmicDepth', changedProps) + checkMethodDiff(oldProps.setPrePassRenderer, newProps.setPrePassRenderer, 'setPrePassRenderer', changedProps) return changedProps.length === 0 ? null : changedProps; } } @@ -6312,15 +6351,15 @@ export class FiberPBRBaseSimpleMaterialPropsHandler implements PropsHandler { }; } -export class FiberNodeMaterialPropsHandler implements PropsHandler { - getPropertyUpdates(oldProps: FiberNodeMaterialProps, newProps: FiberNodeMaterialProps): PropertyUpdate[] | null { +export class FiberFluentMaterialPropsHandler implements PropsHandler { + getPropertyUpdates(oldProps: FiberFluentMaterialProps, newProps: FiberFluentMaterialProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] - // type: 'BabylonjsCoreNodeMaterialBlock[]' property (not coded) BabylonjsCoreNodeMaterial.attachedBlocks. - // type: 'any' property (not coded) BabylonjsCoreNodeMaterial.BJSNODEMATERIALEDITOR. - // type: 'any' property (not coded) BabylonjsCoreNodeMaterial.editorData. - checkPrimitiveDiff(oldProps.ignoreAlpha, newProps.ignoreAlpha, 'ignoreAlpha', changedProps) - // type: 'BabylonjsCoreImageProcessingConfiguration' property (not coded) BabylonjsCoreNodeMaterial.imageProcessingConfiguration. - checkPrimitiveDiff(oldProps.maxSimultaneousLights, newProps.maxSimultaneousLights, 'maxSimultaneousLights', changedProps) - checkObservableDiff(oldProps.onBuildObservable, newProps.onBuildObservable, 'onBuildObservable', changedProps) - // type: 'BabylonjsCoreINodeMaterialOptions' property (not coded) BabylonjsCoreNodeMaterial.options. - checkMethodDiff(oldProps.addOutputNode, newProps.addOutputNode, 'addOutputNode', changedProps) + checkColor3Diff(oldProps.albedoColor, newProps.albedoColor, 'albedoColor', changedProps) + // type: 'BabylonjsCoreBaseTexture' property (not coded) BabylonjsGuiFluentMaterial.albedoTexture. + checkPrimitiveDiff(oldProps.borderMinValue, newProps.borderMinValue, 'borderMinValue', changedProps) + checkPrimitiveDiff(oldProps.borderWidth, newProps.borderWidth, 'borderWidth', changedProps) + checkPrimitiveDiff(oldProps.edgeSmoothingValue, newProps.edgeSmoothingValue, 'edgeSmoothingValue', changedProps) + checkColor4Diff(oldProps.hoverColor, newProps.hoverColor, 'hoverColor', changedProps) + checkVector3Diff(oldProps.hoverPosition, newProps.hoverPosition, 'hoverPosition', changedProps) + checkPrimitiveDiff(oldProps['hoverPosition-x'], newProps['hoverPosition-x'], 'hoverPosition.x', changedProps) + checkPrimitiveDiff(oldProps['hoverPosition-y'], newProps['hoverPosition-y'], 'hoverPosition.y', changedProps) + checkPrimitiveDiff(oldProps['hoverPosition-z'], newProps['hoverPosition-z'], 'hoverPosition.z', changedProps) + checkPrimitiveDiff(oldProps.hoverRadius, newProps.hoverRadius, 'hoverRadius', changedProps) + checkColor3Diff(oldProps.innerGlowColor, newProps.innerGlowColor, 'innerGlowColor', changedProps) + checkPrimitiveDiff(oldProps.innerGlowColorIntensity, newProps.innerGlowColorIntensity, 'innerGlowColorIntensity', changedProps) + checkPrimitiveDiff(oldProps.renderBorders, newProps.renderBorders, 'renderBorders', changedProps) + checkPrimitiveDiff(oldProps.renderHoverLight, newProps.renderHoverLight, 'renderHoverLight', changedProps) return changedProps.length === 0 ? null : changedProps; } } /** - * Class used to create a node based material built by assembling shader blocks + * Class used to render controls with fluent desgin * * This code has been generated */ -export class FiberNodeMaterial implements HasPropsHandlers { +export class FiberFluentMaterial implements HasPropsHandlers { private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ - new FiberNodeMaterialPropsHandler(), + new FiberFluentMaterialPropsHandler(), new FiberPushMaterialPropsHandler(), new FiberMaterialPropsHandler() ]; @@ -6678,7 +6724,7 @@ export class FiberNodeMaterial implements HasPropsHandlers { public static readonly CreateInfo = { "creationType": "Constructor", - "libraryLocation": "NodeMaterial", + "libraryLocation": "FluentMaterial", "namespace": "@babylonjs/core", "parameters": [ { @@ -6689,56 +6735,121 @@ export class FiberNodeMaterial implements HasPropsHandlers { { "name": "scene", "type": "BabylonjsCoreScene", - "optional": true + "optional": false + } + ] + }; + public static readonly Metadata: CreatedInstanceMetadata = { + "isMaterial": true, + "className": "FiberFluentMaterial" + }; +} + +export class FiberShaderMaterialPropsHandler implements PropsHandler { + getPropertyUpdates(oldProps: FiberShaderMaterialProps, newProps: FiberShaderMaterialProps): PropertyUpdate[] | null { + const changedProps: PropertyUpdate[] = [] + // type: 'any' property (not coded) BabylonjsCoreShaderMaterial.shaderPath. + checkPrimitiveDiff(oldProps.snippetId, newProps.snippetId, 'snippetId', changedProps) + checkMethodDiff(oldProps.setArray2, newProps.setArray2, 'setArray2', changedProps) + checkMethodDiff(oldProps.setArray3, newProps.setArray3, 'setArray3', changedProps) + checkMethodDiff(oldProps.setArray4, newProps.setArray4, 'setArray4', changedProps) + checkMethodDiff(oldProps.setColor3, newProps.setColor3, 'setColor3', changedProps) + checkMethodDiff(oldProps.setColor3Array, newProps.setColor3Array, 'setColor3Array', changedProps) + checkMethodDiff(oldProps.setColor4, newProps.setColor4, 'setColor4', changedProps) + checkMethodDiff(oldProps.setColor4Array, newProps.setColor4Array, 'setColor4Array', changedProps) + checkMethodDiff(oldProps.setFloat, newProps.setFloat, 'setFloat', changedProps) + checkMethodDiff(oldProps.setFloats, newProps.setFloats, 'setFloats', changedProps) + checkMethodDiff(oldProps.setInt, newProps.setInt, 'setInt', changedProps) + checkMethodDiff(oldProps.setMatrices, newProps.setMatrices, 'setMatrices', changedProps) + checkMethodDiff(oldProps.setMatrix, newProps.setMatrix, 'setMatrix', changedProps) + checkMethodDiff(oldProps.setMatrix2x2, newProps.setMatrix2x2, 'setMatrix2x2', changedProps) + checkMethodDiff(oldProps.setMatrix3x3, newProps.setMatrix3x3, 'setMatrix3x3', changedProps) + checkMethodDiff(oldProps.setTexture, newProps.setTexture, 'setTexture', changedProps) + checkMethodDiff(oldProps.setTextureArray, newProps.setTextureArray, 'setTextureArray', changedProps) + checkMethodDiff(oldProps.setVector2, newProps.setVector2, 'setVector2', changedProps) + checkMethodDiff(oldProps.setVector3, newProps.setVector3, 'setVector3', changedProps) + checkMethodDiff(oldProps.setVector4, newProps.setVector4, 'setVector4', changedProps) + return changedProps.length === 0 ? null : changedProps; + } +} + +/** + * The ShaderMaterial object has the necessary methods to pass data from your scene to the Vertex and Fragment Shaders and returns a material that can be applied to any mesh. + * + * This returned material effects how the mesh will look based on the code in the shaders. + * + * This code has been generated + */ +export class FiberShaderMaterial implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; + + constructor() { + this.propsHandlers = [ + new FiberShaderMaterialPropsHandler(), + new FiberMaterialPropsHandler() + ]; + } + + getPropsHandlers(): PropsHandler[] { + return this.propsHandlers; + } + + addPropsHandler(propHandler: PropsHandler): void { + this.propsHandlers.push(propHandler); + } + + public static readonly CreateInfo = { + "creationType": "Constructor", + "libraryLocation": "ShaderMaterial", + "namespace": "@babylonjs/core", + "parameters": [ + { + "name": "name", + "type": "string", + "optional": false + }, + { + "name": "scene", + "type": "BabylonjsCoreScene", + "optional": false + }, + { + "name": "shaderPath", + "type": "any", + "optional": false }, { "name": "options", - "type": "Partial", + "type": "Partial", "optional": true } ] }; public static readonly Metadata: CreatedInstanceMetadata = { "isMaterial": true, - "className": "FiberNodeMaterial" + "className": "FiberShaderMaterial" }; } -export class FiberFluentMaterialPropsHandler implements PropsHandler { - getPropertyUpdates(oldProps: FiberFluentMaterialProps, newProps: FiberFluentMaterialProps): PropertyUpdate[] | null { - const changedProps: PropertyUpdate[] = [] - checkColor3Diff(oldProps.albedoColor, newProps.albedoColor, 'albedoColor', changedProps) - checkTextureDiff(oldProps.albedoTexture, newProps.albedoTexture, 'albedoTexture', changedProps) - checkPrimitiveDiff(oldProps.alpha, newProps.alpha, 'alpha', changedProps) - checkPrimitiveDiff(oldProps.borderMinValue, newProps.borderMinValue, 'borderMinValue', changedProps) - checkPrimitiveDiff(oldProps.borderWidth, newProps.borderWidth, 'borderWidth', changedProps) - checkPrimitiveDiff(oldProps.edgeSmoothingValue, newProps.edgeSmoothingValue, 'edgeSmoothingValue', changedProps) - checkColor4Diff(oldProps.hoverColor, newProps.hoverColor, 'hoverColor', changedProps) - checkVector3Diff(oldProps.hoverPosition, newProps.hoverPosition, 'hoverPosition', changedProps) - checkPrimitiveDiff(oldProps['hoverPosition-x'], newProps['hoverPosition-x'], 'hoverPosition.x', changedProps) - checkPrimitiveDiff(oldProps['hoverPosition-y'], newProps['hoverPosition-y'], 'hoverPosition.y', changedProps) - checkPrimitiveDiff(oldProps['hoverPosition-z'], newProps['hoverPosition-z'], 'hoverPosition.z', changedProps) - checkPrimitiveDiff(oldProps.hoverRadius, newProps.hoverRadius, 'hoverRadius', changedProps) - checkColor3Diff(oldProps.innerGlowColor, newProps.innerGlowColor, 'innerGlowColor', changedProps) - checkPrimitiveDiff(oldProps.innerGlowColorIntensity, newProps.innerGlowColorIntensity, 'innerGlowColorIntensity', changedProps) - checkPrimitiveDiff(oldProps.renderBorders, newProps.renderBorders, 'renderBorders', changedProps) - checkPrimitiveDiff(oldProps.renderHoverLight, newProps.renderHoverLight, 'renderHoverLight', changedProps) - return changedProps.length === 0 ? null : changedProps; +export class FiberMultiMaterialPropsHandler implements PropsHandler { + getPropertyUpdates(oldProps: FiberMultiMaterialProps, newProps: FiberMultiMaterialProps): PropertyUpdate[] | null { + // skipping type: 'BabylonjsCoreMaterial[]' property (not coded) BabylonjsCoreMultiMaterial.subMaterials. + return null; // no props to check } } /** - * Class used to render controls with fluent desgin + * A multi-material is used to apply different materials to different parts of the same object without the need of + * separate meshes. This can be use to improve performances. * * This code has been generated */ -export class FiberFluentMaterial implements HasPropsHandlers { +export class FiberMultiMaterial implements HasPropsHandlers { private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ - new FiberFluentMaterialPropsHandler(), - new FiberPushMaterialPropsHandler(), + new FiberMultiMaterialPropsHandler(), new FiberMaterialPropsHandler() ]; } @@ -6753,7 +6864,7 @@ export class FiberFluentMaterial implements HasPropsHandlers public static readonly CreateInfo = { "creationType": "Constructor", - "libraryLocation": "FluentMaterial", + "libraryLocation": "MultiMaterial", "namespace": "@babylonjs/core", "parameters": [ { @@ -6770,7 +6881,7 @@ export class FiberFluentMaterial implements HasPropsHandlers }; public static readonly Metadata: CreatedInstanceMetadata = { "isMaterial": true, - "className": "FiberFluentMaterial" + "className": "FiberMultiMaterial" }; } @@ -7053,7 +7164,7 @@ export class FiberSpotLightPropsHandler implements PropsHandler checkPrimitiveDiff(oldProps.color, newProps.color, 'color', changedProps) checkPrimitiveDiff(oldProps.disabledColor, newProps.disabledColor, 'disabledColor', changedProps) checkPrimitiveDiff(oldProps.disabledColorItem, newProps.disabledColorItem, 'disabledColorItem', changedProps) + checkPrimitiveDiff(oldProps.fixedRatio, newProps.fixedRatio, 'fixedRatio', changedProps) checkPrimitiveDiff(oldProps.fontFamily, newProps.fontFamily, 'fontFamily', changedProps) // type: '{ ascent: number; height: number; descent: number; }' property (not coded) BabylonjsGuiControl.fontOffset. checkPrimitiveDiff(oldProps.fontSize, newProps.fontSize, 'fontSize', changedProps) @@ -7241,6 +7353,7 @@ export class FiberControlPropsHandler implements PropsHandler checkObservableDiff(oldProps.onAfterDrawObservable, newProps.onAfterDrawObservable, 'onAfterDrawObservable', changedProps) checkObservableDiff(oldProps.onBeforeDrawObservable, newProps.onBeforeDrawObservable, 'onBeforeDrawObservable', changedProps) checkObservableDiff(oldProps.onDirtyObservable, newProps.onDirtyObservable, 'onDirtyObservable', changedProps) + checkObservableDiff(oldProps.onDisposeObservable, newProps.onDisposeObservable, 'onDisposeObservable', changedProps) checkObservableDiff(oldProps.onPointerClickObservable, newProps.onPointerClickObservable, 'onPointerClickObservable', changedProps) checkObservableDiff(oldProps.onPointerDownObservable, newProps.onPointerDownObservable, 'onPointerDownObservable', changedProps) checkObservableDiff(oldProps.onPointerEnterObservable, newProps.onPointerEnterObservable, 'onPointerEnterObservable', changedProps) @@ -7901,6 +8014,7 @@ export class FiberTextBlockPropsHandler implements PropsHandler { checkPrimitiveDiff(oldProps.displayValueBar, newProps.displayValueBar, 'displayValueBar', changedProps) checkPrimitiveDiff(oldProps.isThumbCircle, newProps.isThumbCircle, 'isThumbCircle', changedProps) checkPrimitiveDiff(oldProps.name, newProps.name, 'name', changedProps) + checkPrimitiveDiff(oldProps.thumbColor, newProps.thumbColor, 'thumbColor', changedProps) return changedProps.length === 0 ? null : changedProps; } } @@ -9379,6 +9496,7 @@ export class FiberMeshButton3D implements HasPropsHandlers export class FiberEffectLayerPropsHandler implements PropsHandler { getPropertyUpdates(oldProps: FiberEffectLayerProps, newProps: FiberEffectLayerProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] + checkPrimitiveDiff(oldProps.disableBoundingBoxesFromEffectLayer, newProps.disableBoundingBoxesFromEffectLayer, 'disableBoundingBoxesFromEffectLayer', changedProps) checkPrimitiveDiff(oldProps.isEnabled, newProps.isEnabled, 'isEnabled', changedProps) checkPrimitiveDiff(oldProps.name, newProps.name, 'name', changedProps) checkColor4Diff(oldProps.neutralColor, newProps.neutralColor, 'neutralColor', changedProps) @@ -9584,6 +9702,62 @@ export class FiberHighlightLayer implements HasPropsHandlers { + getPropertyUpdates(oldProps: FiberThinTextureProps, newProps: FiberThinTextureProps): PropertyUpdate[] | null { + const changedProps: PropertyUpdate[] = [] + checkPrimitiveDiff(oldProps.anisotropicFilteringLevel, newProps.anisotropicFilteringLevel, 'anisotropicFilteringLevel', changedProps) + checkPrimitiveDiff(oldProps.delayLoadState, newProps.delayLoadState, 'delayLoadState', changedProps) + checkPrimitiveDiff(oldProps.is2DArray, newProps.is2DArray, 'is2DArray', changedProps) + checkPrimitiveDiff(oldProps.is3D, newProps.is3D, 'is3D', changedProps) + checkPrimitiveDiff(oldProps.isCube, newProps.isCube, 'isCube', changedProps) + checkPrimitiveDiff(oldProps.wrapR, newProps.wrapR, 'wrapR', changedProps) + checkPrimitiveDiff(oldProps.wrapU, newProps.wrapU, 'wrapU', changedProps) + checkPrimitiveDiff(oldProps.wrapV, newProps.wrapV, 'wrapV', changedProps) + return changedProps.length === 0 ? null : changedProps; + } +} + +/** + * Base class of all the textures in babylon. + * It groups all the common properties required to work with Thin Engine. + * + * This code has been generated + */ +export class FiberThinTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; + + constructor() { + this.propsHandlers = [ + new FiberThinTexturePropsHandler() + ]; + } + + getPropsHandlers(): PropsHandler[] { + return this.propsHandlers; + } + + addPropsHandler(propHandler: PropsHandler): void { + this.propsHandlers.push(propHandler); + } + + public static readonly CreateInfo = { + "creationType": "Constructor", + "libraryLocation": "ThinTexture", + "namespace": "@babylonjs/core", + "parameters": [ + { + "name": "internalTexture", + "type": "BabylonjsCoreInternalTexture", + "optional": false + } + ] + }; + public static readonly Metadata: CreatedInstanceMetadata = { + "isTexture": true, + "className": "FiberThinTexture" + }; +} + export class FiberBaseTexturePropsHandler implements PropsHandler { getPropertyUpdates(oldProps: FiberBaseTextureProps, newProps: FiberBaseTextureProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] @@ -9591,12 +9765,11 @@ export class FiberBaseTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberBaseTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -9650,8 +9824,8 @@ export class FiberBaseTexture implements HasPropsHandlers "namespace": "@babylonjs/core", "parameters": [ { - "name": "scene", - "type": "BabylonjsCoreScene", + "name": "sceneOrEngine", + "type": "BabylonjsCoreScene | BabylonjsCoreThinEngine", "optional": false } ] @@ -9686,21 +9860,22 @@ export class FiberCubeTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberCubeTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberCubeTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -9715,8 +9890,8 @@ export class FiberCubeTexture implements HasPropsHandlers "optional": false }, { - "name": "scene", - "type": "BabylonjsCoreScene", + "name": "sceneOrEngine", + "type": "BabylonjsCoreScene | BabylonjsCoreThinEngine", "optional": false }, { @@ -9773,6 +9948,11 @@ export class FiberCubeTexture implements HasPropsHandlers "name": "lodOffset", "type": "number", "optional": true + }, + { + "name": "loaderOptions", + "type": "any", + "optional": true } ] }; @@ -9793,22 +9973,23 @@ export class FiberRawCubeTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberRawCubeTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberRawCubeTexturePropsHandler(), new FiberCubeTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -9873,6 +10054,7 @@ export class FiberRawCubeTexture implements HasPropsHandlers { getPropertyUpdates(oldProps: FiberTextureProps, newProps: FiberTextureProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] + checkPrimitiveDiff(oldProps.homogeneousRotationInUVTransform, newProps.homogeneousRotationInUVTransform, 'homogeneousRotationInUVTransform', changedProps) // type: 'BabylonjsCoreIInspectable[]' property (not coded) BabylonjsCoreTexture.inspectableCustomProperties. checkPrimitiveDiff(oldProps.isBlocking, newProps.isBlocking, 'isBlocking', changedProps) checkObservableDiff(oldProps.onLoadObservable, newProps.onLoadObservable, 'onLoadObservable', changedProps) @@ -9896,21 +10078,22 @@ export class FiberTexturePropsHandler implements PropsHandler * * This code has been generated */ -export class FiberTexture implements HasPropsHandlers { - private propsHandlers: PropsHandler[]; +export class FiberTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -9973,6 +10156,11 @@ export class FiberTexture implements HasPropsHandlers { "name": "mimeType", "type": "string", "optional": true + }, + { + "name": "loaderOptions", + "type": "any", + "optional": true } ] }; @@ -9997,22 +10185,23 @@ export class FiberRawTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberRawTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberRawTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10042,8 +10231,8 @@ export class FiberRawTexture implements HasPropsHandlers "optional": false }, { - "name": "scene", - "type": "BabylonjsCoreScene", + "name": "sceneOrEngine", + "type": "BabylonjsCoreScene | BabylonjsCoreThinEngine", "optional": false }, { @@ -10078,8 +10267,9 @@ export class FiberProceduralTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberProceduralTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberProceduralTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10134,7 +10325,7 @@ export class FiberProceduralTexture implements HasPropsHandlers { - private propsHandlers: PropsHandler[]; +export class FiberCustomProceduralTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberCustomProceduralTexturePropsHandler(), new FiberProceduralTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10254,6 +10451,7 @@ export class FiberNoiseProceduralTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberNoiseProceduralTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberNoiseProceduralTexturePropsHandler(), new FiberProceduralTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10334,11 +10533,10 @@ export class FiberRenderTargetTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberRenderTargetTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberRenderTargetTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10490,23 +10689,24 @@ export class FiberMirrorTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberMirrorTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberMirrorTexturePropsHandler(), new FiberRenderTargetTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10576,23 +10776,24 @@ export class FiberMultiRenderTargetPropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberMultiRenderTarget implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberMultiRenderTargetPropsHandler(), new FiberRenderTargetTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10649,23 +10850,24 @@ export class FiberRefractionTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberRefractionTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberRefractionTexturePropsHandler(), new FiberRenderTargetTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10713,23 +10915,24 @@ export class FiberMultiviewRenderTargetPropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberMultiviewRenderTarget implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberMultiviewRenderTargetPropsHandler(), new FiberRenderTargetTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10769,22 +10972,23 @@ export class FiberVideoTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberVideoTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberVideoTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10847,22 +11051,23 @@ export class FiberDynamicTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberDynamicTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberDynamicTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10900,6 +11105,11 @@ export class FiberDynamicTexture implements HasPropsHandlers { getPropertyUpdates(oldProps: FiberAdvancedDynamicTextureProps, newProps: FiberAdvancedDynamicTextureProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] + checkPrimitiveDiff(oldProps.applyYInversionOnUpdate, newProps.applyYInversionOnUpdate, 'applyYInversionOnUpdate', changedProps) checkPrimitiveDiff(oldProps.background, newProps.background, 'background', changedProps) checkPrimitiveDiff(oldProps.clipboardData, newProps.clipboardData, 'clipboardData', changedProps) // type: 'BabylonjsGuiIFocusableControl' property (not coded) BabylonjsGuiAdvancedDynamicTexture.focusedControl. @@ -10942,23 +11153,24 @@ export class FiberAdvancedDynamicTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberAdvancedDynamicTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberAdvancedDynamicTexturePropsHandler(), new FiberDynamicTexturePropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -10996,6 +11208,11 @@ export class FiberAdvancedDynamicTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; + + constructor() { + this.propsHandlers = [ + new FiberAdvancedDynamicTexturePropsHandler() + , new FiberDynamicTexturePropsHandler() + , new FiberTexturePropsHandler() + , new FiberBaseTexturePropsHandler() + , new FiberThinTexturePropsHandler() + ]; + } + + getPropsHandlers(): PropsHandler[] { + return this.propsHandlers; + } + + addPropsHandler(propHandler: PropsHandler): void { + this.propsHandlers.push(propHandler); + } + + public static readonly CreateInfo = { + "creationType": "FactoryMethod", + "libraryLocation": "advancedDynamicTexture", + "namespace": "@babylonjs/core", + "factoryMethod": "CreateForMeshTexture", + "parameters": [ + { + "name": "mesh", + "type": "BabylonjsCoreAbstractMesh", + "optional": false + }, + { + "name": "width", + "type": "number", + "optional": true + }, + { + "name": "height", + "type": "number", + "optional": true + }, + { + "name": "supportPointerMove", + "type": "boolean", + "optional": true + }, + { + "name": "invertY", + "type": "boolean", + "optional": true + } + ] + }; + public static readonly Metadata: CreatedInstanceMetadata = { + "isTexture": true, + "isGUI2DControl": true, + "className": "FiberADTForMeshTexture" + }; +} + /** * Creates a new AdvancedDynamicTexture in fullscreen mode. * In this mode the texture will rely on a layer for its rendering. @@ -11089,6 +11378,7 @@ export class FiberADTFullscreenUI implements HasPropsHandlers { - getPropertyUpdates(oldProps: FiberRawTexture3DProps, newProps: FiberRawTexture3DProps): PropertyUpdate[] | null { +export class FiberRawTexture2DArrayPropsHandler implements PropsHandler { + getPropertyUpdates(oldProps: FiberRawTexture2DArrayProps, newProps: FiberRawTexture2DArrayProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] checkPrimitiveDiff(oldProps.format, newProps.format, 'format', changedProps) return changedProps.length === 0 ? null : changedProps; @@ -11144,32 +11434,33 @@ export class FiberRawTexture3DPropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberRawTexture2DArray implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ - new FiberRawTexture3DPropsHandler(), + new FiberRawTexture2DArrayPropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } public static readonly CreateInfo = { "creationType": "Constructor", - "libraryLocation": "RawTexture3D", + "libraryLocation": "RawTexture2DArray", "namespace": "@babylonjs/core", "parameters": [ { @@ -11226,12 +11517,12 @@ export class FiberRawTexture3D implements HasPropsHandlers { - getPropertyUpdates(oldProps: FiberRawTexture2DArrayProps, newProps: FiberRawTexture2DArrayProps): PropertyUpdate[] | null { +export class FiberRawTexture3DPropsHandler implements PropsHandler { + getPropertyUpdates(oldProps: FiberRawTexture3DProps, newProps: FiberRawTexture3DProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] checkPrimitiveDiff(oldProps.format, newProps.format, 'format', changedProps) return changedProps.length === 0 ? null : changedProps; @@ -11239,32 +11530,33 @@ export class FiberRawTexture2DArrayPropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberRawTexture3D implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ - new FiberRawTexture2DArrayPropsHandler(), + new FiberRawTexture3DPropsHandler(), new FiberTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } public static readonly CreateInfo = { "creationType": "Constructor", - "libraryLocation": "RawTexture2DArray", + "libraryLocation": "RawTexture3D", "namespace": "@babylonjs/core", "parameters": [ { @@ -11321,7 +11613,7 @@ export class FiberRawTexture2DArray implements HasPropsHandlers { - private propsHandlers: PropsHandler[]; +export class FiberColorGradingTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberColorGradingTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -11374,9 +11667,14 @@ export class FiberColorGradingTexture implements HasPropsHandlers void", + "optional": true } ] }; @@ -11389,7 +11687,6 @@ export class FiberColorGradingTexture implements HasPropsHandlers { getPropertyUpdates(oldProps: FiberEquiRectangularCubeTextureProps, newProps: FiberEquiRectangularCubeTextureProps): PropertyUpdate[] | null { const changedProps: PropertyUpdate[] = [] - checkPrimitiveDiff(oldProps.coordinatesMode, newProps.coordinatesMode, 'coordinatesMode', changedProps) // type: 'any' property (not coded) BabylonjsCoreEquiRectangularCubeTexture.getFloat32ArrayFromArrayBuffer. // type: 'any' property (not coded) BabylonjsCoreEquiRectangularCubeTexture.loadImage. // type: 'any' property (not coded) BabylonjsCoreEquiRectangularCubeTexture.loadTexture. @@ -11403,21 +11700,22 @@ export class FiberEquiRectangularCubeTexturePropsHandler implements PropsHandler * * This code has been generated */ -export class FiberEquiRectangularCubeTexture implements HasPropsHandlers { - private propsHandlers: PropsHandler[]; +export class FiberEquiRectangularCubeTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberEquiRectangularCubeTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -11480,7 +11778,6 @@ export class FiberHDRCubeTexturePropsHandler implements PropsHandler { - private propsHandlers: PropsHandler[]; +export class FiberHDRCubeTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberHDRCubeTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -11527,8 +11825,8 @@ export class FiberHDRCubeTexture implements HasPropsHandlers { - private propsHandlers: PropsHandler[]; +export class FiberHtmlElementTexture implements HasPropsHandlers { + private propsHandlers: PropsHandler[]; constructor() { this.propsHandlers = [ new FiberHtmlElementTexturePropsHandler(), - new FiberBaseTexturePropsHandler() + new FiberBaseTexturePropsHandler(), + new FiberThinTexturePropsHandler() ]; } - getPropsHandlers(): PropsHandler[] { + getPropsHandlers(): PropsHandler[] { return this.propsHandlers; } - addPropsHandler(propHandler: PropsHandler): void { + addPropsHandler(propHandler: PropsHandler): void { this.propsHandlers.push(propHandler); } @@ -11695,13 +11994,17 @@ export class FiberShadowGeneratorPropsHandler implements PropsHandler { checkPrimitiveDiff(oldProps.DoubleClickDelay, newProps.DoubleClickDelay, 'DoubleClickDelay', changedProps) checkPrimitiveDiff(oldProps.DragMovementThreshold, newProps.DragMovementThreshold, 'DragMovementThreshold', changedProps) checkPrimitiveDiff(oldProps.dumpNextRenderTargets, newProps.dumpNextRenderTargets, 'dumpNextRenderTargets', changedProps) - checkTextureDiff(oldProps.environmentBRDFTexture, newProps.environmentBRDFTexture, 'environmentBRDFTexture', changedProps) + // type: 'BabylonjsCoreBaseTexture' property (not coded) BabylonjsCoreScene.environmentBRDFTexture. checkPrimitiveDiff(oldProps.environmentIntensity, newProps.environmentIntensity, 'environmentIntensity', changedProps) - checkTextureDiff(oldProps.environmentTexture, newProps.environmentTexture, 'environmentTexture', changedProps) + // type: 'BabylonjsCoreBaseTexture' property (not coded) BabylonjsCoreScene.environmentTexture. checkPrimitiveDiff(oldProps.ExclusiveDoubleClickMode, newProps.ExclusiveDoubleClickMode, 'ExclusiveDoubleClickMode', changedProps) checkColor3Diff(oldProps.fogColor, newProps.fogColor, 'fogColor', changedProps) checkPrimitiveDiff(oldProps.fogDensity, newProps.fogDensity, 'fogDensity', changedProps) @@ -12826,11 +13130,13 @@ export class FiberScenePropsHandler implements PropsHandler { checkObservableDiff(oldProps.onMaterialRemovedObservable, newProps.onMaterialRemovedObservable, 'onMaterialRemovedObservable', changedProps) checkObservableDiff(oldProps.onMeshImportedObservable, newProps.onMeshImportedObservable, 'onMeshImportedObservable', changedProps) checkObservableDiff(oldProps.onMeshRemovedObservable, newProps.onMeshRemovedObservable, 'onMeshRemovedObservable', changedProps) + checkObservableDiff(oldProps.onMultiMaterialRemovedObservable, newProps.onMultiMaterialRemovedObservable, 'onMultiMaterialRemovedObservable', changedProps) checkObservableDiff(oldProps.onNewCameraAddedObservable, newProps.onNewCameraAddedObservable, 'onNewCameraAddedObservable', changedProps) checkObservableDiff(oldProps.onNewGeometryAddedObservable, newProps.onNewGeometryAddedObservable, 'onNewGeometryAddedObservable', changedProps) checkObservableDiff(oldProps.onNewLightAddedObservable, newProps.onNewLightAddedObservable, 'onNewLightAddedObservable', changedProps) checkObservableDiff(oldProps.onNewMaterialAddedObservable, newProps.onNewMaterialAddedObservable, 'onNewMaterialAddedObservable', changedProps) checkObservableDiff(oldProps.onNewMeshAddedObservable, newProps.onNewMeshAddedObservable, 'onNewMeshAddedObservable', changedProps) + checkObservableDiff(oldProps.onNewMultiMaterialAddedObservable, newProps.onNewMultiMaterialAddedObservable, 'onNewMultiMaterialAddedObservable', changedProps) checkObservableDiff(oldProps.onNewSkeletonAddedObservable, newProps.onNewSkeletonAddedObservable, 'onNewSkeletonAddedObservable', changedProps) checkObservableDiff(oldProps.onNewTextureAddedObservable, newProps.onNewTextureAddedObservable, 'onNewTextureAddedObservable', changedProps) checkObservableDiff(oldProps.onNewTransformNodeAddedObservable, newProps.onNewTransformNodeAddedObservable, 'onNewTransformNodeAddedObservable', changedProps) @@ -12846,14 +13152,15 @@ export class FiberScenePropsHandler implements PropsHandler { checkObservableDiff(oldProps.onTextureRemovedObservable, newProps.onTextureRemovedObservable, 'onTextureRemovedObservable', changedProps) checkObservableDiff(oldProps.onTransformNodeRemovedObservable, newProps.onTransformNodeRemovedObservable, 'onTransformNodeRemovedObservable', changedProps) checkPrimitiveDiff(oldProps.particlesEnabled, newProps.particlesEnabled, 'particlesEnabled', changedProps) + checkPrimitiveDiff(oldProps.physicsEnabled, newProps.physicsEnabled, 'physicsEnabled', changedProps) checkLambdaDiff(oldProps.pointerDownPredicate, newProps.pointerDownPredicate, 'pointerDownPredicate', changedProps) checkLambdaDiff(oldProps.pointerMovePredicate, newProps.pointerMovePredicate, 'pointerMovePredicate', changedProps) checkLambdaDiff(oldProps.pointerUpPredicate, newProps.pointerUpPredicate, 'pointerUpPredicate', changedProps) checkPrimitiveDiff(oldProps.pointerX, newProps.pointerX, 'pointerX', changedProps) checkPrimitiveDiff(oldProps.pointerY, newProps.pointerY, 'pointerY', changedProps) - // type: 'BabylonjsCorePostProcess[]' property (not coded) BabylonjsCoreScene.postProcesses. checkPrimitiveDiff(oldProps.postProcessesEnabled, newProps.postProcessesEnabled, 'postProcessesEnabled', changedProps) // type: 'BabylonjsCorePostProcessManager' property (not coded) BabylonjsCoreScene.postProcessManager. + checkPrimitiveDiff(oldProps.prePass, newProps.prePass, 'prePass', changedProps) checkPrimitiveDiff(oldProps.preventDefaultOnPointerDown, newProps.preventDefaultOnPointerDown, 'preventDefaultOnPointerDown', changedProps) checkPrimitiveDiff(oldProps.preventDefaultOnPointerUp, newProps.preventDefaultOnPointerUp, 'preventDefaultOnPointerUp', changedProps) checkPrimitiveDiff(oldProps.probesEnabled, newProps.probesEnabled, 'probesEnabled', changedProps) @@ -12897,7 +13204,7 @@ export class FiberScenePropsHandler implements PropsHandler { } } -export const ADTForMesh: string = 'ADTForMesh', ADTFullscreenUI: string = 'ADTFullscreenUI', AbstractButton3D: string = 'AbstractButton3D', AbstractMesh: string = 'AbstractMesh', AdvancedDynamicTexture: string = 'AdvancedDynamicTexture', AnaglyphArcRotateCamera: string = 'AnaglyphArcRotateCamera', AnaglyphFreeCamera: string = 'AnaglyphFreeCamera', AnaglyphGamepadCamera: string = 'AnaglyphGamepadCamera', AnaglyphUniversalCamera: string = 'AnaglyphUniversalCamera', ArcFollowCamera: string = 'ArcFollowCamera', ArcRotateCamera: string = 'ArcRotateCamera', AttachToBoxBehavior: string = 'AttachToBoxBehavior', AutoRotationBehavior: string = 'AutoRotationBehavior', BackgroundMaterial: string = 'BackgroundMaterial', BaseSlider: string = 'BaseSlider', BaseTexture: string = 'BaseTexture', BouncingBehavior: string = 'BouncingBehavior', Box: string = 'Box', Button: string = 'Button', Button3D: string = 'Button3D', Camera: string = 'Camera', CascadedShadowGenerator: string = 'CascadedShadowGenerator', Checkbox: string = 'Checkbox', ColorGradingTexture: string = 'ColorGradingTexture', ColorPicker: string = 'ColorPicker', Container: string = 'Container', Container3D: string = 'Container3D', Control: string = 'Control', Control3D: string = 'Control3D', CubeTexture: string = 'CubeTexture', CustomProceduralTexture: string = 'CustomProceduralTexture', Cylinder: string = 'Cylinder', CylinderPanel: string = 'CylinderPanel', DashedLines: string = 'DashedLines', Decal: string = 'Decal', DeviceOrientationCamera: string = 'DeviceOrientationCamera', DirectionalLight: string = 'DirectionalLight', Disc: string = 'Disc', DisplayGrid: string = 'DisplayGrid', DynamicTerrain: string = 'DynamicTerrain', DynamicTexture: string = 'DynamicTexture', EffectLayer: string = 'EffectLayer', Ellipse: string = 'Ellipse', EnvironmentHelper: string = 'EnvironmentHelper', EquiRectangularCubeTexture: string = 'EquiRectangularCubeTexture', ExtrudePolygon: string = 'ExtrudePolygon', ExtrudeShape: string = 'ExtrudeShape', ExtrudeShapeCustom: string = 'ExtrudeShapeCustom', FadeInOutBehavior: string = 'FadeInOutBehavior', FluentMaterial: string = 'FluentMaterial', FlyCamera: string = 'FlyCamera', FollowCamera: string = 'FollowCamera', FramingBehavior: string = 'FramingBehavior', FreeCamera: string = 'FreeCamera', GUI3DManager: string = 'GUI3DManager', GamepadCamera: string = 'GamepadCamera', GlowLayer: string = 'GlowLayer', Grid: string = 'Grid', Ground: string = 'Ground', GroundFromHeightMap: string = 'GroundFromHeightMap', GroundMesh: string = 'GroundMesh', HDRCubeTexture: string = 'HDRCubeTexture', HemisphericLight: string = 'HemisphericLight', HighlightLayer: string = 'HighlightLayer', HolographicButton: string = 'HolographicButton', HtmlElementTexture: string = 'HtmlElementTexture', IcoSphere: string = 'IcoSphere', Image: string = 'Image', ImageBasedSlider: string = 'ImageBasedSlider', ImageScrollBar: string = 'ImageScrollBar', InputPassword: string = 'InputPassword', InputText: string = 'InputText', InstancedLinesMesh: string = 'InstancedLinesMesh', InstancedMesh: string = 'InstancedMesh', Lathe: string = 'Lathe', Light: string = 'Light', Line: string = 'Line', LineSystem: string = 'LineSystem', Lines: string = 'Lines', LinesMesh: string = 'LinesMesh', Material: string = 'Material', Mesh: string = 'Mesh', MeshButton3D: string = 'MeshButton3D', MirrorTexture: string = 'MirrorTexture', Model: string = 'Model', MultiLine: string = 'MultiLine', MultiMaterial: string = 'MultiMaterial', MultiPointerScaleBehavior: string = 'MultiPointerScaleBehavior', MultiRenderTarget: string = 'MultiRenderTarget', MultiviewRenderTarget: string = 'MultiviewRenderTarget', Node: string = 'Node', NodeMaterial: string = 'NodeMaterial', NoiseProceduralTexture: string = 'NoiseProceduralTexture', PBRBaseMaterial: string = 'PBRBaseMaterial', PBRBaseSimpleMaterial: string = 'PBRBaseSimpleMaterial', PBRMaterial: string = 'PBRMaterial', PBRMetallicRoughnessMaterial: string = 'PBRMetallicRoughnessMaterial', PBRSpecularGlossinessMaterial: string = 'PBRSpecularGlossinessMaterial', PhysicsImpostor: string = 'PhysicsImpostor', Plane: string = 'Plane', PlanePanel: string = 'PlanePanel', PointLight: string = 'PointLight', PointerDragBehavior: string = 'PointerDragBehavior', PointsCloudSystem: string = 'PointsCloudSystem', Polygon: string = 'Polygon', Polyhedron: string = 'Polyhedron', ProceduralTexture: string = 'ProceduralTexture', PushMaterial: string = 'PushMaterial', RadioButton: string = 'RadioButton', RawCubeTexture: string = 'RawCubeTexture', RawTexture: string = 'RawTexture', RawTexture2DArray: string = 'RawTexture2DArray', RawTexture3D: string = 'RawTexture3D', Rectangle: string = 'Rectangle', RefractionTexture: string = 'RefractionTexture', RenderTargetTexture: string = 'RenderTargetTexture', Ribbon: string = 'Ribbon', ScatterPanel: string = 'ScatterPanel', ScrollBar: string = 'ScrollBar', ScrollViewer: string = 'ScrollViewer', SelectionPanel: string = 'SelectionPanel', ShaderMaterial: string = 'ShaderMaterial', ShadowGenerator: string = 'ShadowGenerator', ShadowLight: string = 'ShadowLight', SixDofDragBehavior: string = 'SixDofDragBehavior', Slider: string = 'Slider', Sphere: string = 'Sphere', SpherePanel: string = 'SpherePanel', SpotLight: string = 'SpotLight', StackPanel: string = 'StackPanel', StackPanel3D: string = 'StackPanel3D', StandardMaterial: string = 'StandardMaterial', StereoscopicArcRotateCamera: string = 'StereoscopicArcRotateCamera', StereoscopicFreeCamera: string = 'StereoscopicFreeCamera', StereoscopicGamepadCamera: string = 'StereoscopicGamepadCamera', StereoscopicUniversalCamera: string = 'StereoscopicUniversalCamera', TargetCamera: string = 'TargetCamera', TextBlock: string = 'TextBlock', Texture: string = 'Texture', TiledBox: string = 'TiledBox', TiledGround: string = 'TiledGround', TiledPlane: string = 'TiledPlane', Torus: string = 'Torus', TorusKnot: string = 'TorusKnot', TouchCamera: string = 'TouchCamera', TrailMesh: string = 'TrailMesh', TransformNode: string = 'TransformNode', Tube: string = 'Tube', UniversalCamera: string = 'UniversalCamera', VRDeviceOrientationArcRotateCamera: string = 'VRDeviceOrientationArcRotateCamera', VRDeviceOrientationFreeCamera: string = 'VRDeviceOrientationFreeCamera', VRDeviceOrientationGamepadCamera: string = 'VRDeviceOrientationGamepadCamera', VRExperienceHelper: string = 'VRExperienceHelper', VideoTexture: string = 'VideoTexture', VirtualJoysticksCamera: string = 'VirtualJoysticksCamera', VirtualKeyboard: string = 'VirtualKeyboard', VolumeBasedPanel: string = 'VolumeBasedPanel', WebVRFreeCamera: string = 'WebVRFreeCamera', WebXRCamera: string = 'WebXRCamera', _ScrollViewerWindow: string = '_ScrollViewerWindow'; +export const ADTForMesh: string = 'ADTForMesh', ADTForMeshTexture: string = 'ADTForMeshTexture', ADTFullscreenUI: string = 'ADTFullscreenUI', AbstractButton3D: string = 'AbstractButton3D', AbstractMesh: string = 'AbstractMesh', AdvancedDynamicTexture: string = 'AdvancedDynamicTexture', AnaglyphArcRotateCamera: string = 'AnaglyphArcRotateCamera', AnaglyphFreeCamera: string = 'AnaglyphFreeCamera', AnaglyphGamepadCamera: string = 'AnaglyphGamepadCamera', AnaglyphUniversalCamera: string = 'AnaglyphUniversalCamera', ArcFollowCamera: string = 'ArcFollowCamera', ArcRotateCamera: string = 'ArcRotateCamera', AttachToBoxBehavior: string = 'AttachToBoxBehavior', AutoRotationBehavior: string = 'AutoRotationBehavior', BackgroundMaterial: string = 'BackgroundMaterial', BaseSlider: string = 'BaseSlider', BaseTexture: string = 'BaseTexture', BouncingBehavior: string = 'BouncingBehavior', Box: string = 'Box', Button: string = 'Button', Button3D: string = 'Button3D', Camera: string = 'Camera', Capsule: string = 'Capsule', CascadedShadowGenerator: string = 'CascadedShadowGenerator', Checkbox: string = 'Checkbox', ColorGradingTexture: string = 'ColorGradingTexture', ColorPicker: string = 'ColorPicker', Container: string = 'Container', Container3D: string = 'Container3D', Control: string = 'Control', Control3D: string = 'Control3D', CubeTexture: string = 'CubeTexture', CustomProceduralTexture: string = 'CustomProceduralTexture', Cylinder: string = 'Cylinder', CylinderPanel: string = 'CylinderPanel', DashedLines: string = 'DashedLines', Decal: string = 'Decal', DeviceOrientationCamera: string = 'DeviceOrientationCamera', DirectionalLight: string = 'DirectionalLight', Disc: string = 'Disc', DisplayGrid: string = 'DisplayGrid', DynamicTerrain: string = 'DynamicTerrain', DynamicTexture: string = 'DynamicTexture', EffectLayer: string = 'EffectLayer', Ellipse: string = 'Ellipse', EnvironmentHelper: string = 'EnvironmentHelper', EquiRectangularCubeTexture: string = 'EquiRectangularCubeTexture', ExtrudePolygon: string = 'ExtrudePolygon', ExtrudeShape: string = 'ExtrudeShape', ExtrudeShapeCustom: string = 'ExtrudeShapeCustom', FadeInOutBehavior: string = 'FadeInOutBehavior', FluentMaterial: string = 'FluentMaterial', FlyCamera: string = 'FlyCamera', FollowCamera: string = 'FollowCamera', FramingBehavior: string = 'FramingBehavior', FreeCamera: string = 'FreeCamera', GUI3DManager: string = 'GUI3DManager', GamepadCamera: string = 'GamepadCamera', GlowLayer: string = 'GlowLayer', Grid: string = 'Grid', Ground: string = 'Ground', GroundFromHeightMap: string = 'GroundFromHeightMap', GroundMesh: string = 'GroundMesh', HDRCubeTexture: string = 'HDRCubeTexture', HemisphericLight: string = 'HemisphericLight', HighlightLayer: string = 'HighlightLayer', HolographicButton: string = 'HolographicButton', HtmlElementTexture: string = 'HtmlElementTexture', IcoSphere: string = 'IcoSphere', Image: string = 'Image', ImageBasedSlider: string = 'ImageBasedSlider', ImageScrollBar: string = 'ImageScrollBar', InputPassword: string = 'InputPassword', InputText: string = 'InputText', InstancedLinesMesh: string = 'InstancedLinesMesh', InstancedMesh: string = 'InstancedMesh', Lathe: string = 'Lathe', Light: string = 'Light', Line: string = 'Line', LineSystem: string = 'LineSystem', Lines: string = 'Lines', LinesMesh: string = 'LinesMesh', Material: string = 'Material', Mesh: string = 'Mesh', MeshButton3D: string = 'MeshButton3D', MirrorTexture: string = 'MirrorTexture', Model: string = 'Model', MultiLine: string = 'MultiLine', MultiMaterial: string = 'MultiMaterial', MultiPointerScaleBehavior: string = 'MultiPointerScaleBehavior', MultiRenderTarget: string = 'MultiRenderTarget', MultiviewRenderTarget: string = 'MultiviewRenderTarget', Node: string = 'Node', NodeMaterial: string = 'NodeMaterial', NoiseProceduralTexture: string = 'NoiseProceduralTexture', PBRBaseMaterial: string = 'PBRBaseMaterial', PBRBaseSimpleMaterial: string = 'PBRBaseSimpleMaterial', PBRMaterial: string = 'PBRMaterial', PBRMetallicRoughnessMaterial: string = 'PBRMetallicRoughnessMaterial', PBRSpecularGlossinessMaterial: string = 'PBRSpecularGlossinessMaterial', PhysicsImpostor: string = 'PhysicsImpostor', Plane: string = 'Plane', PlanePanel: string = 'PlanePanel', PointLight: string = 'PointLight', PointerDragBehavior: string = 'PointerDragBehavior', PointsCloudSystem: string = 'PointsCloudSystem', Polygon: string = 'Polygon', Polyhedron: string = 'Polyhedron', ProceduralTexture: string = 'ProceduralTexture', PushMaterial: string = 'PushMaterial', RadioButton: string = 'RadioButton', RawCubeTexture: string = 'RawCubeTexture', RawTexture: string = 'RawTexture', RawTexture2DArray: string = 'RawTexture2DArray', RawTexture3D: string = 'RawTexture3D', Rectangle: string = 'Rectangle', RefractionTexture: string = 'RefractionTexture', RenderTargetTexture: string = 'RenderTargetTexture', Ribbon: string = 'Ribbon', ScatterPanel: string = 'ScatterPanel', ScrollBar: string = 'ScrollBar', ScrollViewer: string = 'ScrollViewer', SelectionPanel: string = 'SelectionPanel', ShaderMaterial: string = 'ShaderMaterial', ShadowGenerator: string = 'ShadowGenerator', ShadowLight: string = 'ShadowLight', SixDofDragBehavior: string = 'SixDofDragBehavior', Slider: string = 'Slider', Sphere: string = 'Sphere', SpherePanel: string = 'SpherePanel', SpotLight: string = 'SpotLight', StackPanel: string = 'StackPanel', StackPanel3D: string = 'StackPanel3D', StandardMaterial: string = 'StandardMaterial', StereoscopicArcRotateCamera: string = 'StereoscopicArcRotateCamera', StereoscopicFreeCamera: string = 'StereoscopicFreeCamera', StereoscopicGamepadCamera: string = 'StereoscopicGamepadCamera', StereoscopicUniversalCamera: string = 'StereoscopicUniversalCamera', TargetCamera: string = 'TargetCamera', TextBlock: string = 'TextBlock', Texture: string = 'Texture', ThinTexture: string = 'ThinTexture', TiledBox: string = 'TiledBox', TiledGround: string = 'TiledGround', TiledPlane: string = 'TiledPlane', Torus: string = 'Torus', TorusKnot: string = 'TorusKnot', TouchCamera: string = 'TouchCamera', TrailMesh: string = 'TrailMesh', TransformNode: string = 'TransformNode', Tube: string = 'Tube', UniversalCamera: string = 'UniversalCamera', VRDeviceOrientationArcRotateCamera: string = 'VRDeviceOrientationArcRotateCamera', VRDeviceOrientationFreeCamera: string = 'VRDeviceOrientationFreeCamera', VRDeviceOrientationGamepadCamera: string = 'VRDeviceOrientationGamepadCamera', VRExperienceHelper: string = 'VRExperienceHelper', VideoTexture: string = 'VideoTexture', VirtualJoysticksCamera: string = 'VirtualJoysticksCamera', VirtualKeyboard: string = 'VirtualKeyboard', VolumeBasedPanel: string = 'VolumeBasedPanel', WebVRFreeCamera: string = 'WebVRFreeCamera', WebXRCamera: string = 'WebXRCamera', _ScrollViewerWindow: string = '_ScrollViewerWindow'; const classesMap: object = { dynamicTerrain: ExtensionsDynamicTerrain, DynamicTerrain: ExtensionsDynamicTerrain, abstractScene: BabylonjsCoreAbstractScene, AbstractScene: BabylonjsCoreAbstractScene, @@ -12926,7 +13233,7 @@ const classesMap: object = { vrExperienceHelper: BabylonjsCoreVRExperienceHelper, VRExperienceHelper: BabylonjsCoreVRExperienceHelper, cascadedShadowGenerator: BabylonjsCoreCascadedShadowGenerator, CascadedShadowGenerator: BabylonjsCoreCascadedShadowGenerator, shadowGenerator: BabylonjsCoreShadowGenerator, ShadowGenerator: BabylonjsCoreShadowGenerator, - baseTexture: BabylonjsCoreBaseTexture, BaseTexture: BabylonjsCoreBaseTexture, + thinTexture: BabylonjsCoreThinTexture, ThinTexture: BabylonjsCoreThinTexture, control: BabylonjsGuiControl, Control: BabylonjsGuiControl, textBlock: BabylonjsGuiTextBlock, TextBlock: BabylonjsGuiTextBlock, control3D: BabylonjsGuiControl3D, Control3D: BabylonjsGuiControl3D, @@ -12961,11 +13268,10 @@ const classesMap: object = { flyCamera: BabylonjsCoreFlyCamera, FlyCamera: BabylonjsCoreFlyCamera, followCamera: BabylonjsCoreFollowCamera, FollowCamera: BabylonjsCoreFollowCamera, arcFollowCamera: BabylonjsCoreArcFollowCamera, ArcFollowCamera: BabylonjsCoreArcFollowCamera, - shaderMaterial: BabylonjsCoreShaderMaterial, ShaderMaterial: BabylonjsCoreShaderMaterial, - texture: BabylonjsCoreTexture, Texture: BabylonjsCoreTexture, - multiMaterial: BabylonjsCoreMultiMaterial, MultiMaterial: BabylonjsCoreMultiMaterial, pushMaterial: BabylonjsCorePushMaterial, PushMaterial: BabylonjsCorePushMaterial, + nodeMaterial: BabylonjsCoreNodeMaterial, NodeMaterial: BabylonjsCoreNodeMaterial, standardMaterial: BabylonjsCoreStandardMaterial, StandardMaterial: BabylonjsCoreStandardMaterial, + baseTexture: BabylonjsCoreBaseTexture, BaseTexture: BabylonjsCoreBaseTexture, backgroundMaterial: BabylonjsCoreBackgroundMaterial, BackgroundMaterial: BabylonjsCoreBackgroundMaterial, shadowLight: BabylonjsCoreShadowLight, ShadowLight: BabylonjsCoreShadowLight, pbrBaseMaterial: BabylonjsCorePBRBaseMaterial, PBRBaseMaterial: BabylonjsCorePBRBaseMaterial, @@ -12973,8 +13279,9 @@ const classesMap: object = { pbrMetallicRoughnessMaterial: BabylonjsCorePBRMetallicRoughnessMaterial, PBRMetallicRoughnessMaterial: BabylonjsCorePBRMetallicRoughnessMaterial, pbrSpecularGlossinessMaterial: BabylonjsCorePBRSpecularGlossinessMaterial, PBRSpecularGlossinessMaterial: BabylonjsCorePBRSpecularGlossinessMaterial, pbrMaterial: BabylonjsCorePBRMaterial, PBRMaterial: BabylonjsCorePBRMaterial, - nodeMaterial: BabylonjsCoreNodeMaterial, NodeMaterial: BabylonjsCoreNodeMaterial, fluentMaterial: BabylonjsGuiFluentMaterial, FluentMaterial: BabylonjsGuiFluentMaterial, + shaderMaterial: BabylonjsCoreShaderMaterial, ShaderMaterial: BabylonjsCoreShaderMaterial, + multiMaterial: BabylonjsCoreMultiMaterial, MultiMaterial: BabylonjsCoreMultiMaterial, directionalLight: BabylonjsCoreDirectionalLight, DirectionalLight: BabylonjsCoreDirectionalLight, pointLight: BabylonjsCorePointLight, PointLight: BabylonjsCorePointLight, spotLight: BabylonjsCoreSpotLight, SpotLight: BabylonjsCoreSpotLight, @@ -13015,6 +13322,7 @@ const classesMap: object = { holographicButton: BabylonjsGuiHolographicButton, HolographicButton: BabylonjsGuiHolographicButton, meshButton3D: BabylonjsGuiMeshButton3D, MeshButton3D: BabylonjsGuiMeshButton3D, glowLayer: BabylonjsCoreGlowLayer, GlowLayer: BabylonjsCoreGlowLayer, + texture: BabylonjsCoreTexture, Texture: BabylonjsCoreTexture, highlightLayer: BabylonjsCoreHighlightLayer, HighlightLayer: BabylonjsCoreHighlightLayer, cubeTexture: BabylonjsCoreCubeTexture, CubeTexture: BabylonjsCoreCubeTexture, rawCubeTexture: BabylonjsCoreRawCubeTexture, RawCubeTexture: BabylonjsCoreRawCubeTexture, @@ -13028,8 +13336,8 @@ const classesMap: object = { multiviewRenderTarget: BabylonjsCoreMultiviewRenderTarget, MultiviewRenderTarget: BabylonjsCoreMultiviewRenderTarget, videoTexture: BabylonjsCoreVideoTexture, VideoTexture: BabylonjsCoreVideoTexture, dynamicTexture: BabylonjsCoreDynamicTexture, DynamicTexture: BabylonjsCoreDynamicTexture, - rawTexture3D: BabylonjsCoreRawTexture3D, RawTexture3D: BabylonjsCoreRawTexture3D, rawTexture2DArray: BabylonjsCoreRawTexture2DArray, RawTexture2DArray: BabylonjsCoreRawTexture2DArray, + rawTexture3D: BabylonjsCoreRawTexture3D, RawTexture3D: BabylonjsCoreRawTexture3D, colorGradingTexture: BabylonjsCoreColorGradingTexture, ColorGradingTexture: BabylonjsCoreColorGradingTexture, equiRectangularCubeTexture: BabylonjsCoreEquiRectangularCubeTexture, EquiRectangularCubeTexture: BabylonjsCoreEquiRectangularCubeTexture, hdrCubeTexture: BabylonjsCoreHDRCubeTexture, HDRCubeTexture: BabylonjsCoreHDRCubeTexture, @@ -13063,7 +13371,7 @@ export const intrinsicClassMap: object = { vrExperienceHelper: 'VRExperienceHelper', cascadedShadowGenerator: 'CascadedShadowGenerator', shadowGenerator: 'ShadowGenerator', - baseTexture: 'BaseTexture', + thinTexture: 'ThinTexture', control: 'Control', textBlock: 'TextBlock', control3D: 'Control3D', @@ -13098,11 +13406,10 @@ export const intrinsicClassMap: object = { flyCamera: 'FlyCamera', followCamera: 'FollowCamera', arcFollowCamera: 'ArcFollowCamera', - shaderMaterial: 'ShaderMaterial', - texture: 'Texture', - multiMaterial: 'MultiMaterial', pushMaterial: 'PushMaterial', + nodeMaterial: 'NodeMaterial', standardMaterial: 'StandardMaterial', + baseTexture: 'BaseTexture', backgroundMaterial: 'BackgroundMaterial', shadowLight: 'ShadowLight', pbrBaseMaterial: 'PBRBaseMaterial', @@ -13110,8 +13417,9 @@ export const intrinsicClassMap: object = { pbrMetallicRoughnessMaterial: 'PBRMetallicRoughnessMaterial', pbrSpecularGlossinessMaterial: 'PBRSpecularGlossinessMaterial', pbrMaterial: 'PBRMaterial', - nodeMaterial: 'NodeMaterial', fluentMaterial: 'FluentMaterial', + shaderMaterial: 'ShaderMaterial', + multiMaterial: 'MultiMaterial', directionalLight: 'DirectionalLight', pointLight: 'PointLight', spotLight: 'SpotLight', @@ -13152,6 +13460,7 @@ export const intrinsicClassMap: object = { holographicButton: 'HolographicButton', meshButton3D: 'MeshButton3D', glowLayer: 'GlowLayer', + texture: 'Texture', highlightLayer: 'HighlightLayer', cubeTexture: 'CubeTexture', rawCubeTexture: 'RawCubeTexture', @@ -13165,15 +13474,17 @@ export const intrinsicClassMap: object = { multiviewRenderTarget: 'MultiviewRenderTarget', videoTexture: 'VideoTexture', dynamicTexture: 'DynamicTexture', - rawTexture3D: 'RawTexture3D', rawTexture2DArray: 'RawTexture2DArray', + rawTexture3D: 'RawTexture3D', colorGradingTexture: 'ColorGradingTexture', equiRectangularCubeTexture: 'EquiRectangularCubeTexture', hdrCubeTexture: 'HDRCubeTexture', htmlElementTexture: 'HtmlElementTexture', adtForMesh: 'ADTForMesh', + adtForMeshTexture: 'ADTForMeshTexture', adtFullscreenUi: 'ADTFullscreenUI', box: 'Box', + capsule: 'Capsule', cylinder: 'Cylinder', dashedLines: 'DashedLines', decal: 'Decal', diff --git a/src/generatedProps.ts b/src/generatedProps.ts index b9f80920..c2e8fd17 100644 --- a/src/generatedProps.ts +++ b/src/generatedProps.ts @@ -12,8 +12,8 @@ import { EnvironmentHelper as BabylonjsCoreEnvironmentHelper, IEnvironmentHelper import { EffectLayer as BabylonjsCoreEffectLayer } from "@babylonjs/core/Layers/effectLayer"; import { Light as BabylonjsCoreLight } from "@babylonjs/core/Lights/light"; import { SceneLoaderAnimationGroupLoadingMode as BabylonjsCoreSceneLoaderAnimationGroupLoadingMode } from "@babylonjs/core/Loading/sceneLoader"; -import { Material as BabylonjsCoreMaterial } from "@babylonjs/core/Materials/material"; -import { Space as BabylonjsCoreSpace } from "@babylonjs/core/Maths/math.axis"; +import { Material as BabylonjsCoreMaterial, ICustomShaderNameResolveOptions as BabylonjsCoreICustomShaderNameResolveOptions } from "@babylonjs/core/Materials/material"; +import { Space as BabylonjsCoreSpace, Coordinate as BabylonjsCoreCoordinate } from "@babylonjs/core/Maths/math.axis"; import { Orientation as BabylonjsCoreOrientation } from "@babylonjs/core/Maths/math.path"; import { AbstractMesh as BabylonjsCoreAbstractMesh } from "@babylonjs/core/Meshes/abstractMesh"; import { Mesh as BabylonjsCoreMesh } from "@babylonjs/core/Meshes/mesh"; @@ -21,6 +21,7 @@ import { MeshBuilder as BabylonjsCoreMeshBuilder } from "@babylonjs/core/Meshes/ import { TransformNode as BabylonjsCoreTransformNode } from "@babylonjs/core/Meshes/transformNode"; import { AssetTaskState as BabylonjsCoreAssetTaskState } from "@babylonjs/core/Misc/assetsManager"; import { InspectableType as BabylonjsCoreInspectableType, IInspectable as BabylonjsCoreIInspectable } from "@babylonjs/core/Misc/iInspectable"; +import { TimerState as BabylonjsCoreTimerState } from "@babylonjs/core/Misc/timer"; import { JoystickAxis as BabylonjsCoreJoystickAxis } from "@babylonjs/core/Misc/virtualJoystick"; import { PointsCloudSystem as BabylonjsCorePointsCloudSystem, PointColor as BabylonjsCorePointColor } from "@babylonjs/core/Particles/pointsCloudSystem"; import { SubEmitterType as BabylonjsCoreSubEmitterType } from "@babylonjs/core/Particles/subEmitter"; @@ -28,7 +29,7 @@ import { PhysicsRadialImpulseFalloff as BabylonjsCorePhysicsRadialImpulseFalloff import { PhysicsImpostor as BabylonjsCorePhysicsImpostor, IPhysicsEnabledObject as BabylonjsCoreIPhysicsEnabledObject, PhysicsImpostorParameters as BabylonjsCorePhysicsImpostorParameters } from "@babylonjs/core/Physics/physicsImpostor"; import { DepthOfFieldEffectBlurLevel as BabylonjsCoreDepthOfFieldEffectBlurLevel } from "@babylonjs/core/PostProcesses/depthOfFieldEffect"; import { TonemappingOperator as BabylonjsCoreTonemappingOperator } from "@babylonjs/core/PostProcesses/tonemapPostProcess"; -import { WebXRState as BabylonjsCoreWebXRState } from "@babylonjs/core/XR/webXRTypes"; +import { WebXRState as BabylonjsCoreWebXRState, WebXRTrackingState as BabylonjsCoreWebXRTrackingState } from "@babylonjs/core/XR/webXRTypes"; import { AdvancedDynamicTexture as BabylonjsGuiAdvancedDynamicTexture, IFocusableControl as BabylonjsGuiIFocusableControl } from "@babylonjs/gui/2D/advancedDynamicTexture"; import { GUI3DManager as BabylonjsGuiGUI3DManager } from "@babylonjs/gui/3D/gui3DManager"; import { AutoRotationBehavior as BabylonjsCoreAutoRotationBehavior } from "@babylonjs/core/Behaviors/Cameras/autoRotationBehavior"; @@ -40,12 +41,15 @@ import { MultiPointerScaleBehavior as BabylonjsCoreMultiPointerScaleBehavior } f import { PointerDragBehavior as BabylonjsCorePointerDragBehavior } from "@babylonjs/core/Behaviors/Meshes/pointerDragBehavior"; import { SixDofDragBehavior as BabylonjsCoreSixDofDragBehavior } from "@babylonjs/core/Behaviors/Meshes/sixDofDragBehavior"; import { VRExperienceHelper as BabylonjsCoreVRExperienceHelper, OnAfterEnteringVRObservableEvent as BabylonjsCoreOnAfterEnteringVRObservableEvent, VRExperienceHelperOptions as BabylonjsCoreVRExperienceHelperOptions, VRTeleportationOptions as BabylonjsCoreVRTeleportationOptions } from "@babylonjs/core/Cameras/VR/vrExperienceHelper"; +import { DeviceType as BabylonjsCoreDeviceType, PointerInput as BabylonjsCorePointerInput, DualShockInput as BabylonjsCoreDualShockInput, XboxInput as BabylonjsCoreXboxInput, SwitchInput as BabylonjsCoreSwitchInput } from "@babylonjs/core/DeviceInput/InputDevices/deviceEnums"; import { PoseEnabledControllerType as BabylonjsCorePoseEnabledControllerType } from "@babylonjs/core/Gamepads/Controllers/poseEnabledController"; import { CascadedShadowGenerator as BabylonjsCoreCascadedShadowGenerator } from "@babylonjs/core/Lights/Shadows/cascadedShadowGenerator"; import { ShadowGenerator as BabylonjsCoreShadowGenerator, ICustomShaderOptions as BabylonjsCoreICustomShaderOptions } from "@babylonjs/core/Lights/Shadows/shadowGenerator"; import { NodeMaterialConnectionPointCompatibilityStates as BabylonjsCoreNodeMaterialConnectionPointCompatibilityStates, NodeMaterialConnectionPointDirection as BabylonjsCoreNodeMaterialConnectionPointDirection } from "@babylonjs/core/Materials/Node/nodeMaterialBlockConnectionPoint"; -import { BaseTexture as BabylonjsCoreBaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture"; -import { InternalTextureSource as BabylonjsCoreInternalTextureSource } from "@babylonjs/core/Materials/Textures/internalTexture"; +import { PropertyTypeForEdition as BabylonjsCorePropertyTypeForEdition } from "@babylonjs/core/Materials/Node/nodeMaterialDecorator"; +import { InternalTextureSource as BabylonjsCoreInternalTextureSource, InternalTexture as BabylonjsCoreInternalTexture } from "@babylonjs/core/Materials/Textures/internalTexture"; +import { ThinTexture as BabylonjsCoreThinTexture } from "@babylonjs/core/Materials/Textures/thinTexture"; +import { HandPart as BabylonjsCoreHandPart } from "@babylonjs/core/XR/features/WebXRHandTracking"; import { Control as BabylonjsGuiControl } from "@babylonjs/gui/2D/controls/control"; import { TextWrapping as BabylonjsGuiTextWrapping, TextBlock as BabylonjsGuiTextBlock } from "@babylonjs/gui/2D/controls/textBlock"; import { Control3D as BabylonjsGuiControl3D } from "@babylonjs/gui/3D/controls/control3D"; @@ -54,6 +58,7 @@ import { WaveBlockKind as BabylonjsCoreWaveBlockKind } from "@babylonjs/core/Mat import { NodeMaterialBlockConnectionPointMode as BabylonjsCoreNodeMaterialBlockConnectionPointMode } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockConnectionPointMode"; import { NodeMaterialBlockConnectionPointTypes as BabylonjsCoreNodeMaterialBlockConnectionPointTypes } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes"; import { NodeMaterialBlockTargets as BabylonjsCoreNodeMaterialBlockTargets } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockTargets"; +import { NodeMaterialModes as BabylonjsCoreNodeMaterialModes } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialModes"; import { NodeMaterialSystemValues as BabylonjsCoreNodeMaterialSystemValues } from "@babylonjs/core/Materials/Node/Enums/nodeMaterialSystemValues"; import { AnimatedInputBlockTypes as BabylonjsCoreAnimatedInputBlockTypes } from "@babylonjs/core/Materials/Node/Blocks/Input/animatedInputBlockTypes"; import { Node as BabylonjsCoreNode } from "@babylonjs/core/node"; @@ -67,6 +72,7 @@ import { AbstractActionManager as BabylonjsCoreAbstractActionManager } from "@ba import { Color4 as BabylonjsCoreColor4, Color3 as BabylonjsCoreColor3 } from "@babylonjs/core/Maths/math.color"; import { Skeleton as BabylonjsCoreSkeleton } from "@babylonjs/core/Bones/skeleton"; import { SubMesh as BabylonjsCoreSubMesh } from "@babylonjs/core/Meshes/subMesh"; +import { IEdgesRendererOptions as BabylonjsCoreIEdgesRendererOptions } from "@babylonjs/core/Rendering/edgesRenderer"; import { BoundingInfo as BabylonjsCoreBoundingInfo } from "@babylonjs/core/Culling/boundingInfo"; import { InstancedMesh as BabylonjsCoreInstancedMesh } from "@babylonjs/core/Meshes/instancedMesh"; import { InstancedLinesMesh as BabylonjsCoreInstancedLinesMesh, LinesMesh as BabylonjsCoreLinesMesh } from "@babylonjs/core/Meshes/linesMesh"; @@ -108,26 +114,30 @@ import { FlyCameraInputsManager as BabylonjsCoreFlyCameraInputsManager } from "@ import { FollowCamera as BabylonjsCoreFollowCamera, ArcFollowCamera as BabylonjsCoreArcFollowCamera } from "@babylonjs/core/Cameras/followCamera"; import { FollowCameraInputsManager as BabylonjsCoreFollowCameraInputsManager } from "@babylonjs/core/Cameras/followCameraInputsManager"; import { Plane as BabylonjsCorePlane } from "@babylonjs/core/Maths/math.plane"; +import { ICreateCapsuleOptions as BabylonjsCoreICreateCapsuleOptions } from "@babylonjs/core/Meshes/Builders/capsuleBuilder"; +import { MaterialDefines as BabylonjsCoreMaterialDefines } from "@babylonjs/core/Materials/materialDefines"; import { SmartArray as BabylonjsCoreSmartArray, ISmartArrayLike as BabylonjsCoreISmartArrayLike } from "@babylonjs/core/Misc/smartArray"; import { Effect as BabylonjsCoreEffect } from "@babylonjs/core/Materials/effect"; -import { ShaderMaterial as BabylonjsCoreShaderMaterial, IShaderMaterialOptions as BabylonjsCoreIShaderMaterialOptions } from "@babylonjs/core/Materials/shaderMaterial"; -import { Texture as BabylonjsCoreTexture } from "@babylonjs/core/Materials/Textures/texture"; -import { MultiMaterial as BabylonjsCoreMultiMaterial } from "@babylonjs/core/Materials/multiMaterial"; +import { ShadowDepthWrapper as BabylonjsCoreShadowDepthWrapper } from "@babylonjs/core/Materials/shadowDepthWrapper"; +import { PrePassRenderer as BabylonjsCorePrePassRenderer } from "@babylonjs/core/Rendering/prePassRenderer"; import { PushMaterial as BabylonjsCorePushMaterial } from "@babylonjs/core/Materials/pushMaterial"; -import { StandardMaterial as BabylonjsCoreStandardMaterial, StandardMaterialDefines as BabylonjsCoreStandardMaterialDefines } from "@babylonjs/core/Materials/standardMaterial"; +import { NodeMaterial as BabylonjsCoreNodeMaterial, INodeMaterialOptions as BabylonjsCoreINodeMaterialOptions } from "@babylonjs/core/Materials/Node/nodeMaterial"; +import { NodeMaterialBlock as BabylonjsCoreNodeMaterialBlock } from "@babylonjs/core/Materials/Node/nodeMaterialBlock"; +import { ImageProcessingConfiguration as BabylonjsCoreImageProcessingConfiguration } from "@babylonjs/core/Materials/imageProcessingConfiguration"; +import { StandardMaterial as BabylonjsCoreStandardMaterial } from "@babylonjs/core/Materials/standardMaterial"; +import { BaseTexture as BabylonjsCoreBaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture"; import { ColorCurves as BabylonjsCoreColorCurves } from "@babylonjs/core/Materials/colorCurves"; import { FresnelParameters as BabylonjsCoreFresnelParameters } from "@babylonjs/core/Materials/fresnelParameters"; -import { ImageProcessingConfiguration as BabylonjsCoreImageProcessingConfiguration } from "@babylonjs/core/Materials/imageProcessingConfiguration"; import { BackgroundMaterial as BabylonjsCoreBackgroundMaterial } from "@babylonjs/core/Materials/Background/backgroundMaterial"; import { IShadowLight as BabylonjsCoreIShadowLight, ShadowLight as BabylonjsCoreShadowLight } from "@babylonjs/core/Lights/shadowLight"; -import { PBRBaseMaterial as BabylonjsCorePBRBaseMaterial, PBRMaterialDefines as BabylonjsCorePBRMaterialDefines } from "@babylonjs/core/Materials/PBR/pbrBaseMaterial"; +import { PBRBaseMaterial as BabylonjsCorePBRBaseMaterial } from "@babylonjs/core/Materials/PBR/pbrBaseMaterial"; import { PBRBaseSimpleMaterial as BabylonjsCorePBRBaseSimpleMaterial } from "@babylonjs/core/Materials/PBR/pbrBaseSimpleMaterial"; import { PBRMetallicRoughnessMaterial as BabylonjsCorePBRMetallicRoughnessMaterial } from "@babylonjs/core/Materials/PBR/pbrMetallicRoughnessMaterial"; import { PBRSpecularGlossinessMaterial as BabylonjsCorePBRSpecularGlossinessMaterial } from "@babylonjs/core/Materials/PBR/pbrSpecularGlossinessMaterial"; import { PBRMaterial as BabylonjsCorePBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial"; -import { NodeMaterial as BabylonjsCoreNodeMaterial, INodeMaterialOptions as BabylonjsCoreINodeMaterialOptions } from "@babylonjs/core/Materials/Node/nodeMaterial"; -import { NodeMaterialBlock as BabylonjsCoreNodeMaterialBlock } from "@babylonjs/core/Materials/Node/nodeMaterialBlock"; import { FluentMaterial as BabylonjsGuiFluentMaterial } from "@babylonjs/gui/3D/materials/fluentMaterial"; +import { ShaderMaterial as BabylonjsCoreShaderMaterial, IShaderMaterialOptions as BabylonjsCoreIShaderMaterialOptions } from "@babylonjs/core/Materials/shaderMaterial"; +import { MultiMaterial as BabylonjsCoreMultiMaterial } from "@babylonjs/core/Materials/multiMaterial"; import { DirectionalLight as BabylonjsCoreDirectionalLight } from "@babylonjs/core/Lights/directionalLight"; import { PointLight as BabylonjsCorePointLight } from "@babylonjs/core/Lights/pointLight"; import { SpotLight as BabylonjsCoreSpotLight } from "@babylonjs/core/Lights/spotLight"; @@ -172,12 +182,14 @@ import { Button3D as BabylonjsGuiButton3D } from "@babylonjs/gui/3D/controls/but import { HolographicButton as BabylonjsGuiHolographicButton } from "@babylonjs/gui/3D/controls/holographicButton"; import { MeshButton3D as BabylonjsGuiMeshButton3D } from "@babylonjs/gui/3D/controls/meshButton3D"; import { GlowLayer as BabylonjsCoreGlowLayer, IGlowLayerOptions as BabylonjsCoreIGlowLayerOptions } from "@babylonjs/core/Layers/glowLayer"; +import { Texture as BabylonjsCoreTexture } from "@babylonjs/core/Materials/Textures/texture"; import { HighlightLayer as BabylonjsCoreHighlightLayer, IHighlightLayerOptions as BabylonjsCoreIHighlightLayerOptions } from "@babylonjs/core/Layers/highlightLayer"; +import { ThinEngine as BabylonjsCoreThinEngine } from "@babylonjs/core/Engines/thinEngine"; import { CubeTexture as BabylonjsCoreCubeTexture } from "@babylonjs/core/Materials/Textures/cubeTexture"; import { RawCubeTexture as BabylonjsCoreRawCubeTexture } from "@babylonjs/core/Materials/Textures/rawCubeTexture"; -import { ThinEngine as BabylonjsCoreThinEngine } from "@babylonjs/core/Engines/thinEngine"; import { RawTexture as BabylonjsCoreRawTexture } from "@babylonjs/core/Materials/Textures/rawTexture"; import { ProceduralTexture as BabylonjsCoreProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/proceduralTexture"; +import { RenderTargetTextureSize as BabylonjsCoreRenderTargetTextureSize } from "@babylonjs/core/Engines/Extensions/engine.renderTarget"; import { CustomProceduralTexture as BabylonjsCoreCustomProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/customProceduralTexture"; import { NoiseProceduralTexture as BabylonjsCoreNoiseProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/noiseProceduralTexture"; import { Engine as BabylonjsCoreEngine } from "@babylonjs/core/Engines/engine"; @@ -189,8 +201,8 @@ import { MultiviewRenderTarget as BabylonjsCoreMultiviewRenderTarget } from "@ba import { VideoTexture as BabylonjsCoreVideoTexture, VideoTextureSettings as BabylonjsCoreVideoTextureSettings } from "@babylonjs/core/Materials/Textures/videoTexture"; import { DynamicTexture as BabylonjsCoreDynamicTexture } from "@babylonjs/core/Materials/Textures/dynamicTexture"; import { ClipboardInfo as BabylonjsCoreClipboardInfo } from "@babylonjs/core/Events/clipboardEvents"; -import { RawTexture3D as BabylonjsCoreRawTexture3D } from "@babylonjs/core/Materials/Textures/rawTexture3D"; import { RawTexture2DArray as BabylonjsCoreRawTexture2DArray } from "@babylonjs/core/Materials/Textures/rawTexture2DArray"; +import { RawTexture3D as BabylonjsCoreRawTexture3D } from "@babylonjs/core/Materials/Textures/rawTexture3D"; import { ColorGradingTexture as BabylonjsCoreColorGradingTexture } from "@babylonjs/core/Materials/Textures/colorGradingTexture"; import { EquiRectangularCubeTexture as BabylonjsCoreEquiRectangularCubeTexture } from "@babylonjs/core/Materials/Textures/equiRectangularCubeTexture"; import { HDRCubeTexture as BabylonjsCoreHDRCubeTexture } from "@babylonjs/core/Materials/Textures/hdrCubeTexture"; @@ -282,10 +294,10 @@ declare global { tube: FiberMeshProps & FiberTubePropsCtor & BabylonNode; polyhedron: FiberMeshProps & FiberPolyhedronPropsCtor & BabylonNode; decal: FiberMeshProps & FiberDecalPropsCtor & BabylonNode; + capsule: FiberMeshProps & FiberCapsulePropsCtor & BabylonNode; material: FiberMaterialProps & FiberMaterialPropsCtor & BabylonNode; - shaderMaterial: FiberShaderMaterialProps & FiberShaderMaterialPropsCtor & BabylonNode; - multiMaterial: FiberMultiMaterialProps & FiberMultiMaterialPropsCtor & BabylonNode; pushMaterial: FiberPushMaterialProps & FiberPushMaterialPropsCtor & BabylonNode; + nodeMaterial: FiberNodeMaterialProps & FiberNodeMaterialPropsCtor & BabylonNode; standardMaterial: FiberStandardMaterialProps & FiberStandardMaterialPropsCtor & BabylonNode; backgroundMaterial: FiberBackgroundMaterialProps & FiberBackgroundMaterialPropsCtor & BabylonNode; pbrBaseMaterial: FiberPBRBaseMaterialProps & FiberPBRBaseMaterialPropsCtor & BabylonNode; @@ -293,8 +305,9 @@ declare global { pbrMetallicRoughnessMaterial: FiberPBRMetallicRoughnessMaterialProps & FiberPBRMetallicRoughnessMaterialPropsCtor & BabylonNode; pbrSpecularGlossinessMaterial: FiberPBRSpecularGlossinessMaterialProps & FiberPBRSpecularGlossinessMaterialPropsCtor & BabylonNode; pbrMaterial: FiberPBRMaterialProps & FiberPBRMaterialPropsCtor & BabylonNode; - nodeMaterial: FiberNodeMaterialProps & FiberNodeMaterialPropsCtor & BabylonNode; fluentMaterial: FiberFluentMaterialProps & FiberFluentMaterialPropsCtor & BabylonNode; + shaderMaterial: FiberShaderMaterialProps & FiberShaderMaterialPropsCtor & BabylonNode; + multiMaterial: FiberMultiMaterialProps & FiberMultiMaterialPropsCtor & BabylonNode; light: FiberLightProps & FiberLightPropsCtor & BabylonNode; shadowLight: FiberShadowLightProps & FiberShadowLightPropsCtor & BabylonNode; directionalLight: FiberDirectionalLightProps & FiberDirectionalLightPropsCtor & BabylonNode; @@ -342,6 +355,7 @@ declare global { effectLayer: FiberEffectLayerProps & FiberEffectLayerPropsCtor & BabylonNode; glowLayer: FiberGlowLayerProps & FiberGlowLayerPropsCtor & BabylonNode; highlightLayer: FiberHighlightLayerProps & FiberHighlightLayerPropsCtor & BabylonNode; + thinTexture: FiberThinTextureProps & FiberThinTexturePropsCtor & BabylonNode; baseTexture: FiberBaseTextureProps & FiberBaseTexturePropsCtor & BabylonNode; cubeTexture: FiberCubeTextureProps & FiberCubeTexturePropsCtor & BabylonNode; rawCubeTexture: FiberRawCubeTextureProps & FiberRawCubeTexturePropsCtor & BabylonNode; @@ -359,9 +373,10 @@ declare global { dynamicTexture: FiberDynamicTextureProps & FiberDynamicTexturePropsCtor & BabylonNode; advancedDynamicTexture: FiberAdvancedDynamicTextureProps & FiberAdvancedDynamicTexturePropsCtor & BabylonNode; adtForMesh: FiberAdvancedDynamicTextureProps & FiberADTForMeshPropsCtor & BabylonNode; + adtForMeshTexture: FiberAdvancedDynamicTextureProps & FiberADTForMeshTexturePropsCtor & BabylonNode; adtFullscreenUi: FiberAdvancedDynamicTextureProps & FiberADTFullscreenUIPropsCtor & BabylonNode; - rawTexture3D: FiberRawTexture3DProps & FiberRawTexture3DPropsCtor & BabylonNode; rawTexture2DArray: FiberRawTexture2DArrayProps & FiberRawTexture2DArrayPropsCtor & BabylonNode; + rawTexture3D: FiberRawTexture3DProps & FiberRawTexture3DPropsCtor & BabylonNode; colorGradingTexture: FiberColorGradingTextureProps & FiberColorGradingTexturePropsCtor & BabylonNode; equiRectangularCubeTexture: FiberEquiRectangularCubeTextureProps & FiberEquiRectangularCubeTexturePropsCtor & BabylonNode; hdrCubeTexture: FiberHDRCubeTextureProps & FiberHDRCubeTexturePropsCtor & BabylonNode; @@ -452,6 +467,7 @@ export type FiberAbstractMeshProps = { checkCollisions?: boolean; collisionGroup?: number; collisionMask?: number; + collisionResponse?: boolean; computeBonesUsingShaders?: boolean; cullingStrategy?: number; definedFacingForward?: boolean; @@ -505,6 +521,7 @@ export type FiberAbstractMeshProps = { showSubMeshesBoundingBox?: boolean; skeleton?: BabylonjsCoreSkeleton; subMeshes?: BabylonjsCoreSubMesh[]; + surroundingMeshes?: BabylonjsCoreAbstractMesh[]; useOctreeForCollisions?: boolean; useOctreeForPicking?: boolean; useOctreeForRenderingSelection?: boolean; @@ -533,6 +550,7 @@ export type FiberInstancedLinesMeshPropsCtor = { export type FiberMeshProps = { addInstance?: any; addLODLevel?: any; + computeBonesUsingShaders?: boolean; delayLoadingFile?: string; delayLoadState?: number; instances?: BabylonjsCoreInstancedMesh[]; @@ -634,6 +652,9 @@ export type FiberTargetCameraProps = { 'cameraDirection-y'?: number; 'cameraDirection-z'?: number; cameraRotation?: BabylonjsCoreVector2; + ignoreParentScaling?: boolean; + inverseRotationSpeed?: number; + invertRotation?: boolean; lockedTarget?: any; noRotationConstraint?: boolean; rotation?: BabylonjsCoreVector3; @@ -643,6 +664,10 @@ export type FiberTargetCameraProps = { rotationQuaternion?: BabylonjsCoreQuaternion; setTarget?: any; speed?: number; + target?: BabylonjsCoreVector3; + 'target-x'?: number; + 'target-y'?: number; + 'target-z'?: number; updateUpVectorFromRotation?: boolean; } & FiberCameraProps; export type FiberTargetCameraPropsCtor = { @@ -665,9 +690,11 @@ export type FiberFreeCameraProps = { 'ellipsoidOffset-z'?: number; inputs?: BabylonjsCoreFreeCameraInputsManager; keysDown?: number[]; + keysDownward?: number[]; keysLeft?: number[]; keysRight?: number[]; keysUp?: number[]; + keysUpward?: number[]; onCollide?: (collidedMesh: BabylonjsCoreAbstractMesh) => void; } & FiberTargetCameraProps; export type FiberFreeCameraPropsCtor = { @@ -785,6 +812,9 @@ export type FiberWebVRFreeCameraPropsCtor = { }; export type FiberWebXRCameraProps = { compensateOnFirstFrame?: boolean; + onAfterCameraTeleport?: any; + onBeforeCameraTeleport?: any; + onTrackingStateChanged?: any; setTransformationFromNonVRCamera?: any; } & FiberFreeCameraProps; export type FiberWebXRCameraPropsCtor = { @@ -956,7 +986,6 @@ export type FiberArcFollowCameraProps = { alpha?: number; beta?: number; radius?: number; - target?: BabylonjsCoreAbstractMesh; } & FiberTargetCameraProps; export type FiberArcFollowCameraPropsCtor = { name: string; @@ -976,6 +1005,9 @@ export type FiberBoxPropsCtor = { sideOrientation?: number; frontUVs?: BabylonjsCoreVector4; backUVs?: BabylonjsCoreVector4; + wrap?: boolean; + topBaseAt?: number; + bottomBaseAt?: number; updatable?: boolean; }; export type FiberTiledBoxPropsCtor = { @@ -1242,6 +1274,7 @@ export type FiberExtrudePolygonPropsCtor = { sideOrientation?: number; frontUVs?: BabylonjsCoreVector4; backUVs?: BabylonjsCoreVector4; + wrap?: boolean; earcutInjection?: any; }; export type FiberTubePropsCtor = { @@ -1283,14 +1316,21 @@ export type FiberDecalPropsCtor = { size?: BabylonjsCoreVector3; angle?: number; }; +export type FiberCapsulePropsCtor = { + name: string; + options?: BabylonjsCoreICreateCapsuleOptions; +}; export type FiberMaterialProps = { + allowShaderHotSwapping?: boolean; alpha?: number; alphaMode?: number; animations?: BabylonjsCoreAnimation[]; backFaceCulling?: boolean; checkReadyOnEveryCall?: boolean; checkReadyOnlyOnce?: boolean; + customShaderNameResolve?: (shaderName: string, uniforms: string[], uniformBuffers: string[], samplers: string[], defines: string[] | BabylonjsCoreMaterialDefines, attributes?: string[], options?: BabylonjsCoreICustomShaderNameResolveOptions) => string; depthFunction?: number; + disableColorWrite?: boolean; disableDepthWrite?: boolean; doNotSerialize?: boolean; fillMode?: number; @@ -1313,8 +1353,11 @@ export type FiberMaterialProps = { releaseVertexArrayObject?: any; reservedDataStore?: any; separateCullingPass?: boolean; + setPrePassRenderer?: any; + shadowDepthWrapper?: BabylonjsCoreShadowDepthWrapper; sideOrientation?: number; state?: string; + transparencyMode?: number; uniqueId?: number; wireframe?: boolean; zOffset?: number; @@ -1323,44 +1366,26 @@ export type FiberMaterialPropsCtor = { name: string; doNotAdd?: boolean; }; -export type FiberShaderMaterialProps = { - setArray2?: any; - setArray3?: any; - setArray4?: any; - setColor3?: any; - setColor3Array?: any; - setColor4?: any; - setColor4Array?: any; - setFloat?: any; - setFloats?: any; - setInt?: any; - setMatrices?: any; - setMatrix?: any; - setMatrix2x2?: any; - setMatrix3x3?: any; - setTexture?: any; - setTextureArray?: any; - setVector2?: any; - setVector3?: any; - setVector4?: any; - shaderPath?: any; -} & FiberMaterialProps; -export type FiberShaderMaterialPropsCtor = { - name: string; - shaderPath: any; - options?: Partial; -}; -export type FiberMultiMaterialProps = { - subMaterials?: BabylonjsCoreMaterial[]; -} & FiberMaterialProps; -export type FiberMultiMaterialPropsCtor = { +export type FiberPushMaterialProps = {} & FiberMaterialProps; +export type FiberPushMaterialPropsCtor = { name: string; }; -export type FiberPushMaterialProps = { - allowShaderHotSwapping?: boolean; -} & FiberMaterialProps; -export type FiberPushMaterialPropsCtor = { +export type FiberNodeMaterialProps = { + addOutputNode?: any; + attachedBlocks?: BabylonjsCoreNodeMaterialBlock[]; + BJSNODEMATERIALEDITOR?: any; + comment?: string; + editorData?: any; + ignoreAlpha?: boolean; + imageProcessingConfiguration?: BabylonjsCoreImageProcessingConfiguration; + maxSimultaneousLights?: number; + onBuildObservable?: any; + options?: BabylonjsCoreINodeMaterialOptions; + snippetId?: string; +} & FiberPushMaterialProps; +export type FiberNodeMaterialPropsCtor = { name: string; + options?: Partial; }; export type FiberStandardMaterialProps = { alphaCutOff?: number; @@ -1377,7 +1402,7 @@ export type FiberStandardMaterialProps = { cameraExposure?: number; cameraToneMappingEnabled?: boolean; ColorGradingTextureEnabled?: boolean; - customShaderNameResolve?: (shaderName: string, uniforms: string[], uniformBuffers: string[], samplers: string[], defines: BabylonjsCoreStandardMaterialDefines) => string; + DetailTextureEnabled?: boolean; diffuseColor?: BabylonjsCoreColor3; diffuseFresnelParameters?: BabylonjsCoreFresnelParameters; diffuseTexture?: BabylonjsCoreBaseTexture; @@ -1460,6 +1485,7 @@ export type FiberBackgroundMaterialProps = { 'sceneCenter-z'?: number; shadowLevel?: number; shadowLights?: BabylonjsCoreIShadowLight[]; + shadowOnly?: boolean; switchToBGR?: boolean; useEquirectangularFOV?: boolean; useRGBColor?: boolean; @@ -1468,11 +1494,12 @@ export type FiberBackgroundMaterialPropsCtor = { name: string; }; export type FiberPBRBaseMaterialProps = { - customShaderNameResolve?: (shaderName: string, uniforms: string[], uniformBuffers: string[], samplers: string[], defines: BabylonjsCorePBRMaterialDefines) => string; debugFactor?: any; debugLimit?: any; debugMode?: number; - transparencyMode?: number; + realTimeFiltering?: boolean; + realTimeFilteringQuality?: number; + setPrePassRenderer?: any; useLogarithmicDepth?: boolean; } & FiberPushMaterialProps; export type FiberPBRBaseMaterialPropsCtor = { @@ -1555,6 +1582,8 @@ export type FiberPBRMaterialProps = { maxSimultaneousLights?: number; metallic?: number; metallicF0Factor?: number; + metallicReflectanceColor?: BabylonjsCoreColor3; + metallicReflectanceTexture?: BabylonjsCoreBaseTexture; metallicTexture?: BabylonjsCoreBaseTexture; microSurface?: number; microSurfaceTexture?: BabylonjsCoreBaseTexture; @@ -1578,7 +1607,6 @@ export type FiberPBRMaterialProps = { useHorizonOcclusion?: boolean; useLightmapAsShadowmap?: boolean; useLinearAlphaFresnel?: boolean; - useMetallicF0FactorFromMetallicTexture?: boolean; useMetallnessFromMetallicTextureBlue?: boolean; useMicroSurfaceFromReflectivityMapAlpha?: boolean; useObjectSpaceNormalMap?: boolean; @@ -1594,25 +1622,9 @@ export type FiberPBRMaterialProps = { export type FiberPBRMaterialPropsCtor = { name: string; }; -export type FiberNodeMaterialProps = { - addOutputNode?: any; - attachedBlocks?: BabylonjsCoreNodeMaterialBlock[]; - BJSNODEMATERIALEDITOR?: any; - editorData?: any; - ignoreAlpha?: boolean; - imageProcessingConfiguration?: BabylonjsCoreImageProcessingConfiguration; - maxSimultaneousLights?: number; - onBuildObservable?: any; - options?: BabylonjsCoreINodeMaterialOptions; -} & FiberPushMaterialProps; -export type FiberNodeMaterialPropsCtor = { - name: string; - options?: Partial; -}; export type FiberFluentMaterialProps = { albedoColor?: BabylonjsCoreColor3; albedoTexture?: BabylonjsCoreBaseTexture; - alpha?: number; borderMinValue?: number; borderWidth?: number; edgeSmoothingValue?: number; @@ -1630,6 +1642,40 @@ export type FiberFluentMaterialProps = { export type FiberFluentMaterialPropsCtor = { name: string; }; +export type FiberShaderMaterialProps = { + setArray2?: any; + setArray3?: any; + setArray4?: any; + setColor3?: any; + setColor3Array?: any; + setColor4?: any; + setColor4Array?: any; + setFloat?: any; + setFloats?: any; + setInt?: any; + setMatrices?: any; + setMatrix?: any; + setMatrix2x2?: any; + setMatrix3x3?: any; + setTexture?: any; + setTextureArray?: any; + setVector2?: any; + setVector3?: any; + setVector4?: any; + shaderPath?: any; + snippetId?: string; +} & FiberMaterialProps; +export type FiberShaderMaterialPropsCtor = { + name: string; + shaderPath: any; + options?: Partial; +}; +export type FiberMultiMaterialProps = { + subMaterials?: BabylonjsCoreMaterial[]; +} & FiberMaterialProps; +export type FiberMultiMaterialPropsCtor = { + name: string; +}; export type FiberLightProps = { diffuse?: BabylonjsCoreColor3; excludedMeshes?: BabylonjsCoreAbstractMesh[]; @@ -1734,6 +1780,7 @@ export type FiberControlProps = { color?: string; disabledColor?: string; disabledColorItem?: string; + fixedRatio?: number; fontFamily?: string; fontOffset?: { ascent: number; height: number; descent: number; }; fontSize?: string | number; @@ -1762,6 +1809,7 @@ export type FiberControlProps = { onAfterDrawObservable?: any; onBeforeDrawObservable?: any; onDirtyObservable?: any; + onDisposeObservable?: any; onPointerClickObservable?: any; onPointerDownObservable?: any; onPointerEnterObservable?: any; @@ -1933,6 +1981,7 @@ export type Fiber_ScrollViewerWindowPropsCtor = { }; export type FiberTextBlockProps = { lineSpacing?: string | number; + lineThrough?: boolean; name?: string; onLinesReadyObservable?: any; onTextChangedObservable?: any; @@ -1943,6 +1992,8 @@ export type FiberTextBlockProps = { textHorizontalAlignment?: number; textVerticalAlignment?: number; textWrapping?: boolean | BabylonjsGuiTextWrapping; + underline?: boolean; + wordSplittingFunction?: (line: string) => string[]; } & FiberControlProps; export type FiberTextBlockPropsCtor = { name?: string; @@ -2115,6 +2166,7 @@ export type FiberSliderProps = { displayValueBar?: boolean; isThumbCircle?: boolean; name?: string; + thumbColor?: string; } & FiberBaseSliderProps; export type FiberSliderPropsCtor = { name?: string; @@ -2235,6 +2287,7 @@ export type FiberMeshButton3DPropsCtor = { name?: string; }; export type FiberEffectLayerProps = { + disableBoundingBoxesFromEffectLayer?: boolean; isEnabled?: boolean; name?: string; neutralColor?: BabylonjsCoreColor4; @@ -2277,12 +2330,24 @@ export type FiberHighlightLayerPropsCtor = { name: string; options?: Partial; }; +export type FiberThinTextureProps = { + anisotropicFilteringLevel?: number; + delayLoadState?: number; + is2DArray?: boolean; + is3D?: boolean; + isCube?: boolean; + wrapR?: number; + wrapU?: number; + wrapV?: number; +} & CustomProps; +export type FiberThinTexturePropsCtor = { + internalTexture: BabylonjsCoreInternalTexture; +}; export type FiberBaseTextureProps = { animations?: BabylonjsCoreAnimation[]; anisotropicFilteringLevel?: number; coordinatesIndex?: number; coordinatesMode?: number; - delayLoadState?: number; gammaSpace?: boolean; getAlphaFromRGB?: boolean; hasAlpha?: boolean; @@ -2307,7 +2372,7 @@ export type FiberBaseTextureProps = { wrapR?: number; wrapU?: number; wrapV?: number; -} & CustomProps; +} & FiberThinTextureProps; export type FiberBaseTexturePropsCtor = {}; export type FiberCubeTextureProps = { boundingBoxPosition?: BabylonjsCoreVector3; @@ -2336,6 +2401,7 @@ export type FiberCubeTexturePropsCtor = { createPolynomials?: boolean; lodScale?: number; lodOffset?: number; + loaderOptions?: any; }; export type FiberRawCubeTextureProps = {} & FiberCubeTextureProps; export type FiberRawCubeTexturePropsCtor = { @@ -2349,6 +2415,7 @@ export type FiberRawCubeTexturePropsCtor = { compression?: string; }; export type FiberTextureProps = { + homogeneousRotationInUVTransform?: boolean; inspectableCustomProperties?: BabylonjsCoreIInspectable[]; isBlocking?: boolean; onLoadObservable?: any; @@ -2375,6 +2442,7 @@ export type FiberTexturePropsCtor = { deleteBuffer?: boolean; format?: number; mimeType?: string; + loaderOptions?: any; }; export type FiberRawTextureProps = { format?: number; @@ -2391,8 +2459,9 @@ export type FiberRawTexturePropsCtor = { }; export type FiberProceduralTextureProps = { autoClear?: boolean; - isCube?: boolean; isEnabled?: boolean; + nodeMaterialSource?: BabylonjsCoreNodeMaterial; + onBeforeGenerationObservable?: any; onGenerated?: () => void; onGeneratedObservable?: any; refreshRate?: number; @@ -2409,11 +2478,12 @@ export type FiberProceduralTextureProps = { } & FiberTextureProps; export type FiberProceduralTexturePropsCtor = { name: string; - size: any; + size: BabylonjsCoreRenderTargetTextureSize; fragment: any; fallbackTexture?: BabylonjsCoreTexture; generateMipMaps?: boolean; isCube?: boolean; + textureType?: number; }; export type FiberCustomProceduralTextureProps = { animate?: boolean; @@ -2430,6 +2500,7 @@ export type FiberNoiseProceduralTextureProps = { brightness?: number; octaves?: number; persistence?: number; + time?: number; } & FiberProceduralTextureProps; export type FiberNoiseProceduralTexturePropsCtor = { name: string; @@ -2449,11 +2520,10 @@ export type FiberRenderTargetTextureProps = { 'boundingBoxSize-y'?: number; 'boundingBoxSize-z'?: number; clearColor?: BabylonjsCoreColor4; - coordinatesMode?: number; + customIsReadyFunction?: (mesh: BabylonjsCoreAbstractMesh, refreshRate: number) => boolean; customRenderFunction?: (opaqueSubMeshes: BabylonjsCoreSmartArray, alphaTestSubMeshes: BabylonjsCoreSmartArray, transparentSubMeshes: BabylonjsCoreSmartArray, depthOnlySubMeshes: BabylonjsCoreSmartArray, beforeTransparents?: () => void) => void; getCustomRenderList?: (layerOrFace: number, renderList: readonly BabylonjsCoreAbstractMesh[], renderListLength: number) => BabylonjsCoreAbstractMesh[]; ignoreCameraViewport?: boolean; - isCube?: boolean; onAfterRender?: (faceIndex: number) => void; onAfterRenderObservable?: any; onAfterUnbind?: () => void; @@ -2548,9 +2618,11 @@ export type FiberDynamicTexturePropsCtor = { generateMipMaps: boolean; samplingMode?: number; format?: number; + invertY?: boolean; }; export type FiberAdvancedDynamicTextureProps = { addControl?: any; + applyYInversionOnUpdate?: boolean; background?: string; clipboardData?: string; focusedControl?: BabylonjsGuiIFocusableControl; @@ -2578,6 +2650,14 @@ export type FiberADTForMeshPropsCtor = { height?: number; supportPointerMove?: boolean; onlyAlphaTesting?: boolean; + invertY?: boolean; +}; +export type FiberADTForMeshTexturePropsCtor = { + mesh: BabylonjsCoreAbstractMesh; + width?: number; + height?: number; + supportPointerMove?: boolean; + invertY?: boolean; }; export type FiberADTFullscreenUIPropsCtor = { name: string; @@ -2590,11 +2670,12 @@ export type FiberAdvancedDynamicTexturePropsCtor = { height: number; generateMipMaps?: boolean; samplingMode?: number; + invertY?: boolean; }; -export type FiberRawTexture3DProps = { +export type FiberRawTexture2DArrayProps = { format?: number; } & FiberTextureProps; -export type FiberRawTexture3DPropsCtor = { +export type FiberRawTexture2DArrayPropsCtor = { data: ArrayBufferView; width: number; height: number; @@ -2605,10 +2686,10 @@ export type FiberRawTexture3DPropsCtor = { samplingMode?: number; textureType?: number; }; -export type FiberRawTexture2DArrayProps = { +export type FiberRawTexture3DProps = { format?: number; } & FiberTextureProps; -export type FiberRawTexture2DArrayPropsCtor = { +export type FiberRawTexture3DPropsCtor = { data: ArrayBufferView; width: number; height: number; @@ -2626,9 +2707,9 @@ export type FiberColorGradingTextureProps = { } & FiberBaseTextureProps; export type FiberColorGradingTexturePropsCtor = { url: string; + onLoad?: () => void; }; export type FiberEquiRectangularCubeTextureProps = { - coordinatesMode?: number; getFloat32ArrayFromArrayBuffer?: any; loadImage?: any; loadTexture?: any; @@ -2651,7 +2732,6 @@ export type FiberHDRCubeTextureProps = { 'boundingBoxSize-x'?: number; 'boundingBoxSize-y'?: number; 'boundingBoxSize-z'?: number; - coordinatesMode?: number; isBlocking?: boolean; loadTexture?: any; rotationY?: number; @@ -2664,7 +2744,7 @@ export type FiberHDRCubeTexturePropsCtor = { noMipmap?: boolean; generateHarmonics?: boolean; gammaSpace?: boolean; - reserved?: boolean; + prefilterOnLoad?: boolean; onLoad?: () => void; onError?: (message?: string, exception?: any) => void; }; @@ -2688,13 +2768,17 @@ export type FiberShadowGeneratorProps = { blurKernel?: number; blurScale?: number; contactHardeningLightSizeUVRatio?: number; + customAllowRendering?: (subMesh: BabylonjsCoreSubMesh) => boolean; customShaderOptions?: BabylonjsCoreICustomShaderOptions; darkness?: number; depthScale?: number; + enableSoftTransparentShadow?: boolean; filter?: number; filteringQuality?: number; forceBackFacesOnly?: boolean; frustumEdgeFalloff?: number; + id?: string; + mapSize?: number; normalBias?: number; onAfterShadowMapRenderMeshObservable?: any; onAfterShadowMapRenderObservable?: any; @@ -2754,7 +2838,7 @@ export type FiberPhysicsImpostorProps = { friction?: number; mass?: number; object?: BabylonjsCoreIPhysicsEnabledObject; - onCollide?: (e: { body: any; }) => void; + onCollide?: (e: { body: any; point: BabylonjsCoreVector3; }) => void; onCollideEvent?: (collider: BabylonjsCorePhysicsImpostor, collidedWith: BabylonjsCorePhysicsImpostor) => void; parent?: BabylonjsCorePhysicsImpostor; physicsBody?: any; @@ -2965,6 +3049,7 @@ export type FiberSixDofDragBehaviorProps = { dragDeltaRatio?: number; dragging?: boolean; onDragEndObservable?: any; + onDragObservable?: any; onDragStartObservable?: any; rotateDraggedObject?: boolean; zDragFactor?: any; @@ -3086,11 +3171,13 @@ export type FiberSceneProps = { onMaterialRemovedObservable?: any; onMeshImportedObservable?: any; onMeshRemovedObservable?: any; + onMultiMaterialRemovedObservable?: any; onNewCameraAddedObservable?: any; onNewGeometryAddedObservable?: any; onNewLightAddedObservable?: any; onNewMaterialAddedObservable?: any; onNewMeshAddedObservable?: any; + onNewMultiMaterialAddedObservable?: any; onNewSkeletonAddedObservable?: any; onNewTextureAddedObservable?: any; onNewTransformNodeAddedObservable?: any; @@ -3106,14 +3193,15 @@ export type FiberSceneProps = { onTextureRemovedObservable?: any; onTransformNodeRemovedObservable?: any; particlesEnabled?: boolean; + physicsEnabled?: boolean; pointerDownPredicate?: (Mesh: BabylonjsCoreAbstractMesh) => boolean; pointerMovePredicate?: (Mesh: BabylonjsCoreAbstractMesh) => boolean; pointerUpPredicate?: (Mesh: BabylonjsCoreAbstractMesh) => boolean; pointerX?: number; pointerY?: number; - postProcesses?: BabylonjsCorePostProcess[]; postProcessesEnabled?: boolean; postProcessManager?: BabylonjsCorePostProcessManager; + prePass?: boolean; preventDefaultOnPointerDown?: boolean; preventDefaultOnPointerUp?: boolean; probesEnabled?: boolean; diff --git a/src/model/ModelProps.ts b/src/model/ModelProps.ts index 338a69e0..262be0d6 100644 --- a/src/model/ModelProps.ts +++ b/src/model/ModelProps.ts @@ -1,4 +1,4 @@ -import { Vector3, SceneLoaderProgressEvent, AbstractMesh } from "@babylonjs/core"; +import { Vector3, ISceneLoaderProgressEvent, AbstractMesh } from "@babylonjs/core"; import { LoadedModel } from "../customHosts/LoadedModel"; import { FiberMeshPropsHandler, FiberAbstractMeshPropsHandler, FiberTransformNodePropsHandler, FiberNodePropsHandler } from "../generatedCode"; import BasePropsHandler from "../BasePropsHandler"; @@ -21,7 +21,7 @@ export type ModelProps = { scaleToDimension?: number onModelLoaded?: (model: LoadedModel) => void onModelError?: (model: LoadedModel) => void - onLoadProgress?: (event: SceneLoaderProgressEvent) => void + onLoadProgress?: (event: ISceneLoaderProgressEvent) => void onCreated?: (rootMesh: AbstractMesh) => void } diff --git a/stories/babylonjs/Basic/customMeshes.stories.js b/stories/babylonjs/Basic/customMeshes.stories.js new file mode 100644 index 00000000..ef19aa82 --- /dev/null +++ b/stories/babylonjs/Basic/customMeshes.stories.js @@ -0,0 +1,69 @@ +import React, { useEffect, useState } from 'react' +import { Engine, Scene, useBabylonScene } from '../../../dist/react-babylonjs' +import { Mesh, VertexData, Vector3 } from '@babylonjs/core'; +import '../../style.css' + +export default { title: 'Babylon Basic' }; + +const CustomMesh = (props) => { + const scene = useBabylonScene(); + + const [customMesh] = useState(() => { + const meshInstance = new Mesh(props.name, scene); + + //Set arrays for positions and indices + var positions = [-5, 2, -3, -7, -2, -3, -3, -2, -3, 5, 2, 3, 7, -2, 3, 3, -2, 3]; + var indices = [0, 1, 2, 3, 4, 5]; + var colors = [1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1]; + + //Empty array to contain calculated values + var normals = []; + + var vertexData = new VertexData(); + VertexData.ComputeNormals(positions, indices, normals); + + //Assign positions, indices and normals to vertexData + vertexData.positions = positions; + vertexData.indices = indices; + vertexData.normals = normals; + vertexData.colors = colors; + + //Apply vertexData to custom mesh + vertexData.applyToMesh(meshInstance); + + return meshInstance; + }) + + useEffect(() => { + return () => { + customMesh.dispose(); + } + }, []) + + return ( + + + + ) +} + +export const CustomMeshes = () => ( +
+ + + + + + + + + + +
+) diff --git a/tools/generate-code.ts b/tools/generate-code.ts index 14c7fee4..28fda5be 100644 --- a/tools/generate-code.ts +++ b/tools/generate-code.ts @@ -142,7 +142,7 @@ classesOfInterest.set("Light", undefined); classesOfInterest.set("Control", undefined); classesOfInterest.set("Control3D", undefined); classesOfInterest.set("GUI3DManager", undefined); -classesOfInterest.set("BaseTexture", undefined); +classesOfInterest.set("ThinTexture", undefined); classesOfInterest.set("AdvancedDynamicTexture", undefined); classesOfInterest.set("ShadowGenerator", undefined) classesOfInterest.set("CascadedShadowGenerator", undefined) @@ -931,7 +931,7 @@ const addPropsAndHandlerClasses = (generatedCodeSourceFile: SourceFile, generate let addedProperties = new Set(); // These properties break out to specific method handlers - type PropertyKind = 'BabylonjsCoreBaseTexture' | 'BabylonjsCoreColor3' | 'BabylonjsCoreColor4' | 'BabylonjsCoreVector3' | 'BabylonjsCoreFresnelParameters' | 'BabylonjsCoreQuaternion' | + type PropertyKind = 'BabylonjsCoreThinTexture' | 'BabylonjsCoreColor3' | 'BabylonjsCoreColor4' | 'BabylonjsCoreVector3' | 'BabylonjsCoreFresnelParameters' | 'BabylonjsCoreQuaternion' | 'BabylonjsGuiControl' | 'number[]' | 'lambda' | 'observable' | 'method' | 'primitive' | 'object'; type NameAndType = { name: string @@ -1000,7 +1000,7 @@ const addPropsAndHandlerClasses = (generatedCodeSourceFile: SourceFile, generate }) } else { switch (type) { - case 'BabylonjsCoreBaseTexture': + case 'BabylonjsCoreThinTexture': case 'BabylonjsCoreColor3': case 'BabylonjsCoreColor4': // Color4.equals() not added until PR #5517 case 'BabylonjsCoreVector3': @@ -1114,7 +1114,7 @@ const addPropsAndHandlerClasses = (generatedCodeSourceFile: SourceFile, generate case 'BabylonjsCoreFresnelParameters': writer.writeLine(`checkFresnelParametersDiff(oldProps.${propToCheck.name}, newProps.${propToCheck.name}, '${propToCheck.name}', changedProps)`); break; - case 'BabylonjsCoreBaseTexture': + case 'BabylonjsCoreThinTexture': writer.writeLine(`checkTextureDiff(oldProps.${propToCheck.name}, newProps.${propToCheck.name}, '${propToCheck.name}', changedProps)`) break; case 'observable': @@ -1333,7 +1333,7 @@ const createClassesInheritedFrom = (generatedCodeSourceFile: SourceFile, generat const newClassDeclaration = createClassDeclaration(derivedClassDeclaration, baseClassDeclaration, generatedCodeSourceFile, generatedPropsSourceFile, extra); addCreateInfoFromConstructor(derivedClassDeclaration, newClassDeclaration, classNamespaceTuple.moduleDeclaration, generatedCodeSourceFile, generatedPropsSourceFile); - // AdvancedDynamicTexture has different metadata than other BaseTexture derived classes. + // AdvancedDynamicTexture has different metadata than other ThinTexture derived classes. const metadata: InstanceMetadataParameter | undefined = metadataFromClassName ? metadataFromClassName(newClassDeclaration.getName()!) : undefined; addMetadata(newClassDeclaration, derivedClassDeclaration, metadata); @@ -1579,7 +1579,7 @@ const generateCode = async () => { createClassesInheritedFrom(generatedCodeSourceFile, generatedPropsSourceFile, classesOfInterest.get("EffectLayer")!, () => ({ isEffectLayer: true })); } - if (classesOfInterest.get("BaseTexture")) { + if (classesOfInterest.get("ThinTexture")) { const fromClassName = (className: string): InstanceMetadataParameter => { if (className === `${ClassNamesPrefix}AdvancedDynamicTexture`) { return { @@ -1607,7 +1607,7 @@ const generateCode = async () => { } }; - createClassesInheritedFrom(generatedCodeSourceFile, generatedPropsSourceFile, classesOfInterest.get("BaseTexture")!, fromClassName, onTexturesCreate); + createClassesInheritedFrom(generatedCodeSourceFile, generatedPropsSourceFile, classesOfInterest.get("ThinTexture")!, fromClassName, onTexturesCreate); } createSingleClass("GUI3DManager", generatedCodeSourceFile, generatedPropsSourceFile, undefined, { isGUI3DControl: true }, () => { return; }); @@ -1737,4 +1737,4 @@ result.then(() => { console.log('completed without errors'); }).catch(reason => { console.error('failed:', reason); -}) +}) \ No newline at end of file