typescript-to-gdscript 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/cli/convert.d.ts.map +1 -1
- package/dist/cli/convert.js +15 -5
- package/dist/cli/convert.js.map +1 -1
- package/dist/converter/gd-to-ts/class-scope.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/class-scope.js +4 -4
- package/dist/converter/gd-to-ts/class-scope.js.map +1 -1
- package/dist/converter/gd-to-ts/expressions.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/expressions.js +59 -8
- package/dist/converter/gd-to-ts/expressions.js.map +1 -1
- package/dist/converter/gd-to-ts/functions.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/functions.js +29 -24
- package/dist/converter/gd-to-ts/functions.js.map +1 -1
- package/dist/converter/gd-to-ts/identifiers.d.ts +27 -0
- package/dist/converter/gd-to-ts/identifiers.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/identifiers.js +76 -0
- package/dist/converter/gd-to-ts/identifiers.js.map +1 -0
- package/dist/converter/gd-to-ts/members.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/members.js +15 -6
- package/dist/converter/gd-to-ts/members.js.map +1 -1
- package/dist/converter/gd-to-ts/statements.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/statements.js +12 -1
- package/dist/converter/gd-to-ts/statements.js.map +1 -1
- package/dist/converter/gd-to-ts/type-inference.d.ts +33 -0
- package/dist/converter/gd-to-ts/type-inference.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/type-inference.js +79 -0
- package/dist/converter/gd-to-ts/type-inference.js.map +1 -1
- package/dist/converter/ts-to-gd/access-rewrite.d.ts +40 -0
- package/dist/converter/ts-to-gd/access-rewrite.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/access-rewrite.js +124 -0
- package/dist/converter/ts-to-gd/access-rewrite.js.map +1 -0
- package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
- package/dist/converter/ts-to-gd/expressions.js +31 -7
- package/dist/converter/ts-to-gd/expressions.js.map +1 -1
- package/dist/typings/content-generators.d.ts +2 -2
- package/dist/typings/content-generators.d.ts.map +1 -1
- package/dist/typings/content-generators.js +8 -2
- package/dist/typings/content-generators.js.map +1 -1
- package/dist/typings/godot-docs.d.ts.map +1 -1
- package/dist/typings/godot-docs.js +45 -16
- package/dist/typings/godot-docs.js.map +1 -1
- package/dist/typings/override-system.d.ts.map +1 -1
- package/dist/typings/override-system.js +8 -0
- package/dist/typings/override-system.js.map +1 -1
- package/dist/typings/scene-utils.d.ts +8 -0
- package/dist/typings/scene-utils.d.ts.map +1 -1
- package/dist/typings/scene-utils.js +49 -8
- package/dist/typings/scene-utils.js.map +1 -1
- package/dist/typings/scenes.d.ts.map +1 -1
- package/dist/typings/scenes.js +17 -10
- package/dist/typings/scenes.js.map +1 -1
- package/dist/watcher/check.d.ts +87 -0
- package/dist/watcher/check.d.ts.map +1 -0
- package/dist/watcher/check.js +209 -0
- package/dist/watcher/check.js.map +1 -0
- package/dist/watcher/heal.d.ts +66 -0
- package/dist/watcher/heal.d.ts.map +1 -0
- package/dist/watcher/heal.js +132 -0
- package/dist/watcher/heal.js.map +1 -0
- package/dist/watcher/index.d.ts +1 -0
- package/dist/watcher/index.d.ts.map +1 -1
- package/dist/watcher/index.js +48 -52
- package/dist/watcher/index.js.map +1 -1
- package/package.json +1 -1
- package/typings/classes/AccessibilityServer.d.ts +405 -0
- package/typings/classes/AnimationLibrary.d.ts +4 -4
- package/typings/classes/AnimationNodeBlendSpace1D.d.ts +45 -4
- package/typings/classes/AnimationNodeBlendSpace2D.d.ts +45 -4
- package/typings/classes/Area3D.d.ts +14 -7
- package/typings/classes/AreaLight3D.d.ts +37 -0
- package/typings/classes/ArrayMesh.d.ts +15 -0
- package/typings/classes/AudioEffectAmplify.d.ts +2 -2
- package/typings/classes/AudioEffectBandLimitFilter.d.ts +1 -1
- package/typings/classes/AudioEffectBandPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectCapture.d.ts +10 -9
- package/typings/classes/AudioEffectChorus.d.ts +57 -28
- package/typings/classes/AudioEffectCompressor.d.ts +11 -9
- package/typings/classes/AudioEffectDelay.d.ts +21 -15
- package/typings/classes/AudioEffectDistortion.d.ts +19 -10
- package/typings/classes/AudioEffectEQ.d.ts +2 -2
- package/typings/classes/AudioEffectEQ10.d.ts +2 -2
- package/typings/classes/AudioEffectEQ21.d.ts +2 -2
- package/typings/classes/AudioEffectEQ6.d.ts +2 -2
- package/typings/classes/AudioEffectFilter.d.ts +25 -9
- package/typings/classes/AudioEffectHardLimiter.d.ts +8 -5
- package/typings/classes/AudioEffectHighPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectHighShelfFilter.d.ts +1 -1
- package/typings/classes/AudioEffectInstance.d.ts +1 -1
- package/typings/classes/AudioEffectLimiter.d.ts +9 -4
- package/typings/classes/AudioEffectLowPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectLowShelfFilter.d.ts +1 -1
- package/typings/classes/AudioEffectNotchFilter.d.ts +1 -1
- package/typings/classes/AudioEffectPanner.d.ts +7 -2
- package/typings/classes/AudioEffectPhaser.d.ts +9 -7
- package/typings/classes/AudioEffectPitchShift.d.ts +3 -3
- package/typings/classes/AudioEffectReverb.d.ts +17 -8
- package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +4 -5
- package/typings/classes/AudioEffectStereoEnhance.d.ts +7 -4
- package/typings/classes/AudioServer.d.ts +2 -2
- package/typings/classes/AudioStreamPlaybackResampled.d.ts +8 -0
- package/typings/classes/AudioStreamRandomizer.d.ts +10 -0
- package/typings/classes/AwaitTweener.d.ts +10 -0
- package/typings/classes/BaseButton.d.ts +1 -1
- package/typings/classes/Basis.d.ts +6 -2
- package/typings/classes/BlitMaterial.d.ts +22 -0
- package/typings/classes/CPUParticles2D.d.ts +2 -2
- package/typings/classes/CPUParticles3D.d.ts +2 -2
- package/typings/classes/Camera3D.d.ts +1 -1
- package/typings/classes/CameraAttributes.d.ts +1 -0
- package/typings/classes/CameraFeed.d.ts +4 -0
- package/typings/classes/CanvasItem.d.ts +16 -1
- package/typings/classes/CodeEdit.d.ts +6 -0
- package/typings/classes/CollisionObject2D.d.ts +6 -0
- package/typings/classes/CollisionPolygon2D.d.ts +5 -0
- package/typings/classes/CollisionShape2D.d.ts +5 -0
- package/typings/classes/Container.d.ts +7 -0
- package/typings/classes/Control.d.ts +127 -9
- package/typings/classes/Curve.d.ts +26 -1
- package/typings/classes/Curve2D.d.ts +15 -0
- package/typings/classes/Curve3D.d.ts +20 -0
- package/typings/classes/DPITexture.d.ts +14 -0
- package/typings/classes/Decal.d.ts +1 -0
- package/typings/classes/Dictionary.d.ts +74 -28
- package/typings/classes/DirAccess.d.ts +6 -1
- package/typings/classes/DisplayServer.d.ts +161 -9
- package/typings/classes/DrawableTexture2D.d.ts +43 -0
- package/typings/classes/EditorCommandPalette.d.ts +0 -2
- package/typings/classes/EditorContextMenuPlugin.d.ts +4 -0
- package/typings/classes/EditorDock.d.ts +10 -5
- package/typings/classes/EditorExportPlatform.d.ts +4 -2
- package/typings/classes/EditorExportPlugin.d.ts +7 -0
- package/typings/classes/EditorFeatureProfile.d.ts +1 -1
- package/typings/classes/EditorFileSystem.d.ts +2 -0
- package/typings/classes/EditorInspector.d.ts +10 -0
- package/typings/classes/EditorInterface.d.ts +6 -4
- package/typings/classes/EditorNode3DGizmoPlugin.d.ts +4 -0
- package/typings/classes/EditorPlugin.d.ts +4 -4
- package/typings/classes/EditorResourcePicker.d.ts +2 -1
- package/typings/classes/EditorSceneFormatImporter.d.ts +23 -0
- package/typings/classes/EditorSettings.d.ts +241 -140
- package/typings/classes/EditorSpinSlider.d.ts +6 -0
- package/typings/classes/EditorTranslationParserPlugin.d.ts +4 -0
- package/typings/classes/EditorVCSInterface.d.ts +6 -2
- package/typings/classes/Environment.d.ts +7 -2
- package/typings/classes/FileAccess.d.ts +1 -1
- package/typings/classes/FileDialog.d.ts +16 -1
- package/typings/classes/FoldableContainer.d.ts +1 -1
- package/typings/classes/Font.d.ts +15 -3
- package/typings/classes/FontVariation.d.ts +10 -0
- package/typings/classes/GDScript.d.ts +8 -0
- package/typings/classes/GDScriptLanguageProtocol.d.ts +25 -0
- package/typings/classes/GDScriptSyntaxHighlighter.d.ts +6 -0
- package/typings/classes/GDScriptTextDocument.d.ts +27 -0
- package/typings/classes/GDScriptWorkspace.d.ts +17 -0
- package/typings/classes/GPUParticles2D.d.ts +2 -2
- package/typings/classes/GPUParticles3D.d.ts +19 -2
- package/typings/classes/Geometry2D.d.ts +2 -2
- package/typings/classes/GeometryInstance3D.d.ts +1 -1
- package/typings/classes/GradientTexture2D.d.ts +2 -0
- package/typings/classes/Image.d.ts +7 -4
- package/typings/classes/ImageFormatLoader.d.ts +5 -0
- package/typings/classes/ImageTexture.d.ts +0 -2
- package/typings/classes/ImporterMesh.d.ts +6 -0
- package/typings/classes/Input.d.ts +159 -15
- package/typings/classes/InputEvent.d.ts +8 -0
- package/typings/classes/InputEventGesture.d.ts +2 -3
- package/typings/classes/InputEventMouse.d.ts +2 -3
- package/typings/classes/InputEventMouseMotion.d.ts +2 -2
- package/typings/classes/InputEventWithModifiers.d.ts +2 -3
- package/typings/classes/InputMap.d.ts +3 -0
- package/typings/classes/ItemList.d.ts +29 -2
- package/typings/classes/IterateIK3D.d.ts +6 -3
- package/typings/classes/JavaClassWrapper.d.ts +13 -0
- package/typings/classes/JavaScriptBridge.d.ts +1 -1
- package/typings/classes/Joint3D.d.ts +1 -0
- package/typings/classes/Label.d.ts +1 -0
- package/typings/classes/LabelSettings.d.ts +25 -0
- package/typings/classes/Light3D.d.ts +1 -1
- package/typings/classes/Logger.d.ts +1 -1
- package/typings/classes/LookAtModifier3D.d.ts +2 -1
- package/typings/classes/MainLoop.d.ts +4 -0
- package/typings/classes/MenuButton.d.ts +35 -0
- package/typings/classes/MeshLibrary.d.ts +2 -0
- package/typings/classes/MovieWriter.d.ts +2 -0
- package/typings/classes/MultiplayerPeerExtension.d.ts +9 -9
- package/typings/classes/NativeMenu.d.ts +10 -3
- package/typings/classes/Node.d.ts +15 -5
- package/typings/classes/Node3D.d.ts +6 -4
- package/typings/classes/OS.d.ts +3 -3
- package/typings/classes/Object.d.ts +9 -3
- package/typings/classes/OptimizedTranslation.d.ts +2 -2
- package/typings/classes/OptionButton.d.ts +51 -1
- package/typings/classes/PCKPacker.d.ts +4 -0
- package/typings/classes/PacketPeerExtension.d.ts +1 -1
- package/typings/classes/ParticleProcessMaterial.d.ts +63 -0
- package/typings/classes/PhysicsDirectBodyState2D.d.ts +2 -1
- package/typings/classes/PhysicsDirectBodyState3D.d.ts +2 -1
- package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +6 -6
- package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +6 -6
- package/typings/classes/PhysicsServer2D.d.ts +2 -2
- package/typings/classes/PhysicsServer2DExtension.d.ts +6 -6
- package/typings/classes/PhysicsServer3D.d.ts +145 -42
- package/typings/classes/PhysicsServer3DExtension.d.ts +1 -1
- package/typings/classes/PopupMenu.d.ts +74 -8
- package/typings/classes/PopupPanel.d.ts +2 -0
- package/typings/classes/PortableCompressedTexture2D.d.ts +0 -2
- package/typings/classes/ProjectSettings.d.ts +62 -10
- package/typings/classes/Quaternion.d.ts +2 -2
- package/typings/classes/RDAccelerationStructureGeometry.d.ts +42 -0
- package/typings/classes/RDAccelerationStructureInstance.d.ts +34 -0
- package/typings/classes/RDHitGroup.d.ts +20 -0
- package/typings/classes/RDPipelineShader.d.ts +14 -0
- package/typings/classes/RDShaderSPIRV.d.ts +30 -0
- package/typings/classes/RDShaderSource.d.ts +10 -0
- package/typings/classes/RandomNumberGenerator.d.ts +4 -2
- package/typings/classes/RenderSceneBuffersConfiguration.d.ts +4 -1
- package/typings/classes/RenderingDevice.d.ts +175 -1
- package/typings/classes/RenderingServer.d.ts +264 -14
- package/typings/classes/Resource.d.ts +4 -2
- package/typings/classes/ResourceImporterDynamicFont.d.ts +3 -1
- package/typings/classes/ResourceImporterOBJ.d.ts +1 -1
- package/typings/classes/ResourceImporterSVG.d.ts +10 -0
- package/typings/classes/ResourceImporterScene.d.ts +11 -3
- package/typings/classes/ResourceImporterTexture.d.ts +2 -2
- package/typings/classes/RichTextLabel.d.ts +14 -6
- package/typings/classes/Script.d.ts +2 -0
- package/typings/classes/ScriptEditor.d.ts +13 -0
- package/typings/classes/ScriptLanguageExtension.d.ts +7 -0
- package/typings/classes/ScrollContainer.d.ts +17 -5
- package/typings/classes/Shader.d.ts +2 -0
- package/typings/classes/Shape3D.d.ts +1 -0
- package/typings/classes/SkeletonModification2DJiggle.d.ts +4 -0
- package/typings/classes/SplitContainer.d.ts +6 -0
- package/typings/classes/SpringBoneSimulator3D.d.ts +4 -2
- package/typings/classes/SpriteFrames.d.ts +20 -4
- package/typings/classes/StreamPeerExtension.d.ts +2 -2
- package/typings/classes/String.d.ts +1 -1
- package/typings/classes/SubViewport.d.ts +4 -0
- package/typings/classes/TabBar.d.ts +20 -0
- package/typings/classes/TabContainer.d.ts +21 -3
- package/typings/classes/TextEdit.d.ts +5 -2
- package/typings/classes/TextServer.d.ts +25 -1
- package/typings/classes/TextServerExtension.d.ts +25 -1
- package/typings/classes/Texture2D.d.ts +14 -0
- package/typings/classes/TextureRect.d.ts +4 -1
- package/typings/classes/TileSet.d.ts +3 -1
- package/typings/classes/Tree.d.ts +25 -9
- package/typings/classes/TreeItem.d.ts +17 -2
- package/typings/classes/Tween.d.ts +13 -0
- package/typings/classes/UndoRedo.d.ts +2 -2
- package/typings/classes/Vector2.d.ts +4 -2
- package/typings/classes/Vector2i.d.ts +4 -2
- package/typings/classes/Vector3.d.ts +4 -2
- package/typings/classes/Vector3i.d.ts +4 -2
- package/typings/classes/Vector4.d.ts +4 -2
- package/typings/classes/Vector4i.d.ts +4 -2
- package/typings/classes/Viewport.d.ts +27 -1
- package/typings/classes/VirtualJoystick.d.ts +94 -0
- package/typings/classes/VoxelGIData.d.ts +10 -0
- package/typings/classes/Window.d.ts +41 -4
- package/typings/classes/XRCamera3D.d.ts +1 -1
- package/typings/classes/XRServer.d.ts +2 -0
- package/typings/classes/_globals.d.ts +55 -18
- package/typings/classes/index.d.ts +15 -112
- package/typings/globals/globals.d.ts +20 -0
- package/typings/godot-class-registry.json +2120 -3693
- package/typings-overrides/dictionary.d.ts +35 -15
- package/typings-overrides/object-dict.d.ts +43 -0
- package/typings/classes/VisualShader.d.ts +0 -110
- package/typings/classes/VisualShaderNode.d.ts +0 -63
- package/typings/classes/VisualShaderNodeBillboard.d.ts +0 -28
- package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeClamp.d.ts +0 -26
- package/typings/classes/VisualShaderNodeColorConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeColorFunc.d.ts +0 -32
- package/typings/classes/VisualShaderNodeColorOp.d.ts +0 -32
- package/typings/classes/VisualShaderNodeColorParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeComment.d.ts +0 -12
- package/typings/classes/VisualShaderNodeCompare.d.ts +0 -68
- package/typings/classes/VisualShaderNodeConstant.d.ts +0 -6
- package/typings/classes/VisualShaderNodeCubemap.d.ts +0 -43
- package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeCurveTexture.d.ts +0 -10
- package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +0 -10
- package/typings/classes/VisualShaderNodeCustom.d.ts +0 -122
- package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +0 -56
- package/typings/classes/VisualShaderNodeDeterminant.d.ts +0 -6
- package/typings/classes/VisualShaderNodeDistanceFade.d.ts +0 -6
- package/typings/classes/VisualShaderNodeDotProduct.d.ts +0 -6
- package/typings/classes/VisualShaderNodeExpression.d.ts +0 -12
- package/typings/classes/VisualShaderNodeFaceForward.d.ts +0 -8
- package/typings/classes/VisualShaderNodeFloatConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeFloatFunc.d.ts +0 -108
- package/typings/classes/VisualShaderNodeFloatOp.d.ts +0 -36
- package/typings/classes/VisualShaderNodeFloatParameter.d.ts +0 -52
- package/typings/classes/VisualShaderNodeFrame.d.ts +0 -35
- package/typings/classes/VisualShaderNodeFresnel.d.ts +0 -6
- package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +0 -6
- package/typings/classes/VisualShaderNodeGroupBase.d.ts +0 -60
- package/typings/classes/VisualShaderNodeIf.d.ts +0 -8
- package/typings/classes/VisualShaderNodeInput.d.ts +0 -20
- package/typings/classes/VisualShaderNodeIntConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeIntFunc.d.ts +0 -24
- package/typings/classes/VisualShaderNodeIntOp.d.ts +0 -48
- package/typings/classes/VisualShaderNodeIntParameter.d.ts +0 -58
- package/typings/classes/VisualShaderNodeIs.d.ts +0 -18
- package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +0 -6
- package/typings/classes/VisualShaderNodeMix.d.ts +0 -28
- package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +0 -22
- package/typings/classes/VisualShaderNodeOuterProduct.d.ts +0 -6
- package/typings/classes/VisualShaderNodeOutput.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParameter.d.ts +0 -32
- package/typings/classes/VisualShaderNodeParameterRef.d.ts +0 -10
- package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +0 -20
- package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleEmit.d.ts +0 -22
- package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +0 -12
- package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +0 -20
- package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +0 -10
- package/typings/classes/VisualShaderNodeParticleOutput.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +0 -22
- package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeProximityFade.d.ts +0 -6
- package/typings/classes/VisualShaderNodeRandomRange.d.ts +0 -6
- package/typings/classes/VisualShaderNodeRemap.d.ts +0 -33
- package/typings/classes/VisualShaderNodeReroute.d.ts +0 -8
- package/typings/classes/VisualShaderNodeResizableBase.d.ts +0 -10
- package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +0 -6
- package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +0 -6
- package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +0 -8
- package/typings/classes/VisualShaderNodeSample3D.d.ts +0 -18
- package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +0 -6
- package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +0 -8
- package/typings/classes/VisualShaderNodeSmoothStep.d.ts +0 -28
- package/typings/classes/VisualShaderNodeStep.d.ts +0 -28
- package/typings/classes/VisualShaderNodeSwitch.d.ts +0 -30
- package/typings/classes/VisualShaderNodeTexture.d.ts +0 -57
- package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +0 -12
- package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTexture3D.d.ts +0 -12
- package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureParameter.d.ts +0 -104
- package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureSDF.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformCompose.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformFunc.d.ts +0 -18
- package/typings/classes/VisualShaderNodeTransformOp.d.ts +0 -32
- package/typings/classes/VisualShaderNodeTransformParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +0 -22
- package/typings/classes/VisualShaderNodeUIntConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeUIntFunc.d.ts +0 -20
- package/typings/classes/VisualShaderNodeUIntOp.d.ts +0 -48
- package/typings/classes/VisualShaderNodeUIntParameter.d.ts +0 -16
- package/typings/classes/VisualShaderNodeUVFunc.d.ts +0 -22
- package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVarying.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVec2Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVec3Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVec4Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVectorBase.d.ts +0 -20
- package/typings/classes/VisualShaderNodeVectorCompose.d.ts +0 -8
- package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +0 -8
- package/typings/classes/VisualShaderNodeVectorDistance.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVectorFunc.d.ts +0 -84
- package/typings/classes/VisualShaderNodeVectorLen.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVectorOp.d.ts +0 -42
- package/typings/classes/VisualShaderNodeVectorRefract.d.ts +0 -8
- package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +0 -8
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** Virtual class to define custom {@link VisualShaderNode}s for use in the Visual Shader Editor. */
|
|
5
|
-
declare class VisualShaderNodeCustom extends VisualShaderNode {
|
|
6
|
-
/**
|
|
7
|
-
* Override this method to define the path to the associated custom node in the Visual Shader Editor's members dialog. The path may look like `"MyGame/MyFunctions/Noise"`.
|
|
8
|
-
* Defining this method is **optional**. If not overridden, the node will be filed under the "Addons" category.
|
|
9
|
-
*/
|
|
10
|
-
_get_category(): string;
|
|
11
|
-
/**
|
|
12
|
-
* Override this method to define the actual shader code of the associated custom node. The shader code should be returned as a string, which can have multiple lines (the `"""` multiline string construct can be used for convenience).
|
|
13
|
-
* The `input_vars` and `output_vars` arrays contain the string names of the various input and output variables, as defined by `_get_input_*` and `_get_output_*` virtual methods in this class.
|
|
14
|
-
* The output ports can be assigned values in the shader code. For example, `return output_vars[0] + " = " + input_vars[0] + ";"`.
|
|
15
|
-
* You can customize the generated code based on the shader `mode` and/or `type`.
|
|
16
|
-
* Defining this method is **required**.
|
|
17
|
-
*/
|
|
18
|
-
_get_code(input_vars: Array<string>, output_vars: Array<string>, mode: int, type_: int): string;
|
|
19
|
-
/**
|
|
20
|
-
* Override this method to define the input port which should be connected by default when this node is created as a result of dragging a connection from an existing node to the empty space on the graph.
|
|
21
|
-
* Defining this method is **optional**. If not overridden, the connection will be created to the first valid port.
|
|
22
|
-
*/
|
|
23
|
-
_get_default_input_port(type_: int): int;
|
|
24
|
-
/**
|
|
25
|
-
* Override this method to define the description of the associated custom node in the Visual Shader Editor's members dialog.
|
|
26
|
-
* Defining this method is **optional**.
|
|
27
|
-
*/
|
|
28
|
-
_get_description(): string;
|
|
29
|
-
/**
|
|
30
|
-
* Override this method to add a shader code to the beginning of each shader function (once). The shader code should be returned as a string, which can have multiple lines (the `"""` multiline string construct can be used for convenience).
|
|
31
|
-
* If there are multiple custom nodes of different types which use this feature the order of each insertion is undefined.
|
|
32
|
-
* You can customize the generated code based on the shader `mode` and/or `type`.
|
|
33
|
-
* Defining this method is **optional**.
|
|
34
|
-
*/
|
|
35
|
-
_get_func_code(mode: int, type_: int): string;
|
|
36
|
-
/**
|
|
37
|
-
* Override this method to add shader code on top of the global shader, to define your own standard library of reusable methods, varyings, constants, uniforms, etc. The shader code should be returned as a string, which can have multiple lines (the `"""` multiline string construct can be used for convenience).
|
|
38
|
-
* Be careful with this functionality as it can cause name conflicts with other custom nodes, so be sure to give the defined entities unique names.
|
|
39
|
-
* You can customize the generated code based on the shader `mode`.
|
|
40
|
-
* Defining this method is **optional**.
|
|
41
|
-
*/
|
|
42
|
-
_get_global_code(mode: int): string;
|
|
43
|
-
/**
|
|
44
|
-
* Override this method to define the number of input ports of the associated custom node.
|
|
45
|
-
* Defining this method is **required**. If not overridden, the node has no input ports.
|
|
46
|
-
*/
|
|
47
|
-
_get_input_port_count(): int;
|
|
48
|
-
/**
|
|
49
|
-
* Override this method to define the default value for the specified input port. Prefer use this over {@link VisualShaderNode.set_input_port_default_value}.
|
|
50
|
-
* Defining this method is **required**. If not overridden, the node has no default values for their input ports.
|
|
51
|
-
*/
|
|
52
|
-
_get_input_port_default_value(port: int): unknown;
|
|
53
|
-
/**
|
|
54
|
-
* Override this method to define the names of input ports of the associated custom node. The names are used both for the input slots in the editor and as identifiers in the shader code, and are passed in the `input_vars` array in {@link _get_code}.
|
|
55
|
-
* Defining this method is **optional**, but recommended. If not overridden, input ports are named as `"in" + str(port)`.
|
|
56
|
-
*/
|
|
57
|
-
_get_input_port_name(port: int): string;
|
|
58
|
-
/**
|
|
59
|
-
* Override this method to define the returned type of each input port of the associated custom node.
|
|
60
|
-
* Defining this method is **optional**, but recommended. If not overridden, input ports will return the {@link VisualShaderNode.PORT_TYPE_SCALAR} type.
|
|
61
|
-
*/
|
|
62
|
-
_get_input_port_type(port: int): int;
|
|
63
|
-
/**
|
|
64
|
-
* Override this method to define the name of the associated custom node in the Visual Shader Editor's members dialog and graph.
|
|
65
|
-
* Defining this method is **optional**, but recommended. If not overridden, the node will be named as "Unnamed".
|
|
66
|
-
*/
|
|
67
|
-
_get_name(): string;
|
|
68
|
-
/**
|
|
69
|
-
* Override this method to define the number of output ports of the associated custom node.
|
|
70
|
-
* Defining this method is **required**. If not overridden, the node has no output ports.
|
|
71
|
-
*/
|
|
72
|
-
_get_output_port_count(): int;
|
|
73
|
-
/**
|
|
74
|
-
* Override this method to define the names of output ports of the associated custom node. The names are used both for the output slots in the editor and as identifiers in the shader code, and are passed in the `output_vars` array in {@link _get_code}.
|
|
75
|
-
* Defining this method is **optional**, but recommended. If not overridden, output ports are named as `"out" + str(port)`.
|
|
76
|
-
*/
|
|
77
|
-
_get_output_port_name(port: int): string;
|
|
78
|
-
/**
|
|
79
|
-
* Override this method to define the returned type of each output port of the associated custom node.
|
|
80
|
-
* Defining this method is **optional**, but recommended. If not overridden, output ports will return the {@link VisualShaderNode.PORT_TYPE_SCALAR} type.
|
|
81
|
-
*/
|
|
82
|
-
_get_output_port_type(port: int): int;
|
|
83
|
-
/**
|
|
84
|
-
* Override this method to define the number of the properties.
|
|
85
|
-
* Defining this method is **optional**.
|
|
86
|
-
*/
|
|
87
|
-
_get_property_count(): int;
|
|
88
|
-
/**
|
|
89
|
-
* Override this method to define the default index of the property of the associated custom node.
|
|
90
|
-
* Defining this method is **optional**.
|
|
91
|
-
*/
|
|
92
|
-
_get_property_default_index(index: int): int;
|
|
93
|
-
/**
|
|
94
|
-
* Override this method to define the names of the property of the associated custom node.
|
|
95
|
-
* Defining this method is **optional**.
|
|
96
|
-
*/
|
|
97
|
-
_get_property_name(index: int): string;
|
|
98
|
-
/**
|
|
99
|
-
* Override this method to define the options inside the drop-down list property of the associated custom node.
|
|
100
|
-
* Defining this method is **optional**.
|
|
101
|
-
*/
|
|
102
|
-
_get_property_options(index: int): PackedStringArray;
|
|
103
|
-
/**
|
|
104
|
-
* Override this method to define the return icon of the associated custom node in the Visual Shader Editor's members dialog.
|
|
105
|
-
* Defining this method is **optional**. If not overridden, no return icon is shown.
|
|
106
|
-
*/
|
|
107
|
-
_get_return_icon_type(): int;
|
|
108
|
-
/**
|
|
109
|
-
* Override this method to prevent the node to be visible in the member dialog for the certain `mode` and/or `type`.
|
|
110
|
-
* Defining this method is **optional**. If not overridden, it's `true`.
|
|
111
|
-
*/
|
|
112
|
-
_is_available(mode: int, type_: int): boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Override this method to enable the high-end mark in the Visual Shader Editor's members dialog. This should return `true` for nodes that only work when using the Forward+ and Mobile renderers.
|
|
115
|
-
* Defining this method is **optional**. If not overridden, it's `false`, which indicates this node works with all renderers (including Compatibility).
|
|
116
|
-
*/
|
|
117
|
-
_is_highend(): boolean;
|
|
118
|
-
/**
|
|
119
|
-
* Returns the selected index of the drop-down list option within a graph. You may use this function to define the specific behavior in the {@link _get_code} or {@link _get_global_code}.
|
|
120
|
-
*/
|
|
121
|
-
get_option_index(option: int): int;
|
|
122
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** Calculates a derivative within the visual shader graph. */
|
|
5
|
-
declare class VisualShaderNodeDerivativeFunc extends VisualShaderNode {
|
|
6
|
-
/** A derivative function type. */
|
|
7
|
-
function: int;
|
|
8
|
-
/** A type of operands and returned value. */
|
|
9
|
-
op_type: int;
|
|
10
|
-
/**
|
|
11
|
-
* Sets the level of precision to use for the derivative function. When using the Compatibility renderer, this setting has no effect.
|
|
12
|
-
*/
|
|
13
|
-
precision: int;
|
|
14
|
-
set_function(value: int): void;
|
|
15
|
-
get_function(): int;
|
|
16
|
-
set_op_type(value: int): void;
|
|
17
|
-
get_op_type(): int;
|
|
18
|
-
set_precision(value: int): void;
|
|
19
|
-
get_precision(): int;
|
|
20
|
-
|
|
21
|
-
// enum OpType
|
|
22
|
-
/** A floating-point scalar. */
|
|
23
|
-
static readonly OP_TYPE_SCALAR: int;
|
|
24
|
-
/** A 2D vector type. */
|
|
25
|
-
static readonly OP_TYPE_VECTOR_2D: int;
|
|
26
|
-
/** A 3D vector type. */
|
|
27
|
-
static readonly OP_TYPE_VECTOR_3D: int;
|
|
28
|
-
/** A 4D vector type. */
|
|
29
|
-
static readonly OP_TYPE_VECTOR_4D: int;
|
|
30
|
-
/** Represents the size of the {@link OpType} enum. */
|
|
31
|
-
static readonly OP_TYPE_MAX: int;
|
|
32
|
-
// enum Function
|
|
33
|
-
/** Sum of absolute derivative in `x` and `y`. */
|
|
34
|
-
static readonly FUNC_SUM: int;
|
|
35
|
-
/** Derivative in `x` using local differencing. */
|
|
36
|
-
static readonly FUNC_X: int;
|
|
37
|
-
/** Derivative in `y` using local differencing. */
|
|
38
|
-
static readonly FUNC_Y: int;
|
|
39
|
-
/** Represents the size of the {@link Function} enum. */
|
|
40
|
-
static readonly FUNC_MAX: int;
|
|
41
|
-
// enum Precision
|
|
42
|
-
/**
|
|
43
|
-
* No precision is specified, the GPU driver is allowed to use whatever level of precision it chooses. This is the default option and is equivalent to using `dFdx()` or `dFdy()` in text shaders.
|
|
44
|
-
*/
|
|
45
|
-
static readonly PRECISION_NONE: int;
|
|
46
|
-
/**
|
|
47
|
-
* The derivative will be calculated using the current fragment's neighbors (which may not include the current fragment). This tends to be faster than using {@link PRECISION_FINE}, but may not be suitable when more precision is needed. This is equivalent to using `dFdxCoarse()` or `dFdyCoarse()` in text shaders.
|
|
48
|
-
*/
|
|
49
|
-
static readonly PRECISION_COARSE: int;
|
|
50
|
-
/**
|
|
51
|
-
* The derivative will be calculated using the current fragment and its immediate neighbors. This tends to be slower than using {@link PRECISION_COARSE}, but may be necessary when more precision is needed. This is equivalent to using `dFdxFine()` or `dFdyFine()` in text shaders.
|
|
52
|
-
*/
|
|
53
|
-
static readonly PRECISION_FINE: int;
|
|
54
|
-
/** Represents the size of the {@link Precision} enum. */
|
|
55
|
-
static readonly PRECISION_MAX: int;
|
|
56
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** Calculates the determinant of a {@link Transform3D} within the visual shader graph. */
|
|
5
|
-
declare class VisualShaderNodeDeterminant extends VisualShaderNode {
|
|
6
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** A custom visual shader graph expression written in Godot Shading Language. */
|
|
5
|
-
declare class VisualShaderNodeExpression extends VisualShaderNodeGroupBase {
|
|
6
|
-
/**
|
|
7
|
-
* An expression in Godot Shading Language, which will be injected at the start of the graph's matching shader function (`vertex`, `fragment`, or `light`), and thus cannot be used to declare functions, varyings, uniforms, or global constants.
|
|
8
|
-
*/
|
|
9
|
-
expression: string;
|
|
10
|
-
set_expression(value: string | NodePath): void;
|
|
11
|
-
get_expression(): string;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Returns the vector that points in the same direction as a reference vector within the visual shader graph.
|
|
6
|
-
*/
|
|
7
|
-
declare class VisualShaderNodeFaceForward extends VisualShaderNodeVectorBase {
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** A scalar floating-point constant to be used within the visual shader graph. */
|
|
5
|
-
declare class VisualShaderNodeFloatConstant extends VisualShaderNodeConstant {
|
|
6
|
-
/** A floating-point constant which represents a state of this node. */
|
|
7
|
-
constant: float;
|
|
8
|
-
set_constant(value: float): void;
|
|
9
|
-
get_constant(): float;
|
|
10
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** A scalar floating-point function to be used within the visual shader graph. */
|
|
5
|
-
declare class VisualShaderNodeFloatFunc extends VisualShaderNode {
|
|
6
|
-
/** A function to be applied to the scalar. */
|
|
7
|
-
function: int;
|
|
8
|
-
set_function(value: int): void;
|
|
9
|
-
get_function(): int;
|
|
10
|
-
|
|
11
|
-
// enum Function
|
|
12
|
-
/** Returns the sine of the parameter. Translates to `sin(x)` in the Godot Shader Language. */
|
|
13
|
-
static readonly FUNC_SIN: int;
|
|
14
|
-
/** Returns the cosine of the parameter. Translates to `cos(x)` in the Godot Shader Language. */
|
|
15
|
-
static readonly FUNC_COS: int;
|
|
16
|
-
/** Returns the tangent of the parameter. Translates to `tan(x)` in the Godot Shader Language. */
|
|
17
|
-
static readonly FUNC_TAN: int;
|
|
18
|
-
/** Returns the arc-sine of the parameter. Translates to `asin(x)` in the Godot Shader Language. */
|
|
19
|
-
static readonly FUNC_ASIN: int;
|
|
20
|
-
/** Returns the arc-cosine of the parameter. Translates to `acos(x)` in the Godot Shader Language. */
|
|
21
|
-
static readonly FUNC_ACOS: int;
|
|
22
|
-
/** Returns the arc-tangent of the parameter. Translates to `atan(x)` in the Godot Shader Language. */
|
|
23
|
-
static readonly FUNC_ATAN: int;
|
|
24
|
-
/** Returns the hyperbolic sine of the parameter. Translates to `sinh(x)` in the Godot Shader Language. */
|
|
25
|
-
static readonly FUNC_SINH: int;
|
|
26
|
-
/**
|
|
27
|
-
* Returns the hyperbolic cosine of the parameter. Translates to `cosh(x)` in the Godot Shader Language.
|
|
28
|
-
*/
|
|
29
|
-
static readonly FUNC_COSH: int;
|
|
30
|
-
/**
|
|
31
|
-
* Returns the hyperbolic tangent of the parameter. Translates to `tanh(x)` in the Godot Shader Language.
|
|
32
|
-
*/
|
|
33
|
-
static readonly FUNC_TANH: int;
|
|
34
|
-
/**
|
|
35
|
-
* Returns the natural logarithm of the parameter. Translates to `log(x)` in the Godot Shader Language.
|
|
36
|
-
*/
|
|
37
|
-
static readonly FUNC_LOG: int;
|
|
38
|
-
/**
|
|
39
|
-
* Returns the natural exponentiation of the parameter. Translates to `exp(x)` in the Godot Shader Language.
|
|
40
|
-
*/
|
|
41
|
-
static readonly FUNC_EXP: int;
|
|
42
|
-
/** Returns the square root of the parameter. Translates to `sqrt(x)` in the Godot Shader Language. */
|
|
43
|
-
static readonly FUNC_SQRT: int;
|
|
44
|
-
/** Returns the absolute value of the parameter. Translates to `abs(x)` in the Godot Shader Language. */
|
|
45
|
-
static readonly FUNC_ABS: int;
|
|
46
|
-
/** Extracts the sign of the parameter. Translates to `sign(x)` in the Godot Shader Language. */
|
|
47
|
-
static readonly FUNC_SIGN: int;
|
|
48
|
-
/**
|
|
49
|
-
* Finds the nearest integer less than or equal to the parameter. Translates to `floor(x)` in the Godot Shader Language.
|
|
50
|
-
*/
|
|
51
|
-
static readonly FUNC_FLOOR: int;
|
|
52
|
-
/** Finds the nearest integer to the parameter. Translates to `round(x)` in the Godot Shader Language. */
|
|
53
|
-
static readonly FUNC_ROUND: int;
|
|
54
|
-
/**
|
|
55
|
-
* Finds the nearest integer that is greater than or equal to the parameter. Translates to `ceil(x)` in the Godot Shader Language.
|
|
56
|
-
*/
|
|
57
|
-
static readonly FUNC_CEIL: int;
|
|
58
|
-
/**
|
|
59
|
-
* Computes the fractional part of the argument. Translates to `fract(x)` in the Godot Shader Language.
|
|
60
|
-
*/
|
|
61
|
-
static readonly FUNC_FRACT: int;
|
|
62
|
-
/** Clamps the value between `0.0` and `1.0` using `min(max(x, 0.0), 1.0)`. */
|
|
63
|
-
static readonly FUNC_SATURATE: int;
|
|
64
|
-
/** Negates the `x` using `-(x)`. */
|
|
65
|
-
static readonly FUNC_NEGATE: int;
|
|
66
|
-
/**
|
|
67
|
-
* Returns the arc-hyperbolic-cosine of the parameter. Translates to `acosh(x)` in the Godot Shader Language.
|
|
68
|
-
*/
|
|
69
|
-
static readonly FUNC_ACOSH: int;
|
|
70
|
-
/**
|
|
71
|
-
* Returns the arc-hyperbolic-sine of the parameter. Translates to `asinh(x)` in the Godot Shader Language.
|
|
72
|
-
*/
|
|
73
|
-
static readonly FUNC_ASINH: int;
|
|
74
|
-
/**
|
|
75
|
-
* Returns the arc-hyperbolic-tangent of the parameter. Translates to `atanh(x)` in the Godot Shader Language.
|
|
76
|
-
*/
|
|
77
|
-
static readonly FUNC_ATANH: int;
|
|
78
|
-
/** Convert a quantity in radians to degrees. Translates to `degrees(x)` in the Godot Shader Language. */
|
|
79
|
-
static readonly FUNC_DEGREES: int;
|
|
80
|
-
/**
|
|
81
|
-
* Returns 2 raised by the power of the parameter. Translates to `exp2(x)` in the Godot Shader Language.
|
|
82
|
-
*/
|
|
83
|
-
static readonly FUNC_EXP2: int;
|
|
84
|
-
/**
|
|
85
|
-
* Returns the inverse of the square root of the parameter. Translates to `inversesqrt(x)` in the Godot Shader Language.
|
|
86
|
-
*/
|
|
87
|
-
static readonly FUNC_INVERSE_SQRT: int;
|
|
88
|
-
/**
|
|
89
|
-
* Returns the base 2 logarithm of the parameter. Translates to `log2(x)` in the Godot Shader Language.
|
|
90
|
-
*/
|
|
91
|
-
static readonly FUNC_LOG2: int;
|
|
92
|
-
/** Convert a quantity in degrees to radians. Translates to `radians(x)` in the Godot Shader Language. */
|
|
93
|
-
static readonly FUNC_RADIANS: int;
|
|
94
|
-
/** Finds reciprocal value of dividing 1 by `x` (i.e. `1 / x`). */
|
|
95
|
-
static readonly FUNC_RECIPROCAL: int;
|
|
96
|
-
/**
|
|
97
|
-
* Finds the nearest even integer to the parameter. Translates to `roundEven(x)` in the Godot Shader Language.
|
|
98
|
-
*/
|
|
99
|
-
static readonly FUNC_ROUNDEVEN: int;
|
|
100
|
-
/**
|
|
101
|
-
* Returns a value equal to the nearest integer to `x` whose absolute value is not larger than the absolute value of `x`. Translates to `trunc(x)` in the Godot Shader Language.
|
|
102
|
-
*/
|
|
103
|
-
static readonly FUNC_TRUNC: int;
|
|
104
|
-
/** Subtracts scalar `x` from 1 (i.e. `1 - x`). */
|
|
105
|
-
static readonly FUNC_ONEMINUS: int;
|
|
106
|
-
/** Represents the size of the {@link Function} enum. */
|
|
107
|
-
static readonly FUNC_MAX: int;
|
|
108
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** A floating-point scalar operator to be used within the visual shader graph. */
|
|
5
|
-
declare class VisualShaderNodeFloatOp extends VisualShaderNode {
|
|
6
|
-
/** An operator to be applied to the inputs. */
|
|
7
|
-
operator: int;
|
|
8
|
-
set_operator(value: int): void;
|
|
9
|
-
get_operator(): int;
|
|
10
|
-
|
|
11
|
-
// enum Operator
|
|
12
|
-
/** Sums two numbers using `a + b`. */
|
|
13
|
-
static readonly OP_ADD: int;
|
|
14
|
-
/** Subtracts two numbers using `a - b`. */
|
|
15
|
-
static readonly OP_SUB: int;
|
|
16
|
-
/** Multiplies two numbers using `a * b`. */
|
|
17
|
-
static readonly OP_MUL: int;
|
|
18
|
-
/** Divides two numbers using `a / b`. */
|
|
19
|
-
static readonly OP_DIV: int;
|
|
20
|
-
/** Calculates the remainder of two numbers. Translates to `mod(a, b)` in the Godot Shader Language. */
|
|
21
|
-
static readonly OP_MOD: int;
|
|
22
|
-
/** Raises the `a` to the power of `b`. Translates to `pow(a, b)` in the Godot Shader Language. */
|
|
23
|
-
static readonly OP_POW: int;
|
|
24
|
-
/** Returns the greater of two numbers. Translates to `max(a, b)` in the Godot Shader Language. */
|
|
25
|
-
static readonly OP_MAX: int;
|
|
26
|
-
/** Returns the lesser of two numbers. Translates to `min(a, b)` in the Godot Shader Language. */
|
|
27
|
-
static readonly OP_MIN: int;
|
|
28
|
-
/** Returns the arc-tangent of the parameters. Translates to `atan(a, b)` in the Godot Shader Language. */
|
|
29
|
-
static readonly OP_ATAN2: int;
|
|
30
|
-
/**
|
|
31
|
-
* Generates a step function by comparing `b`(x) to `a`(edge). Returns 0.0 if `x` is smaller than `edge` and otherwise 1.0. Translates to `step(a, b)` in the Godot Shader Language.
|
|
32
|
-
*/
|
|
33
|
-
static readonly OP_STEP: int;
|
|
34
|
-
/** Represents the size of the {@link Operator} enum. */
|
|
35
|
-
static readonly OP_ENUM_SIZE: int;
|
|
36
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** A scalar float parameter to be used within the visual shader graph. */
|
|
5
|
-
declare class VisualShaderNodeFloatParameter extends VisualShaderNodeParameter {
|
|
6
|
-
/** A default value to be assigned within the shader. */
|
|
7
|
-
default_value: float;
|
|
8
|
-
/** Enables usage of the {@link default_value}. */
|
|
9
|
-
default_value_enabled: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* A hint applied to the uniform, which controls the values it can take when set through the Inspector.
|
|
12
|
-
*/
|
|
13
|
-
hint: int;
|
|
14
|
-
/**
|
|
15
|
-
* Minimum value for range hints. Used if {@link hint} is set to {@link HINT_RANGE} or {@link HINT_RANGE_STEP}.
|
|
16
|
-
*/
|
|
17
|
-
max: float;
|
|
18
|
-
/**
|
|
19
|
-
* Maximum value for range hints. Used if {@link hint} is set to {@link HINT_RANGE} or {@link HINT_RANGE_STEP}.
|
|
20
|
-
*/
|
|
21
|
-
min: float;
|
|
22
|
-
/**
|
|
23
|
-
* Step (increment) value for the range hint with step. Used if {@link hint} is set to {@link HINT_RANGE_STEP}.
|
|
24
|
-
*/
|
|
25
|
-
step: float;
|
|
26
|
-
set_default_value(value: float): void;
|
|
27
|
-
get_default_value(): float;
|
|
28
|
-
set_default_value_enabled(value: boolean): void;
|
|
29
|
-
is_default_value_enabled(): boolean;
|
|
30
|
-
set_hint(value: int): void;
|
|
31
|
-
get_hint(): int;
|
|
32
|
-
set_max(value: float): void;
|
|
33
|
-
get_max(): float;
|
|
34
|
-
set_min(value: float): void;
|
|
35
|
-
get_min(): float;
|
|
36
|
-
set_step(value: float): void;
|
|
37
|
-
get_step(): float;
|
|
38
|
-
|
|
39
|
-
// enum Hint
|
|
40
|
-
/** No hint used. */
|
|
41
|
-
static readonly HINT_NONE: int;
|
|
42
|
-
/**
|
|
43
|
-
* A range hint for scalar value, which limits possible input values between {@link min} and {@link max}. Translated to `hint_range(min, max)` in shader code.
|
|
44
|
-
*/
|
|
45
|
-
static readonly HINT_RANGE: int;
|
|
46
|
-
/**
|
|
47
|
-
* A range hint for scalar value with step, which limits possible input values between {@link min} and {@link max}, with a step (increment) of {@link step}). Translated to `hint_range(min, max, step)` in shader code.
|
|
48
|
-
*/
|
|
49
|
-
static readonly HINT_RANGE_STEP: int;
|
|
50
|
-
/** Represents the size of the {@link Hint} enum. */
|
|
51
|
-
static readonly HINT_MAX: int;
|
|
52
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** A frame other visual shader nodes can be attached to for better organization. */
|
|
5
|
-
declare class VisualShaderNodeFrame extends VisualShaderNodeResizableBase {
|
|
6
|
-
/** The list of nodes attached to the frame. */
|
|
7
|
-
attached_nodes: PackedInt32Array;
|
|
8
|
-
/** If `true`, the frame will automatically resize to enclose all attached nodes. */
|
|
9
|
-
autoshrink: boolean;
|
|
10
|
-
/** The color of the frame when {@link tint_color_enabled} is `true`. */
|
|
11
|
-
tint_color: Color;
|
|
12
|
-
/** If `true`, the frame will be tinted with the color specified in {@link tint_color}. */
|
|
13
|
-
tint_color_enabled: boolean;
|
|
14
|
-
/** The title of the node. */
|
|
15
|
-
title: string;
|
|
16
|
-
set_attached_nodes(value: PackedInt32Array | Array<unknown>): void;
|
|
17
|
-
get_attached_nodes(): PackedInt32Array;
|
|
18
|
-
set_autoshrink_enabled(value: boolean): void;
|
|
19
|
-
is_autoshrink_enabled(): boolean;
|
|
20
|
-
set_tint_color(value: Color): void;
|
|
21
|
-
get_tint_color(): Color;
|
|
22
|
-
set_tint_color_enabled(value: boolean): void;
|
|
23
|
-
is_tint_color_enabled(): boolean;
|
|
24
|
-
set_title(value: string | NodePath): void;
|
|
25
|
-
get_title(): string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Adds a node to the list of nodes attached to the frame. Should not be called directly, use the {@link VisualShader.attach_node_to_frame} method instead.
|
|
29
|
-
*/
|
|
30
|
-
add_attached_node(node: int): void;
|
|
31
|
-
/**
|
|
32
|
-
* Removes a node from the list of nodes attached to the frame. Should not be called directly, use the {@link VisualShader.detach_node_from_frame} method instead.
|
|
33
|
-
*/
|
|
34
|
-
remove_attached_node(node: int): void;
|
|
35
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** A custom global visual shader graph expression written in Godot Shading Language. */
|
|
5
|
-
declare class VisualShaderNodeGlobalExpression extends VisualShaderNodeExpression {
|
|
6
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Base class for a family of nodes with variable number of input and output ports within the visual shader graph.
|
|
6
|
-
*/
|
|
7
|
-
declare class VisualShaderNodeGroupBase extends VisualShaderNodeResizableBase {
|
|
8
|
-
/** Adds an input port with the specified `type` (see {@link VisualShaderNode.PortType}) and `name`. */
|
|
9
|
-
add_input_port(id: int, type_: int, name: string | NodePath): void;
|
|
10
|
-
/** Adds an output port with the specified `type` (see {@link VisualShaderNode.PortType}) and `name`. */
|
|
11
|
-
add_output_port(id: int, type_: int, name: string | NodePath): void;
|
|
12
|
-
/** Removes all previously specified input ports. */
|
|
13
|
-
clear_input_ports(): void;
|
|
14
|
-
/** Removes all previously specified output ports. */
|
|
15
|
-
clear_output_ports(): void;
|
|
16
|
-
/** Returns a free input port ID which can be used in {@link add_input_port}. */
|
|
17
|
-
get_free_input_port_id(): int;
|
|
18
|
-
/** Returns a free output port ID which can be used in {@link add_output_port}. */
|
|
19
|
-
get_free_output_port_id(): int;
|
|
20
|
-
/** Returns the number of input ports in use. Alternative for {@link get_free_input_port_id}. */
|
|
21
|
-
get_input_port_count(): int;
|
|
22
|
-
/**
|
|
23
|
-
* Returns a {@link String} description of the input ports as a colon-separated list using the format `id,type,name;` (see {@link add_input_port}).
|
|
24
|
-
*/
|
|
25
|
-
get_inputs(): string;
|
|
26
|
-
/** Returns the number of output ports in use. Alternative for {@link get_free_output_port_id}. */
|
|
27
|
-
get_output_port_count(): int;
|
|
28
|
-
/**
|
|
29
|
-
* Returns a {@link String} description of the output ports as a colon-separated list using the format `id,type,name;` (see {@link add_output_port}).
|
|
30
|
-
*/
|
|
31
|
-
get_outputs(): string;
|
|
32
|
-
/** Returns `true` if the specified input port exists. */
|
|
33
|
-
has_input_port(id: int): boolean;
|
|
34
|
-
/** Returns `true` if the specified output port exists. */
|
|
35
|
-
has_output_port(id: int): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Returns `true` if the specified port name does not override an existed port name and is valid within the shader.
|
|
38
|
-
*/
|
|
39
|
-
is_valid_port_name(name: string | NodePath): boolean;
|
|
40
|
-
/** Removes the specified input port. */
|
|
41
|
-
remove_input_port(id: int): void;
|
|
42
|
-
/** Removes the specified output port. */
|
|
43
|
-
remove_output_port(id: int): void;
|
|
44
|
-
/** Renames the specified input port. */
|
|
45
|
-
set_input_port_name(id: int, name: string | NodePath): void;
|
|
46
|
-
/** Sets the specified input port's type (see {@link VisualShaderNode.PortType}). */
|
|
47
|
-
set_input_port_type(id: int, type_: int): void;
|
|
48
|
-
/**
|
|
49
|
-
* Defines all input ports using a {@link String} formatted as a colon-separated list: `id,type,name;` (see {@link add_input_port}).
|
|
50
|
-
*/
|
|
51
|
-
set_inputs(inputs: string | NodePath): void;
|
|
52
|
-
/** Renames the specified output port. */
|
|
53
|
-
set_output_port_name(id: int, name: string | NodePath): void;
|
|
54
|
-
/** Sets the specified output port's type (see {@link VisualShaderNode.PortType}). */
|
|
55
|
-
set_output_port_type(id: int, type_: int): void;
|
|
56
|
-
/**
|
|
57
|
-
* Defines all output ports using a {@link String} formatted as a colon-separated list: `id,type,name;` (see {@link add_output_port}).
|
|
58
|
-
*/
|
|
59
|
-
set_outputs(outputs: string | NodePath): void;
|
|
60
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Outputs a 3D vector based on the result of a floating-point comparison within the visual shader graph.
|
|
6
|
-
*/
|
|
7
|
-
declare class VisualShaderNodeIf extends VisualShaderNode {
|
|
8
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** Represents the input shader parameter within the visual shader graph. */
|
|
5
|
-
declare class VisualShaderNodeInput extends VisualShaderNode {
|
|
6
|
-
/**
|
|
7
|
-
* One of the several input constants in lower-case style like: "vertex" (`VERTEX`) or "point_size" (`POINT_SIZE`).
|
|
8
|
-
*/
|
|
9
|
-
input_name: string;
|
|
10
|
-
set_input_name(value: string | NodePath): void;
|
|
11
|
-
get_input_name(): string;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Returns a translated name of the current constant in the Godot Shader Language. E.g. `"ALBEDO"` if the {@link input_name} equal to `"albedo"`.
|
|
15
|
-
*/
|
|
16
|
-
get_input_real_name(): string;
|
|
17
|
-
|
|
18
|
-
/** Emitted when input is changed via {@link input_name}. */
|
|
19
|
-
input_type_changed: Signal<[]>;
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** A scalar integer constant to be used within the visual shader graph. */
|
|
5
|
-
declare class VisualShaderNodeIntConstant extends VisualShaderNodeConstant {
|
|
6
|
-
/** An integer constant which represents a state of this node. */
|
|
7
|
-
constant: int;
|
|
8
|
-
set_constant(value: int): void;
|
|
9
|
-
get_constant(): int;
|
|
10
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
-
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
-
|
|
4
|
-
/** A scalar integer function to be used within the visual shader graph. */
|
|
5
|
-
declare class VisualShaderNodeIntFunc extends VisualShaderNode {
|
|
6
|
-
/** A function to be applied to the scalar. */
|
|
7
|
-
function: int;
|
|
8
|
-
set_function(value: int): void;
|
|
9
|
-
get_function(): int;
|
|
10
|
-
|
|
11
|
-
// enum Function
|
|
12
|
-
/** Returns the absolute value of the parameter. Translates to `abs(x)` in the Godot Shader Language. */
|
|
13
|
-
static readonly FUNC_ABS: int;
|
|
14
|
-
/** Negates the `x` using `-(x)`. */
|
|
15
|
-
static readonly FUNC_NEGATE: int;
|
|
16
|
-
/** Extracts the sign of the parameter. Translates to `sign(x)` in the Godot Shader Language. */
|
|
17
|
-
static readonly FUNC_SIGN: int;
|
|
18
|
-
/**
|
|
19
|
-
* Returns the result of bitwise `NOT` operation on the integer. Translates to `~a` in the Godot Shader Language.
|
|
20
|
-
*/
|
|
21
|
-
static readonly FUNC_BITWISE_NOT: int;
|
|
22
|
-
/** Represents the size of the {@link Function} enum. */
|
|
23
|
-
static readonly FUNC_MAX: int;
|
|
24
|
-
}
|