typescript-to-gdscript 0.1.1 → 0.1.2

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.
Files changed (337) hide show
  1. package/README.md +4 -2
  2. package/dist/cli/convert.d.ts.map +1 -1
  3. package/dist/cli/convert.js +15 -5
  4. package/dist/cli/convert.js.map +1 -1
  5. package/dist/converter/ts-to-gd/access-rewrite.d.ts +40 -0
  6. package/dist/converter/ts-to-gd/access-rewrite.d.ts.map +1 -0
  7. package/dist/converter/ts-to-gd/access-rewrite.js +124 -0
  8. package/dist/converter/ts-to-gd/access-rewrite.js.map +1 -0
  9. package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
  10. package/dist/converter/ts-to-gd/expressions.js +31 -7
  11. package/dist/converter/ts-to-gd/expressions.js.map +1 -1
  12. package/dist/watcher/check.d.ts +87 -0
  13. package/dist/watcher/check.d.ts.map +1 -0
  14. package/dist/watcher/check.js +209 -0
  15. package/dist/watcher/check.js.map +1 -0
  16. package/dist/watcher/heal.d.ts +66 -0
  17. package/dist/watcher/heal.d.ts.map +1 -0
  18. package/dist/watcher/heal.js +132 -0
  19. package/dist/watcher/heal.js.map +1 -0
  20. package/dist/watcher/index.d.ts +1 -0
  21. package/dist/watcher/index.d.ts.map +1 -1
  22. package/dist/watcher/index.js +48 -52
  23. package/dist/watcher/index.js.map +1 -1
  24. package/package.json +1 -1
  25. package/typings/classes/AccessibilityServer.d.ts +405 -0
  26. package/typings/classes/AnimationLibrary.d.ts +4 -4
  27. package/typings/classes/AnimationNodeBlendSpace1D.d.ts +45 -4
  28. package/typings/classes/AnimationNodeBlendSpace2D.d.ts +45 -4
  29. package/typings/classes/Area3D.d.ts +14 -7
  30. package/typings/classes/AreaLight3D.d.ts +37 -0
  31. package/typings/classes/ArrayMesh.d.ts +15 -0
  32. package/typings/classes/AudioEffectAmplify.d.ts +2 -2
  33. package/typings/classes/AudioEffectBandLimitFilter.d.ts +1 -1
  34. package/typings/classes/AudioEffectBandPassFilter.d.ts +1 -1
  35. package/typings/classes/AudioEffectCapture.d.ts +10 -9
  36. package/typings/classes/AudioEffectChorus.d.ts +57 -28
  37. package/typings/classes/AudioEffectCompressor.d.ts +11 -9
  38. package/typings/classes/AudioEffectDelay.d.ts +21 -15
  39. package/typings/classes/AudioEffectDistortion.d.ts +19 -10
  40. package/typings/classes/AudioEffectEQ.d.ts +2 -2
  41. package/typings/classes/AudioEffectEQ10.d.ts +2 -2
  42. package/typings/classes/AudioEffectEQ21.d.ts +2 -2
  43. package/typings/classes/AudioEffectEQ6.d.ts +2 -2
  44. package/typings/classes/AudioEffectFilter.d.ts +25 -9
  45. package/typings/classes/AudioEffectHardLimiter.d.ts +8 -5
  46. package/typings/classes/AudioEffectHighPassFilter.d.ts +1 -1
  47. package/typings/classes/AudioEffectHighShelfFilter.d.ts +1 -1
  48. package/typings/classes/AudioEffectInstance.d.ts +1 -1
  49. package/typings/classes/AudioEffectLimiter.d.ts +9 -4
  50. package/typings/classes/AudioEffectLowPassFilter.d.ts +1 -1
  51. package/typings/classes/AudioEffectLowShelfFilter.d.ts +1 -1
  52. package/typings/classes/AudioEffectNotchFilter.d.ts +1 -1
  53. package/typings/classes/AudioEffectPanner.d.ts +7 -2
  54. package/typings/classes/AudioEffectPhaser.d.ts +9 -7
  55. package/typings/classes/AudioEffectPitchShift.d.ts +3 -3
  56. package/typings/classes/AudioEffectReverb.d.ts +17 -8
  57. package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +4 -5
  58. package/typings/classes/AudioEffectStereoEnhance.d.ts +7 -4
  59. package/typings/classes/AudioServer.d.ts +2 -2
  60. package/typings/classes/AudioStreamPlaybackResampled.d.ts +8 -0
  61. package/typings/classes/AudioStreamRandomizer.d.ts +10 -0
  62. package/typings/classes/AwaitTweener.d.ts +10 -0
  63. package/typings/classes/BaseButton.d.ts +1 -1
  64. package/typings/classes/Basis.d.ts +6 -2
  65. package/typings/classes/BlitMaterial.d.ts +22 -0
  66. package/typings/classes/CPUParticles2D.d.ts +2 -2
  67. package/typings/classes/CPUParticles3D.d.ts +2 -2
  68. package/typings/classes/Camera3D.d.ts +1 -1
  69. package/typings/classes/CameraAttributes.d.ts +1 -0
  70. package/typings/classes/CameraFeed.d.ts +4 -0
  71. package/typings/classes/CanvasItem.d.ts +16 -1
  72. package/typings/classes/CodeEdit.d.ts +6 -0
  73. package/typings/classes/CollisionObject2D.d.ts +6 -0
  74. package/typings/classes/CollisionPolygon2D.d.ts +5 -0
  75. package/typings/classes/CollisionShape2D.d.ts +5 -0
  76. package/typings/classes/Container.d.ts +7 -0
  77. package/typings/classes/Control.d.ts +127 -9
  78. package/typings/classes/Curve.d.ts +26 -1
  79. package/typings/classes/Curve2D.d.ts +15 -0
  80. package/typings/classes/Curve3D.d.ts +20 -0
  81. package/typings/classes/DPITexture.d.ts +14 -0
  82. package/typings/classes/Decal.d.ts +1 -0
  83. package/typings/classes/Dictionary.d.ts +1 -0
  84. package/typings/classes/DirAccess.d.ts +6 -1
  85. package/typings/classes/DisplayServer.d.ts +161 -9
  86. package/typings/classes/DrawableTexture2D.d.ts +43 -0
  87. package/typings/classes/EditorCommandPalette.d.ts +0 -2
  88. package/typings/classes/EditorContextMenuPlugin.d.ts +4 -0
  89. package/typings/classes/EditorDock.d.ts +10 -5
  90. package/typings/classes/EditorExportPlatform.d.ts +4 -2
  91. package/typings/classes/EditorExportPlugin.d.ts +7 -0
  92. package/typings/classes/EditorFeatureProfile.d.ts +1 -1
  93. package/typings/classes/EditorFileSystem.d.ts +2 -0
  94. package/typings/classes/EditorInspector.d.ts +10 -0
  95. package/typings/classes/EditorInterface.d.ts +6 -4
  96. package/typings/classes/EditorNode3DGizmoPlugin.d.ts +4 -0
  97. package/typings/classes/EditorPlugin.d.ts +4 -4
  98. package/typings/classes/EditorResourcePicker.d.ts +2 -1
  99. package/typings/classes/EditorSceneFormatImporter.d.ts +23 -0
  100. package/typings/classes/EditorSettings.d.ts +241 -140
  101. package/typings/classes/EditorSpinSlider.d.ts +6 -0
  102. package/typings/classes/EditorTranslationParserPlugin.d.ts +4 -0
  103. package/typings/classes/EditorVCSInterface.d.ts +6 -2
  104. package/typings/classes/Environment.d.ts +7 -2
  105. package/typings/classes/FileAccess.d.ts +1 -1
  106. package/typings/classes/FileDialog.d.ts +16 -1
  107. package/typings/classes/FoldableContainer.d.ts +1 -1
  108. package/typings/classes/Font.d.ts +15 -3
  109. package/typings/classes/FontVariation.d.ts +10 -0
  110. package/typings/classes/GDScript.d.ts +8 -0
  111. package/typings/classes/GDScriptLanguageProtocol.d.ts +25 -0
  112. package/typings/classes/GDScriptSyntaxHighlighter.d.ts +6 -0
  113. package/typings/classes/GDScriptTextDocument.d.ts +27 -0
  114. package/typings/classes/GDScriptWorkspace.d.ts +17 -0
  115. package/typings/classes/GPUParticles2D.d.ts +2 -2
  116. package/typings/classes/GPUParticles3D.d.ts +19 -2
  117. package/typings/classes/Geometry2D.d.ts +2 -2
  118. package/typings/classes/GeometryInstance3D.d.ts +1 -1
  119. package/typings/classes/GradientTexture2D.d.ts +2 -0
  120. package/typings/classes/Image.d.ts +7 -4
  121. package/typings/classes/ImageFormatLoader.d.ts +5 -0
  122. package/typings/classes/ImageTexture.d.ts +0 -2
  123. package/typings/classes/ImporterMesh.d.ts +6 -0
  124. package/typings/classes/Input.d.ts +159 -15
  125. package/typings/classes/InputEvent.d.ts +8 -0
  126. package/typings/classes/InputEventGesture.d.ts +2 -3
  127. package/typings/classes/InputEventMouse.d.ts +2 -3
  128. package/typings/classes/InputEventMouseMotion.d.ts +2 -2
  129. package/typings/classes/InputEventWithModifiers.d.ts +2 -3
  130. package/typings/classes/InputMap.d.ts +3 -0
  131. package/typings/classes/ItemList.d.ts +29 -2
  132. package/typings/classes/IterateIK3D.d.ts +6 -3
  133. package/typings/classes/JavaClassWrapper.d.ts +13 -0
  134. package/typings/classes/JavaScriptBridge.d.ts +1 -1
  135. package/typings/classes/Joint3D.d.ts +1 -0
  136. package/typings/classes/Label.d.ts +1 -0
  137. package/typings/classes/LabelSettings.d.ts +25 -0
  138. package/typings/classes/Light3D.d.ts +1 -1
  139. package/typings/classes/Logger.d.ts +1 -1
  140. package/typings/classes/LookAtModifier3D.d.ts +2 -1
  141. package/typings/classes/MainLoop.d.ts +4 -0
  142. package/typings/classes/MenuButton.d.ts +35 -0
  143. package/typings/classes/MeshLibrary.d.ts +2 -0
  144. package/typings/classes/MovieWriter.d.ts +2 -0
  145. package/typings/classes/MultiplayerPeerExtension.d.ts +9 -9
  146. package/typings/classes/NativeMenu.d.ts +10 -3
  147. package/typings/classes/Node.d.ts +15 -5
  148. package/typings/classes/Node3D.d.ts +6 -4
  149. package/typings/classes/OS.d.ts +3 -3
  150. package/typings/classes/Object.d.ts +9 -3
  151. package/typings/classes/OptimizedTranslation.d.ts +2 -2
  152. package/typings/classes/OptionButton.d.ts +51 -1
  153. package/typings/classes/PCKPacker.d.ts +4 -0
  154. package/typings/classes/PacketPeerExtension.d.ts +1 -1
  155. package/typings/classes/ParticleProcessMaterial.d.ts +63 -0
  156. package/typings/classes/PhysicsDirectBodyState2D.d.ts +2 -1
  157. package/typings/classes/PhysicsDirectBodyState3D.d.ts +2 -1
  158. package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +6 -6
  159. package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +6 -6
  160. package/typings/classes/PhysicsServer2D.d.ts +2 -2
  161. package/typings/classes/PhysicsServer2DExtension.d.ts +6 -6
  162. package/typings/classes/PhysicsServer3D.d.ts +145 -42
  163. package/typings/classes/PhysicsServer3DExtension.d.ts +1 -1
  164. package/typings/classes/PopupMenu.d.ts +74 -8
  165. package/typings/classes/PopupPanel.d.ts +2 -0
  166. package/typings/classes/PortableCompressedTexture2D.d.ts +0 -2
  167. package/typings/classes/ProjectSettings.d.ts +62 -10
  168. package/typings/classes/Quaternion.d.ts +2 -2
  169. package/typings/classes/RDAccelerationStructureGeometry.d.ts +42 -0
  170. package/typings/classes/RDAccelerationStructureInstance.d.ts +34 -0
  171. package/typings/classes/RDHitGroup.d.ts +20 -0
  172. package/typings/classes/RDPipelineShader.d.ts +14 -0
  173. package/typings/classes/RDShaderSPIRV.d.ts +30 -0
  174. package/typings/classes/RDShaderSource.d.ts +10 -0
  175. package/typings/classes/RandomNumberGenerator.d.ts +4 -2
  176. package/typings/classes/RenderSceneBuffersConfiguration.d.ts +4 -1
  177. package/typings/classes/RenderingDevice.d.ts +175 -1
  178. package/typings/classes/RenderingServer.d.ts +264 -14
  179. package/typings/classes/Resource.d.ts +4 -2
  180. package/typings/classes/ResourceImporterDynamicFont.d.ts +3 -1
  181. package/typings/classes/ResourceImporterOBJ.d.ts +1 -1
  182. package/typings/classes/ResourceImporterSVG.d.ts +10 -0
  183. package/typings/classes/ResourceImporterScene.d.ts +11 -3
  184. package/typings/classes/ResourceImporterTexture.d.ts +2 -2
  185. package/typings/classes/RichTextLabel.d.ts +14 -6
  186. package/typings/classes/Script.d.ts +2 -0
  187. package/typings/classes/ScriptEditor.d.ts +13 -0
  188. package/typings/classes/ScriptLanguageExtension.d.ts +7 -0
  189. package/typings/classes/ScrollContainer.d.ts +17 -5
  190. package/typings/classes/Shader.d.ts +2 -0
  191. package/typings/classes/Shape3D.d.ts +1 -0
  192. package/typings/classes/SkeletonModification2DJiggle.d.ts +4 -0
  193. package/typings/classes/SplitContainer.d.ts +6 -0
  194. package/typings/classes/SpringBoneSimulator3D.d.ts +4 -2
  195. package/typings/classes/SpriteFrames.d.ts +20 -4
  196. package/typings/classes/StreamPeerExtension.d.ts +2 -2
  197. package/typings/classes/String.d.ts +1 -1
  198. package/typings/classes/SubViewport.d.ts +4 -0
  199. package/typings/classes/TabBar.d.ts +20 -0
  200. package/typings/classes/TabContainer.d.ts +21 -3
  201. package/typings/classes/TextEdit.d.ts +5 -2
  202. package/typings/classes/TextServer.d.ts +25 -1
  203. package/typings/classes/TextServerExtension.d.ts +25 -1
  204. package/typings/classes/Texture2D.d.ts +14 -0
  205. package/typings/classes/TextureRect.d.ts +4 -1
  206. package/typings/classes/TileSet.d.ts +3 -1
  207. package/typings/classes/Tree.d.ts +25 -9
  208. package/typings/classes/TreeItem.d.ts +17 -2
  209. package/typings/classes/Tween.d.ts +13 -0
  210. package/typings/classes/UndoRedo.d.ts +2 -2
  211. package/typings/classes/Vector2.d.ts +4 -2
  212. package/typings/classes/Vector2i.d.ts +4 -2
  213. package/typings/classes/Vector3.d.ts +4 -2
  214. package/typings/classes/Vector3i.d.ts +4 -2
  215. package/typings/classes/Vector4.d.ts +4 -2
  216. package/typings/classes/Vector4i.d.ts +4 -2
  217. package/typings/classes/Viewport.d.ts +27 -1
  218. package/typings/classes/VirtualJoystick.d.ts +94 -0
  219. package/typings/classes/VoxelGIData.d.ts +10 -0
  220. package/typings/classes/Window.d.ts +41 -4
  221. package/typings/classes/XRCamera3D.d.ts +1 -1
  222. package/typings/classes/XRServer.d.ts +2 -0
  223. package/typings/classes/_globals.d.ts +55 -18
  224. package/typings/classes/index.d.ts +15 -112
  225. package/typings/godot-class-registry.json +2120 -3693
  226. package/typings/classes/VisualShader.d.ts +0 -110
  227. package/typings/classes/VisualShaderNode.d.ts +0 -63
  228. package/typings/classes/VisualShaderNodeBillboard.d.ts +0 -28
  229. package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +0 -10
  230. package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +0 -14
  231. package/typings/classes/VisualShaderNodeClamp.d.ts +0 -26
  232. package/typings/classes/VisualShaderNodeColorConstant.d.ts +0 -10
  233. package/typings/classes/VisualShaderNodeColorFunc.d.ts +0 -32
  234. package/typings/classes/VisualShaderNodeColorOp.d.ts +0 -32
  235. package/typings/classes/VisualShaderNodeColorParameter.d.ts +0 -14
  236. package/typings/classes/VisualShaderNodeComment.d.ts +0 -12
  237. package/typings/classes/VisualShaderNodeCompare.d.ts +0 -68
  238. package/typings/classes/VisualShaderNodeConstant.d.ts +0 -6
  239. package/typings/classes/VisualShaderNodeCubemap.d.ts +0 -43
  240. package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +0 -6
  241. package/typings/classes/VisualShaderNodeCurveTexture.d.ts +0 -10
  242. package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +0 -10
  243. package/typings/classes/VisualShaderNodeCustom.d.ts +0 -122
  244. package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +0 -56
  245. package/typings/classes/VisualShaderNodeDeterminant.d.ts +0 -6
  246. package/typings/classes/VisualShaderNodeDistanceFade.d.ts +0 -6
  247. package/typings/classes/VisualShaderNodeDotProduct.d.ts +0 -6
  248. package/typings/classes/VisualShaderNodeExpression.d.ts +0 -12
  249. package/typings/classes/VisualShaderNodeFaceForward.d.ts +0 -8
  250. package/typings/classes/VisualShaderNodeFloatConstant.d.ts +0 -10
  251. package/typings/classes/VisualShaderNodeFloatFunc.d.ts +0 -108
  252. package/typings/classes/VisualShaderNodeFloatOp.d.ts +0 -36
  253. package/typings/classes/VisualShaderNodeFloatParameter.d.ts +0 -52
  254. package/typings/classes/VisualShaderNodeFrame.d.ts +0 -35
  255. package/typings/classes/VisualShaderNodeFresnel.d.ts +0 -6
  256. package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +0 -6
  257. package/typings/classes/VisualShaderNodeGroupBase.d.ts +0 -60
  258. package/typings/classes/VisualShaderNodeIf.d.ts +0 -8
  259. package/typings/classes/VisualShaderNodeInput.d.ts +0 -20
  260. package/typings/classes/VisualShaderNodeIntConstant.d.ts +0 -10
  261. package/typings/classes/VisualShaderNodeIntFunc.d.ts +0 -24
  262. package/typings/classes/VisualShaderNodeIntOp.d.ts +0 -48
  263. package/typings/classes/VisualShaderNodeIntParameter.d.ts +0 -58
  264. package/typings/classes/VisualShaderNodeIs.d.ts +0 -18
  265. package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +0 -6
  266. package/typings/classes/VisualShaderNodeMix.d.ts +0 -28
  267. package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +0 -22
  268. package/typings/classes/VisualShaderNodeOuterProduct.d.ts +0 -6
  269. package/typings/classes/VisualShaderNodeOutput.d.ts +0 -6
  270. package/typings/classes/VisualShaderNodeParameter.d.ts +0 -32
  271. package/typings/classes/VisualShaderNodeParameterRef.d.ts +0 -10
  272. package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +0 -20
  273. package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +0 -6
  274. package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +0 -6
  275. package/typings/classes/VisualShaderNodeParticleEmit.d.ts +0 -22
  276. package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +0 -12
  277. package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +0 -20
  278. package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +0 -10
  279. package/typings/classes/VisualShaderNodeParticleOutput.d.ts +0 -6
  280. package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +0 -22
  281. package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +0 -6
  282. package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +0 -6
  283. package/typings/classes/VisualShaderNodeProximityFade.d.ts +0 -6
  284. package/typings/classes/VisualShaderNodeRandomRange.d.ts +0 -6
  285. package/typings/classes/VisualShaderNodeRemap.d.ts +0 -33
  286. package/typings/classes/VisualShaderNodeReroute.d.ts +0 -8
  287. package/typings/classes/VisualShaderNodeResizableBase.d.ts +0 -10
  288. package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +0 -6
  289. package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +0 -6
  290. package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +0 -8
  291. package/typings/classes/VisualShaderNodeSample3D.d.ts +0 -18
  292. package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +0 -6
  293. package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +0 -8
  294. package/typings/classes/VisualShaderNodeSmoothStep.d.ts +0 -28
  295. package/typings/classes/VisualShaderNodeStep.d.ts +0 -28
  296. package/typings/classes/VisualShaderNodeSwitch.d.ts +0 -30
  297. package/typings/classes/VisualShaderNodeTexture.d.ts +0 -57
  298. package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +0 -12
  299. package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +0 -6
  300. package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +0 -6
  301. package/typings/classes/VisualShaderNodeTexture3D.d.ts +0 -12
  302. package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +0 -6
  303. package/typings/classes/VisualShaderNodeTextureParameter.d.ts +0 -104
  304. package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +0 -6
  305. package/typings/classes/VisualShaderNodeTextureSDF.d.ts +0 -6
  306. package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +0 -6
  307. package/typings/classes/VisualShaderNodeTransformCompose.d.ts +0 -6
  308. package/typings/classes/VisualShaderNodeTransformConstant.d.ts +0 -10
  309. package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +0 -6
  310. package/typings/classes/VisualShaderNodeTransformFunc.d.ts +0 -18
  311. package/typings/classes/VisualShaderNodeTransformOp.d.ts +0 -32
  312. package/typings/classes/VisualShaderNodeTransformParameter.d.ts +0 -14
  313. package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +0 -22
  314. package/typings/classes/VisualShaderNodeUIntConstant.d.ts +0 -10
  315. package/typings/classes/VisualShaderNodeUIntFunc.d.ts +0 -20
  316. package/typings/classes/VisualShaderNodeUIntOp.d.ts +0 -48
  317. package/typings/classes/VisualShaderNodeUIntParameter.d.ts +0 -16
  318. package/typings/classes/VisualShaderNodeUVFunc.d.ts +0 -22
  319. package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +0 -6
  320. package/typings/classes/VisualShaderNodeVarying.d.ts +0 -14
  321. package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +0 -6
  322. package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +0 -6
  323. package/typings/classes/VisualShaderNodeVec2Constant.d.ts +0 -10
  324. package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +0 -14
  325. package/typings/classes/VisualShaderNodeVec3Constant.d.ts +0 -10
  326. package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +0 -14
  327. package/typings/classes/VisualShaderNodeVec4Constant.d.ts +0 -10
  328. package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +0 -14
  329. package/typings/classes/VisualShaderNodeVectorBase.d.ts +0 -20
  330. package/typings/classes/VisualShaderNodeVectorCompose.d.ts +0 -8
  331. package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +0 -8
  332. package/typings/classes/VisualShaderNodeVectorDistance.d.ts +0 -6
  333. package/typings/classes/VisualShaderNodeVectorFunc.d.ts +0 -84
  334. package/typings/classes/VisualShaderNodeVectorLen.d.ts +0 -6
  335. package/typings/classes/VisualShaderNodeVectorOp.d.ts +0 -42
  336. package/typings/classes/VisualShaderNodeVectorRefract.d.ts +0 -8
  337. package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +0 -8
@@ -1,110 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A custom shader program with a visual editor. */
5
- declare class VisualShader extends Shader {
6
- /** Deprecated. */
7
- graph_offset: Vector2;
8
- set_graph_offset(value: Vector2 | Vector2i): void;
9
- get_graph_offset(): Vector2;
10
-
11
- /** Adds the specified `node` to the shader. */
12
- add_node(type_: int, node: VisualShaderNode, position: Vector2 | Vector2i, id: int): void;
13
- /** Adds a new varying value node to the shader. */
14
- add_varying(name: string | NodePath, mode: int, type_: int): void;
15
- /** Attaches the given node to the given frame. */
16
- attach_node_to_frame(type_: int, id: int, frame: int): void;
17
- /** Returns `true` if the specified nodes and ports can be connected together. */
18
- can_connect_nodes(type_: int, from_node: int, from_port: int, to_node: int, to_port: int): boolean;
19
- /** Connects the specified nodes and ports. */
20
- connect_nodes(type_: int, from_node: int, from_port: int, to_node: int, to_port: int): int;
21
- /**
22
- * Connects the specified nodes and ports, even if they can't be connected. Such connection is invalid and will not function properly.
23
- */
24
- connect_nodes_forced(type_: int, from_node: int, from_port: int, to_node: int, to_port: int): void;
25
- /** Detaches the given node from the frame it is attached to. */
26
- detach_node_from_frame(type_: int, id: int): void;
27
- /** Connects the specified nodes and ports. */
28
- disconnect_nodes(type_: int, from_node: int, from_port: int, to_node: int, to_port: int): void;
29
- /** Returns the shader node instance with specified `type` and `id`. */
30
- get_node(type_: int, id: int): VisualShaderNode | null;
31
- /** Returns the list of connected nodes with the specified type. */
32
- get_node_connections(type_: int): Array<Dictionary>;
33
- /** Returns the list of all nodes in the shader with the specified type. */
34
- get_node_list(type_: int): PackedInt32Array;
35
- /** Returns the position of the specified node within the shader graph. */
36
- get_node_position(type_: int, id: int): Vector2;
37
- /** Returns next valid node ID that can be added to the shader graph. */
38
- get_valid_node_id(type_: int): int;
39
- /** Returns `true` if the shader has a varying with the given `name`. */
40
- has_varying(name: string | NodePath): boolean;
41
- /** Returns `true` if the specified node and port connection exist. */
42
- is_node_connection(type_: int, from_node: int, from_port: int, to_node: int, to_port: int): boolean;
43
- /** Removes the specified node from the shader. */
44
- remove_node(type_: int, id: int): void;
45
- /**
46
- * Removes a varying value node with the given `name`. Prints an error if a node with this name is not found.
47
- */
48
- remove_varying(name: string | NodePath): void;
49
- /** Replaces the specified node with a node of new class type. */
50
- replace_node(type_: int, id: int, new_class: string): void;
51
- /** Sets the mode of this shader. */
52
- set_mode(mode: int): void;
53
- /** Sets the position of the specified node. */
54
- set_node_position(type_: int, id: int, position: Vector2 | Vector2i): void;
55
-
56
- // enum Type
57
- /** A vertex shader, operating on vertices. */
58
- static readonly TYPE_VERTEX: int;
59
- /** A fragment shader, operating on fragments (pixels). */
60
- static readonly TYPE_FRAGMENT: int;
61
- /** A shader for light calculations. */
62
- static readonly TYPE_LIGHT: int;
63
- /** A function for the "start" stage of particle shader. */
64
- static readonly TYPE_START: int;
65
- /** A function for the "process" stage of particle shader. */
66
- static readonly TYPE_PROCESS: int;
67
- /** A function for the "collide" stage (particle collision handler) of particle shader. */
68
- static readonly TYPE_COLLIDE: int;
69
- /** A function for the "start" stage of particle shader, with customized output. */
70
- static readonly TYPE_START_CUSTOM: int;
71
- /** A function for the "process" stage of particle shader, with customized output. */
72
- static readonly TYPE_PROCESS_CUSTOM: int;
73
- /** A shader for 3D environment's sky. */
74
- static readonly TYPE_SKY: int;
75
- /** A compute shader that runs for each froxel of the volumetric fog map. */
76
- static readonly TYPE_FOG: int;
77
- /** Represents the size of the {@link Type} enum. */
78
- static readonly TYPE_MAX: int;
79
- // enum VaryingMode
80
- /** Varying is passed from `Vertex` function to `Fragment` and `Light` functions. */
81
- static readonly VARYING_MODE_VERTEX_TO_FRAG_LIGHT: int;
82
- /** Varying is passed from `Fragment` function to `Light` function. */
83
- static readonly VARYING_MODE_FRAG_TO_LIGHT: int;
84
- /** Represents the size of the {@link VaryingMode} enum. */
85
- static readonly VARYING_MODE_MAX: int;
86
- // enum VaryingType
87
- /** Varying is of type [float]. */
88
- static readonly VARYING_TYPE_FLOAT: int;
89
- /** Varying is of type [int]. */
90
- static readonly VARYING_TYPE_INT: int;
91
- /** Varying is of type unsigned [int]. */
92
- static readonly VARYING_TYPE_UINT: int;
93
- /** Varying is of type {@link Vector2}. */
94
- static readonly VARYING_TYPE_VECTOR_2D: int;
95
- /** Varying is of type {@link Vector3}. */
96
- static readonly VARYING_TYPE_VECTOR_3D: int;
97
- /** Varying is of type {@link Vector4}. */
98
- static readonly VARYING_TYPE_VECTOR_4D: int;
99
- /** Varying is of type [bool]. */
100
- static readonly VARYING_TYPE_BOOLEAN: int;
101
- /** Varying is of type {@link Transform3D}. */
102
- static readonly VARYING_TYPE_TRANSFORM: int;
103
- /** Represents the size of the {@link VaryingType} enum. */
104
- static readonly VARYING_TYPE_MAX: int;
105
-
106
- /** Indicates an invalid {@link VisualShader} node. */
107
- static readonly NODE_ID_INVALID: int;
108
- /** Indicates an output node of {@link VisualShader}. */
109
- static readonly NODE_ID_OUTPUT: int;
110
- }
@@ -1,63 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Base class for {@link VisualShader} nodes. Not related to scene nodes. */
5
- declare class VisualShaderNode extends Resource {
6
- /**
7
- * Represents the index of the frame this node is linked to. If set to `-1` the node is not linked to any frame.
8
- */
9
- linked_parent_graph_frame: int;
10
- /**
11
- * Sets the output port index which will be showed for preview. If set to `-1` no port will be open for preview.
12
- */
13
- output_port_for_preview: int;
14
- set_frame(value: int): void;
15
- get_frame(): int;
16
- set_output_port_for_preview(value: int): void;
17
- get_output_port_for_preview(): int;
18
-
19
- /** Clears the default input ports value. */
20
- clear_default_input_values(): void;
21
- /**
22
- * Returns 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.
23
- */
24
- get_default_input_port(type_: int): int;
25
- /**
26
- * Returns an {@link Array} containing default values for all of the input ports of the node in the form `[index0, value0, index1, value1, ...]`.
27
- */
28
- get_default_input_values(): Array<unknown>;
29
- /** Returns the default value of the input `port`. */
30
- get_input_port_default_value(port: int): unknown;
31
- /** Removes the default value of the input `port`. */
32
- remove_input_port_default_value(port: int): void;
33
- /**
34
- * Sets the default input ports values using an {@link Array} of the form `[index0, value0, index1, value1, ...]`. For example: `[0, Vector3(0, 0, 0), 1, Vector3(0, 0, 0)]`.
35
- */
36
- set_default_input_values(values: Array<unknown> | PackedByteArray | PackedColorArray | PackedFloat32Array | PackedFloat64Array | PackedInt32Array | PackedInt64Array | PackedStringArray | PackedVector2Array | PackedVector3Array | PackedVector4Array): void;
37
- /** Sets the default `value` for the selected input `port`. */
38
- set_input_port_default_value(port: int, value: unknown, prev_value?: unknown): void;
39
-
40
- // enum PortType
41
- /** Floating-point scalar. Translated to [code skip-lint]float[/code] type in shader code. */
42
- static readonly PORT_TYPE_SCALAR: int;
43
- /** Integer scalar. Translated to [code skip-lint]int[/code] type in shader code. */
44
- static readonly PORT_TYPE_SCALAR_INT: int;
45
- /** Unsigned integer scalar. Translated to [code skip-lint]uint[/code] type in shader code. */
46
- static readonly PORT_TYPE_SCALAR_UINT: int;
47
- /** 2D vector of floating-point values. Translated to [code skip-lint]vec2[/code] type in shader code. */
48
- static readonly PORT_TYPE_VECTOR_2D: int;
49
- /** 3D vector of floating-point values. Translated to [code skip-lint]vec3[/code] type in shader code. */
50
- static readonly PORT_TYPE_VECTOR_3D: int;
51
- /** 4D vector of floating-point values. Translated to [code skip-lint]vec4[/code] type in shader code. */
52
- static readonly PORT_TYPE_VECTOR_4D: int;
53
- /** Boolean type. Translated to [code skip-lint]bool[/code] type in shader code. */
54
- static readonly PORT_TYPE_BOOLEAN: int;
55
- /** Transform type. Translated to [code skip-lint]mat4[/code] type in shader code. */
56
- static readonly PORT_TYPE_TRANSFORM: int;
57
- /**
58
- * Sampler type. Translated to reference of sampler uniform in shader code. Can only be used for input ports in non-uniform nodes.
59
- */
60
- static readonly PORT_TYPE_SAMPLER: int;
61
- /** Represents the size of the {@link PortType} enum. */
62
- static readonly PORT_TYPE_MAX: int;
63
- }
@@ -1,28 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A node that controls how the object faces the camera to be used within the visual shader graph. */
5
- declare class VisualShaderNodeBillboard extends VisualShaderNode {
6
- /** Controls how the object faces the camera. */
7
- billboard_type: int;
8
- /**
9
- * If `true`, the shader will keep the scale set for the mesh. Otherwise, the scale is lost when billboarding.
10
- */
11
- keep_scale: boolean;
12
- set_billboard_type(value: int): void;
13
- get_billboard_type(): int;
14
- set_keep_scale_enabled(value: boolean): void;
15
- is_keep_scale_enabled(): boolean;
16
-
17
- // enum BillboardType
18
- /** Billboarding is disabled and the node does nothing. */
19
- static readonly BILLBOARD_TYPE_DISABLED: int;
20
- /** A standard billboarding algorithm is enabled. */
21
- static readonly BILLBOARD_TYPE_ENABLED: int;
22
- /** A billboarding algorithm to rotate around Y-axis is enabled. */
23
- static readonly BILLBOARD_TYPE_FIXED_Y: int;
24
- /** A billboarding algorithm designed to use on particles is enabled. */
25
- static readonly BILLBOARD_TYPE_PARTICLES: int;
26
- /** Represents the size of the {@link BillboardType} enum. */
27
- static readonly BILLBOARD_TYPE_MAX: int;
28
- }
@@ -1,10 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A boolean constant to be used within the visual shader graph. */
5
- declare class VisualShaderNodeBooleanConstant extends VisualShaderNodeConstant {
6
- /** A boolean constant which represents a state of this node. */
7
- constant: boolean;
8
- set_constant(value: boolean): void;
9
- get_constant(): boolean;
10
- }
@@ -1,14 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A boolean parameter to be used within the visual shader graph. */
5
- declare class VisualShaderNodeBooleanParameter extends VisualShaderNodeParameter {
6
- /** A default value to be assigned within the shader. */
7
- default_value: boolean;
8
- /** Enables usage of the {@link default_value}. */
9
- default_value_enabled: boolean;
10
- set_default_value(value: boolean): void;
11
- get_default_value(): boolean;
12
- set_default_value_enabled(value: boolean): void;
13
- is_default_value_enabled(): boolean;
14
- }
@@ -1,26 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Clamps a value within the visual shader graph. */
5
- declare class VisualShaderNodeClamp extends VisualShaderNode {
6
- /** A type of operands and returned value. */
7
- op_type: int;
8
- set_op_type(value: int): void;
9
- get_op_type(): int;
10
-
11
- // enum OpType
12
- /** A floating-point scalar. */
13
- static readonly OP_TYPE_FLOAT: int;
14
- /** An integer scalar. */
15
- static readonly OP_TYPE_INT: int;
16
- /** An unsigned integer scalar. */
17
- static readonly OP_TYPE_UINT: int;
18
- /** A 2D vector type. */
19
- static readonly OP_TYPE_VECTOR_2D: int;
20
- /** A 3D vector type. */
21
- static readonly OP_TYPE_VECTOR_3D: int;
22
- /** A 4D vector type. */
23
- static readonly OP_TYPE_VECTOR_4D: int;
24
- /** Represents the size of the {@link OpType} enum. */
25
- static readonly OP_TYPE_MAX: int;
26
- }
@@ -1,10 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A {@link Color} constant to be used within the visual shader graph. */
5
- declare class VisualShaderNodeColorConstant extends VisualShaderNodeConstant {
6
- /** A {@link Color} constant which represents a state of this node. */
7
- constant: Color;
8
- set_constant(value: Color): void;
9
- get_constant(): Color;
10
- }
@@ -1,32 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A {@link Color} function to be used within the visual shader graph. */
5
- declare class VisualShaderNodeColorFunc extends VisualShaderNode {
6
- /** A function to be applied to the input color. */
7
- function: int;
8
- set_function(value: int): void;
9
- get_function(): int;
10
-
11
- // enum Function
12
- /** Converts the color to grayscale using the following formula: */
13
- static readonly FUNC_GRAYSCALE: int;
14
- /** Converts HSV vector to RGB equivalent. */
15
- static readonly FUNC_HSV2RGB: int;
16
- /** Converts RGB vector to HSV equivalent. */
17
- static readonly FUNC_RGB2HSV: int;
18
- /** Applies sepia tone effect using the following formula: */
19
- static readonly FUNC_SEPIA: int;
20
- /**
21
- * Converts color from linear encoding to nonlinear sRGB encoding using the following formula:
22
- * The Compatibility renderer uses a simpler formula:
23
- */
24
- static readonly FUNC_LINEAR_TO_SRGB: int;
25
- /**
26
- * Converts color from nonlinear sRGB encoding to linear encoding using the following formula:
27
- * The Compatibility renderer uses a simpler formula:
28
- */
29
- static readonly FUNC_SRGB_TO_LINEAR: int;
30
- /** Represents the size of the {@link Function} enum. */
31
- static readonly FUNC_MAX: int;
32
- }
@@ -1,32 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A {@link Color} operator to be used within the visual shader graph. */
5
- declare class VisualShaderNodeColorOp 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
- /** Produce a screen effect with the following formula: */
13
- static readonly OP_SCREEN: int;
14
- /** Produce a difference effect with the following formula: */
15
- static readonly OP_DIFFERENCE: int;
16
- /** Produce a darken effect with the following formula: */
17
- static readonly OP_DARKEN: int;
18
- /** Produce a lighten effect with the following formula: */
19
- static readonly OP_LIGHTEN: int;
20
- /** Produce an overlay effect with the following formula: */
21
- static readonly OP_OVERLAY: int;
22
- /** Produce a dodge effect with the following formula: */
23
- static readonly OP_DODGE: int;
24
- /** Produce a burn effect with the following formula: */
25
- static readonly OP_BURN: int;
26
- /** Produce a soft light effect with the following formula: */
27
- static readonly OP_SOFT_LIGHT: int;
28
- /** Produce a hard light effect with the following formula: */
29
- static readonly OP_HARD_LIGHT: int;
30
- /** Represents the size of the {@link Operator} enum. */
31
- static readonly OP_MAX: int;
32
- }
@@ -1,14 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A {@link Color} parameter to be used within the visual shader graph. */
5
- declare class VisualShaderNodeColorParameter extends VisualShaderNodeParameter {
6
- /** A default value to be assigned within the shader. */
7
- default_value: Color;
8
- /** Enables usage of the {@link default_value}. */
9
- default_value_enabled: boolean;
10
- set_default_value(value: Color): void;
11
- get_default_value(): Color;
12
- set_default_value_enabled(value: boolean): void;
13
- is_default_value_enabled(): boolean;
14
- }
@@ -1,12 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Only exists for compatibility. Use {@link VisualShaderNodeFrame} as a replacement. */
5
- declare class VisualShaderNodeComment extends VisualShaderNodeFrame {
6
- /**
7
- * This property only exists to preserve data authored in earlier versions of Godot. It has currently no function.
8
- */
9
- description: string;
10
- set_description(value: string | NodePath): void;
11
- get_description(): string;
12
- }
@@ -1,68 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A comparison function for common types within the visual shader graph. */
5
- declare class VisualShaderNodeCompare extends VisualShaderNode {
6
- /** Extra condition which is applied if {@link type} is set to {@link CTYPE_VECTOR_3D}. */
7
- condition: int;
8
- /** A comparison function. */
9
- function: int;
10
- /** The type to be used in the comparison. */
11
- type: int;
12
- set_condition(value: int): void;
13
- get_condition(): int;
14
- set_function(value: int): void;
15
- get_function(): int;
16
- set_comparison_type(value: int): void;
17
- get_comparison_type(): int;
18
-
19
- // enum ComparisonType
20
- /** A floating-point scalar. */
21
- static readonly CTYPE_SCALAR: int;
22
- /** An integer scalar. */
23
- static readonly CTYPE_SCALAR_INT: int;
24
- /** An unsigned integer scalar. */
25
- static readonly CTYPE_SCALAR_UINT: int;
26
- /** A 2D vector type. */
27
- static readonly CTYPE_VECTOR_2D: int;
28
- /** A 3D vector type. */
29
- static readonly CTYPE_VECTOR_3D: int;
30
- /** A 4D vector type. */
31
- static readonly CTYPE_VECTOR_4D: int;
32
- /** A boolean type. */
33
- static readonly CTYPE_BOOLEAN: int;
34
- /** A transform (`mat4`) type. */
35
- static readonly CTYPE_TRANSFORM: int;
36
- /** Represents the size of the {@link ComparisonType} enum. */
37
- static readonly CTYPE_MAX: int;
38
- // enum Function
39
- /** Comparison for equality (`a == b`). */
40
- static readonly FUNC_EQUAL: int;
41
- /** Comparison for inequality (`a != b`). */
42
- static readonly FUNC_NOT_EQUAL: int;
43
- /**
44
- * Comparison for greater than (`a > b`). Cannot be used if {@link type} set to {@link CTYPE_BOOLEAN} or {@link CTYPE_TRANSFORM}.
45
- */
46
- static readonly FUNC_GREATER_THAN: int;
47
- /**
48
- * Comparison for greater than or equal (`a >= b`). Cannot be used if {@link type} set to {@link CTYPE_BOOLEAN} or {@link CTYPE_TRANSFORM}.
49
- */
50
- static readonly FUNC_GREATER_THAN_EQUAL: int;
51
- /**
52
- * Comparison for less than (`a < b`). Cannot be used if {@link type} set to {@link CTYPE_BOOLEAN} or {@link CTYPE_TRANSFORM}.
53
- */
54
- static readonly FUNC_LESS_THAN: int;
55
- /**
56
- * Comparison for less than or equal (`a <= b`). Cannot be used if {@link type} set to {@link CTYPE_BOOLEAN} or {@link CTYPE_TRANSFORM}.
57
- */
58
- static readonly FUNC_LESS_THAN_EQUAL: int;
59
- /** Represents the size of the {@link Function} enum. */
60
- static readonly FUNC_MAX: int;
61
- // enum Condition
62
- /** The result will be `true` if all components in the vector satisfy the comparison condition. */
63
- static readonly COND_ALL: int;
64
- /** The result will be `true` if any component in the vector satisfies the comparison condition. */
65
- static readonly COND_ANY: int;
66
- /** Represents the size of the {@link Condition} enum. */
67
- static readonly COND_MAX: int;
68
- }
@@ -1,6 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A base type for the constants within the visual shader graph. */
5
- declare class VisualShaderNodeConstant extends VisualShaderNode {
6
- }
@@ -1,43 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A {@link Cubemap} sampling node to be used within the visual shader graph. */
5
- declare class VisualShaderNodeCubemap extends VisualShaderNode {
6
- /** The {@link Cubemap} texture to sample when using {@link SOURCE_TEXTURE} as {@link source}. */
7
- cube_map: TextureLayered | null;
8
- /** Defines which source should be used for the sampling. */
9
- source: int;
10
- /** Defines the type of data provided by the source texture. */
11
- texture_type: int;
12
- set_cube_map(value: TextureLayered | null): void;
13
- get_cube_map(): TextureLayered | null;
14
- set_source(value: int): void;
15
- get_source(): int;
16
- set_texture_type(value: int): void;
17
- get_texture_type(): int;
18
-
19
- // enum Source
20
- /**
21
- * Use the {@link Cubemap} set via {@link cube_map}. If this is set to {@link source}, the `samplerCube` port is ignored.
22
- */
23
- static readonly SOURCE_TEXTURE: int;
24
- /**
25
- * Use the {@link Cubemap} sampler reference passed via the `samplerCube` port. If this is set to {@link source}, the {@link cube_map} texture is ignored.
26
- */
27
- static readonly SOURCE_PORT: int;
28
- /** Represents the size of the {@link Source} enum. */
29
- static readonly SOURCE_MAX: int;
30
- // enum TextureType
31
- /** No hints are added to the uniform declaration. */
32
- static readonly TYPE_DATA: int;
33
- /**
34
- * Adds `source_color` as hint to the uniform declaration for proper conversion from nonlinear sRGB encoding to linear encoding.
35
- */
36
- static readonly TYPE_COLOR: int;
37
- /**
38
- * Adds `hint_normal` as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
39
- */
40
- static readonly TYPE_NORMAL_MAP: int;
41
- /** Represents the size of the {@link TextureType} enum. */
42
- static readonly TYPE_MAX: int;
43
- }
@@ -1,6 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A {@link Cubemap} parameter node to be used within the visual shader graph. */
5
- declare class VisualShaderNodeCubemapParameter extends VisualShaderNodeTextureParameter {
6
- }
@@ -1,10 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Performs a {@link CurveTexture} lookup within the visual shader graph. */
5
- declare class VisualShaderNodeCurveTexture extends VisualShaderNodeResizableBase {
6
- /** The source texture. */
7
- texture: CurveTexture | null;
8
- set_texture(value: CurveTexture | null): void;
9
- get_texture(): CurveTexture | null;
10
- }
@@ -1,10 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Performs a {@link CurveXYZTexture} lookup within the visual shader graph. */
5
- declare class VisualShaderNodeCurveXYZTexture extends VisualShaderNodeResizableBase {
6
- /** The source texture. */
7
- texture: CurveXYZTexture | null;
8
- set_texture(value: CurveXYZTexture | null): void;
9
- get_texture(): CurveXYZTexture | null;
10
- }
@@ -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
- }