@babylonjs/core 7.53.0 → 7.53.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 (126) hide show
  1. package/Culling/Helper/boundingInfoHelper.d.ts +2 -2
  2. package/Culling/Helper/boundingInfoHelper.js +2 -2
  3. package/Culling/Helper/boundingInfoHelper.js.map +1 -1
  4. package/Engines/abstractEngine.js +2 -2
  5. package/Engines/abstractEngine.js.map +1 -1
  6. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js +1 -1
  7. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js.map +1 -1
  8. package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.js +7 -2
  9. package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.js.map +1 -1
  10. package/FlowGraph/CustomTypes/flowGraphMatrix.d.ts +1 -0
  11. package/FlowGraph/CustomTypes/flowGraphMatrix.js +18 -17
  12. package/FlowGraph/CustomTypes/flowGraphMatrix.js.map +1 -1
  13. package/FlowGraph/flowGraphDataConnection.d.ts +10 -1
  14. package/FlowGraph/flowGraphDataConnection.js +23 -13
  15. package/FlowGraph/flowGraphDataConnection.js.map +1 -1
  16. package/FlowGraph/flowGraphRichTypes.d.ts +5 -0
  17. package/FlowGraph/flowGraphRichTypes.js +12 -0
  18. package/FlowGraph/flowGraphRichTypes.js.map +1 -1
  19. package/FrameGraph/Node/Blocks/Layers/glowLayerBlock.d.ts +2 -2
  20. package/FrameGraph/Node/Blocks/Layers/glowLayerBlock.js +6 -6
  21. package/FrameGraph/Node/Blocks/Layers/glowLayerBlock.js.map +1 -1
  22. package/FrameGraph/Node/Blocks/Layers/highlightLayerBlock.d.ts +2 -2
  23. package/FrameGraph/Node/Blocks/Layers/highlightLayerBlock.js +6 -6
  24. package/FrameGraph/Node/Blocks/Layers/highlightLayerBlock.js.map +1 -1
  25. package/FrameGraph/Node/Blocks/PostProcesses/anaglyphPostProcessBlock.d.ts +30 -0
  26. package/FrameGraph/Node/Blocks/PostProcesses/anaglyphPostProcessBlock.js +48 -0
  27. package/FrameGraph/Node/Blocks/PostProcesses/anaglyphPostProcessBlock.js.map +1 -0
  28. package/FrameGraph/Node/Blocks/PostProcesses/basePostProcessBlock.d.ts +3 -3
  29. package/FrameGraph/Node/Blocks/PostProcesses/basePostProcessBlock.js +6 -6
  30. package/FrameGraph/Node/Blocks/PostProcesses/basePostProcessBlock.js.map +1 -1
  31. package/FrameGraph/Node/Blocks/PostProcesses/chromaticAberrationPostProcessBlock.d.ts +38 -0
  32. package/FrameGraph/Node/Blocks/PostProcesses/chromaticAberrationPostProcessBlock.js +88 -0
  33. package/FrameGraph/Node/Blocks/PostProcesses/chromaticAberrationPostProcessBlock.js.map +1 -0
  34. package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.d.ts +2 -2
  35. package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.js +6 -6
  36. package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.js.map +1 -1
  37. package/FrameGraph/Node/Blocks/Rendering/utilityLayerRendererBlock.d.ts +2 -2
  38. package/FrameGraph/Node/Blocks/Rendering/utilityLayerRendererBlock.js +6 -6
  39. package/FrameGraph/Node/Blocks/Rendering/utilityLayerRendererBlock.js.map +1 -1
  40. package/FrameGraph/Node/Blocks/Textures/clearBlock.d.ts +2 -2
  41. package/FrameGraph/Node/Blocks/Textures/clearBlock.js +7 -7
  42. package/FrameGraph/Node/Blocks/Textures/clearBlock.js.map +1 -1
  43. package/FrameGraph/Node/Blocks/Textures/copyTextureBlock.d.ts +2 -2
  44. package/FrameGraph/Node/Blocks/Textures/copyTextureBlock.js +6 -6
  45. package/FrameGraph/Node/Blocks/Textures/copyTextureBlock.js.map +1 -1
  46. package/FrameGraph/Node/Blocks/Textures/generateMipmapsBlock.d.ts +2 -2
  47. package/FrameGraph/Node/Blocks/Textures/generateMipmapsBlock.js +7 -7
  48. package/FrameGraph/Node/Blocks/Textures/generateMipmapsBlock.js.map +1 -1
  49. package/FrameGraph/Node/Blocks/index.d.ts +2 -0
  50. package/FrameGraph/Node/Blocks/index.js +2 -0
  51. package/FrameGraph/Node/Blocks/index.js.map +1 -1
  52. package/FrameGraph/Node/nodeRenderGraph.js +2 -2
  53. package/FrameGraph/Node/nodeRenderGraph.js.map +1 -1
  54. package/FrameGraph/Tasks/Layers/baseLayerTask.d.ts +3 -3
  55. package/FrameGraph/Tasks/Layers/baseLayerTask.js +12 -12
  56. package/FrameGraph/Tasks/Layers/baseLayerTask.js.map +1 -1
  57. package/FrameGraph/Tasks/PostProcesses/anaglyphTask.d.ts +21 -0
  58. package/FrameGraph/Tasks/PostProcesses/anaglyphTask.js +27 -0
  59. package/FrameGraph/Tasks/PostProcesses/anaglyphTask.js.map +1 -0
  60. package/FrameGraph/Tasks/PostProcesses/bloomTask.d.ts +2 -2
  61. package/FrameGraph/Tasks/PostProcesses/bloomTask.js +5 -5
  62. package/FrameGraph/Tasks/PostProcesses/bloomTask.js.map +1 -1
  63. package/FrameGraph/Tasks/PostProcesses/chromaticAberrationTask.d.ts +17 -0
  64. package/FrameGraph/Tasks/PostProcesses/chromaticAberrationTask.js +23 -0
  65. package/FrameGraph/Tasks/PostProcesses/chromaticAberrationTask.js.map +1 -0
  66. package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.d.ts +2 -2
  67. package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.js +5 -5
  68. package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.js.map +1 -1
  69. package/FrameGraph/Tasks/PostProcesses/postProcessTask.d.ts +2 -2
  70. package/FrameGraph/Tasks/PostProcesses/postProcessTask.js +1 -1
  71. package/FrameGraph/Tasks/PostProcesses/postProcessTask.js.map +1 -1
  72. package/FrameGraph/Tasks/PostProcesses/ssrRenderingPipelineTask.d.ts +2 -2
  73. package/FrameGraph/Tasks/PostProcesses/ssrRenderingPipelineTask.js +8 -8
  74. package/FrameGraph/Tasks/PostProcesses/ssrRenderingPipelineTask.js.map +1 -1
  75. package/FrameGraph/Tasks/Rendering/objectRendererTask.d.ts +3 -3
  76. package/FrameGraph/Tasks/Rendering/objectRendererTask.js +9 -9
  77. package/FrameGraph/Tasks/Rendering/objectRendererTask.js.map +1 -1
  78. package/FrameGraph/Tasks/Rendering/taaObjectRendererTask.js +7 -7
  79. package/FrameGraph/Tasks/Rendering/taaObjectRendererTask.js.map +1 -1
  80. package/FrameGraph/Tasks/Rendering/utilityLayerRendererTask.d.ts +3 -3
  81. package/FrameGraph/Tasks/Rendering/utilityLayerRendererTask.js +3 -3
  82. package/FrameGraph/Tasks/Rendering/utilityLayerRendererTask.js.map +1 -1
  83. package/FrameGraph/Tasks/Texture/clearTextureTask.d.ts +3 -3
  84. package/FrameGraph/Tasks/Texture/clearTextureTask.js +8 -8
  85. package/FrameGraph/Tasks/Texture/clearTextureTask.js.map +1 -1
  86. package/FrameGraph/Tasks/Texture/copyToTextureTask.d.ts +3 -3
  87. package/FrameGraph/Tasks/Texture/copyToTextureTask.js +3 -3
  88. package/FrameGraph/Tasks/Texture/copyToTextureTask.js.map +1 -1
  89. package/FrameGraph/Tasks/Texture/generateMipMapsTask.d.ts +2 -2
  90. package/FrameGraph/Tasks/Texture/generateMipMapsTask.js +5 -5
  91. package/FrameGraph/Tasks/Texture/generateMipMapsTask.js.map +1 -1
  92. package/FrameGraph/index.d.ts +2 -0
  93. package/FrameGraph/index.js +2 -0
  94. package/FrameGraph/index.js.map +1 -1
  95. package/Materials/Textures/internalTexture.js +2 -2
  96. package/Materials/Textures/internalTexture.js.map +1 -1
  97. package/Materials/material.js +1 -1
  98. package/Materials/material.js.map +1 -1
  99. package/Materials/materialDefines.js +1 -1
  100. package/Materials/materialDefines.js.map +1 -1
  101. package/Meshes/Builders/shapeBuilder.d.ts +6 -2
  102. package/Meshes/Builders/shapeBuilder.js.map +1 -1
  103. package/Meshes/subMesh.js +1 -1
  104. package/Meshes/subMesh.js.map +1 -1
  105. package/Physics/v2/characterController.d.ts +3 -2
  106. package/Physics/v2/characterController.js +12 -0
  107. package/Physics/v2/characterController.js.map +1 -1
  108. package/PostProcesses/anaglyphPostProcess.d.ts +0 -1
  109. package/PostProcesses/anaglyphPostProcess.js +14 -11
  110. package/PostProcesses/anaglyphPostProcess.js.map +1 -1
  111. package/PostProcesses/chromaticAberrationPostProcess.d.ts +15 -8
  112. package/PostProcesses/chromaticAberrationPostProcess.js +72 -42
  113. package/PostProcesses/chromaticAberrationPostProcess.js.map +1 -1
  114. package/PostProcesses/index.d.ts +2 -0
  115. package/PostProcesses/index.js +2 -0
  116. package/PostProcesses/index.js.map +1 -1
  117. package/PostProcesses/thinAnaglyphPostProcess.d.ts +23 -0
  118. package/PostProcesses/thinAnaglyphPostProcess.js +42 -0
  119. package/PostProcesses/thinAnaglyphPostProcess.js.map +1 -0
  120. package/PostProcesses/thinChromaticAberrationPostProcess.d.ts +45 -0
  121. package/PostProcesses/thinChromaticAberrationPostProcess.js +69 -0
  122. package/PostProcesses/thinChromaticAberrationPostProcess.js.map +1 -0
  123. package/package.json +1 -1
  124. package/scene.d.ts +3 -0
  125. package/scene.js +5 -0
  126. package/scene.js.map +1 -1
@@ -24,12 +24,12 @@ export class NodeRenderGraphUtilityLayerRendererBlock extends NodeRenderGraphBlo
24
24
  constructor(name, frameGraph, scene, handleEvents = true) {
25
25
  super(name, frameGraph, scene);
26
26
  this._additionalConstructionParameters = [handleEvents];
27
- this.registerInput("destination", NodeRenderGraphBlockConnectionPointTypes.Texture);
27
+ this.registerInput("target", NodeRenderGraphBlockConnectionPointTypes.Texture);
28
28
  this.registerInput("camera", NodeRenderGraphBlockConnectionPointTypes.Camera);
29
29
  this._addDependenciesInput();
30
30
  this.registerOutput("output", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);
31
- this.destination.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);
32
- this.output._typeConnectionSource = this.destination;
31
+ this.target.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);
32
+ this.output._typeConnectionSource = this.target;
33
33
  this._frameGraphTask = new FrameGraphUtilityLayerRendererTask(name, frameGraph, scene, handleEvents);
34
34
  }
35
35
  _createTask(handleEvents) {
@@ -52,9 +52,9 @@ export class NodeRenderGraphUtilityLayerRendererBlock extends NodeRenderGraphBlo
52
52
  return "NodeRenderGraphUtilityLayerRendererBlock";
53
53
  }
54
54
  /**
55
- * Gets the destination input component
55
+ * Gets the target input component
56
56
  */
57
- get destination() {
57
+ get target() {
58
58
  return this._inputs[0];
59
59
  }
60
60
  /**
@@ -72,7 +72,7 @@ export class NodeRenderGraphUtilityLayerRendererBlock extends NodeRenderGraphBlo
72
72
  _buildBlock(state) {
73
73
  super._buildBlock(state);
74
74
  this.output.value = this._frameGraphTask.outputTexture;
75
- this._frameGraphTask.destinationTexture = this.destination.connectedPoint?.value;
75
+ this._frameGraphTask.targetTexture = this.target.connectedPoint?.value;
76
76
  this._frameGraphTask.camera = this.camera.connectedPoint?.value;
77
77
  }
78
78
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utilityLayerRendererBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FrameGraph/Node/Blocks/Rendering/utilityLayerRendererBlock.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAA0B,MAAM,sCAAsC,CAAC;AACtG,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAE,MAAM,mDAAmD,CAAC;AAEvG;;GAEG;AACH,MAAM,OAAO,wCAAyC,SAAQ,oBAAoB;IAG9E;;OAEG;IACH,IAAoB,IAAI;QACpB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACH,YAAmB,IA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IACtD,CAAC;IAED;;OAEG;IACH,IAAW,WAAW;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5B,CAAC;IAEkB,WAAW,CAAC,KAAgC;QAC3D,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAEzB,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC;QAEvD,IAAI,CAAC,eAAe,CAAC,kBAAkB,GAAG,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,KAAgC,CAAC;QAC5G,IAAI,CAAC,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,KAAe,CAAC;IAC9E,CAAC;CACJ;AA7CG;IADC,sBAAsB,CAAC,eAAe,0CAAkC,YAAY,CAAC;4EAGrF;AA6CL,aAAa,CAAC,kDAAkD,EAAE,wCAAwC,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/no-internal-modules\r\nimport type { NodeRenderGraphConnectionPoint, Scene, FrameGraph, NodeRenderGraphBuildState, FrameGraphTextureHandle, Camera } from \"core/index\";\r\nimport { RegisterClass } from \"../../../../Misc/typeStore\";\r\nimport { editableInPropertyPage, PropertyTypeForEdition } from \"../../../../Decorators/nodeDecorator\";\r\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../../Types/nodeRenderGraphTypes\";\r\nimport { NodeRenderGraphBlock } from \"../../nodeRenderGraphBlock\";\r\nimport { FrameGraphUtilityLayerRendererTask } from \"../../../Tasks/Rendering/utilityLayerRendererTask\";\r\n\r\n/**\r\n * Block used to render an utility layer in the frame graph\r\n */\r\nexport class NodeRenderGraphUtilityLayerRendererBlock extends NodeRenderGraphBlock {\r\n protected override _frameGraphTask: FrameGraphUtilityLayerRendererTask;\r\n\r\n /**\r\n * Gets the frame graph task associated with this block\r\n */\r\n public override get task() {\r\n return this._frameGraphTask;\r\n }\r\n\r\n /**\r\n * Creates a new NodeRenderGraphUtilityLayerRendererBlock\r\n * @param name defines the block name\r\n * @param frameGraph defines the hosting frame graph\r\n * @param scene defines the hosting scene\r\n * @param handleEvents If the utility layer should handle events.\r\n */\r\n public constructor(name: string, frameGraph: FrameGraph, scene: Scene, handleEvents = true) {\r\n super(name, frameGraph, scene);\r\n\r\n this._additionalConstructionParameters = [handleEvents];\r\n\r\n this.registerInput(\"destination\", NodeRenderGraphBlockConnectionPointTypes.Texture);\r\n this.registerInput(\"camera\", NodeRenderGraphBlockConnectionPointTypes.Camera);\r\n this._addDependenciesInput();\r\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n\r\n this.destination.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);\r\n this.output._typeConnectionSource = this.destination;\r\n\r\n this._frameGraphTask = new FrameGraphUtilityLayerRendererTask(name, frameGraph, scene, handleEvents);\r\n }\r\n\r\n private _createTask(handleEvents: boolean) {\r\n this._frameGraphTask.dispose();\r\n\r\n this._frameGraphTask = new FrameGraphUtilityLayerRendererTask(this.name, this._frameGraph, this._scene, handleEvents);\r\n\r\n this._additionalConstructionParameters = [handleEvents];\r\n }\r\n\r\n /** If the utility layer should handle events */\r\n @editableInPropertyPage(\"Handle events\", PropertyTypeForEdition.Boolean, \"PROPERTIES\")\r\n public get handleEvents() {\r\n return this._frameGraphTask.layer.handleEvents;\r\n }\r\n\r\n public set handleEvents(value: boolean) {\r\n this._createTask(value);\r\n }\r\n\r\n /**\r\n * Gets the current class name\r\n * @returns the class name\r\n */\r\n public override getClassName() {\r\n return \"NodeRenderGraphUtilityLayerRendererBlock\";\r\n }\r\n\r\n /**\r\n * Gets the destination input component\r\n */\r\n public get destination(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[0];\r\n }\r\n\r\n /**\r\n * Gets the camera input component\r\n */\r\n public get camera(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[1];\r\n }\r\n\r\n /**\r\n * Gets the output component\r\n */\r\n public get output(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[0];\r\n }\r\n\r\n protected override _buildBlock(state: NodeRenderGraphBuildState) {\r\n super._buildBlock(state);\r\n\r\n this.output.value = this._frameGraphTask.outputTexture;\r\n\r\n this._frameGraphTask.destinationTexture = this.destination.connectedPoint?.value as FrameGraphTextureHandle;\r\n this._frameGraphTask.camera = this.camera.connectedPoint?.value as Camera;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.NodeRenderGraphUtilityLayerRendererBlock\", NodeRenderGraphUtilityLayerRendererBlock);\r\n"]}
1
+ {"version":3,"file":"utilityLayerRendererBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FrameGraph/Node/Blocks/Rendering/utilityLayerRendererBlock.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAA0B,MAAM,sCAAsC,CAAC;AACtG,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAE,MAAM,mDAAmD,CAAC;AAEvG;;GAEG;AACH,MAAM,OAAO,wCAAyC,SAAQ,oBAAoB;IAG9E;;OAEG;IACH,IAAoB,IAAI;QACpB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACH,YAAmB,IAAY,EAAE,UAAsB,EAAE,KAAY,EAAE,YAAY,GAAG,IAAI;QACtF,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QAE/B,IAAI,C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IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5B,CAAC;IAEkB,WAAW,CAAC,KAAgC;QAC3D,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAEzB,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC;QAEvD,IAAI,CAAC,eAAe,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,KAAgC,CAAC;QAClG,IAAI,CAAC,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,KAAe,CAAC;IAC9E,CAAC;CACJ;AA7CG;IADC,sBAAsB,CAAC,eAAe,0CAAkC,YAAY,CAAC;4EAGrF;AA6CL,aAAa,CAAC,kDAAkD,EAAE,wCAAwC,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/no-internal-modules\r\nimport type { NodeRenderGraphConnectionPoint, Scene, FrameGraph, NodeRenderGraphBuildState, FrameGraphTextureHandle, Camera } from \"core/index\";\r\nimport { RegisterClass } from \"../../../../Misc/typeStore\";\r\nimport { editableInPropertyPage, PropertyTypeForEdition } from \"../../../../Decorators/nodeDecorator\";\r\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../../Types/nodeRenderGraphTypes\";\r\nimport { NodeRenderGraphBlock } from \"../../nodeRenderGraphBlock\";\r\nimport { FrameGraphUtilityLayerRendererTask } from \"../../../Tasks/Rendering/utilityLayerRendererTask\";\r\n\r\n/**\r\n * Block used to render an utility layer in the frame graph\r\n */\r\nexport class NodeRenderGraphUtilityLayerRendererBlock extends NodeRenderGraphBlock {\r\n protected override _frameGraphTask: FrameGraphUtilityLayerRendererTask;\r\n\r\n /**\r\n * Gets the frame graph task associated with this block\r\n */\r\n public override get task() {\r\n return this._frameGraphTask;\r\n }\r\n\r\n /**\r\n * Creates a new NodeRenderGraphUtilityLayerRendererBlock\r\n * @param name defines the block name\r\n * @param frameGraph defines the hosting frame graph\r\n * @param scene defines the hosting scene\r\n * @param handleEvents If the utility layer should handle events.\r\n */\r\n public constructor(name: string, frameGraph: FrameGraph, scene: Scene, handleEvents = true) {\r\n super(name, frameGraph, scene);\r\n\r\n this._additionalConstructionParameters = [handleEvents];\r\n\r\n this.registerInput(\"target\", NodeRenderGraphBlockConnectionPointTypes.Texture);\r\n this.registerInput(\"camera\", NodeRenderGraphBlockConnectionPointTypes.Camera);\r\n this._addDependenciesInput();\r\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n\r\n this.target.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);\r\n this.output._typeConnectionSource = this.target;\r\n\r\n this._frameGraphTask = new FrameGraphUtilityLayerRendererTask(name, frameGraph, scene, handleEvents);\r\n }\r\n\r\n private _createTask(handleEvents: boolean) {\r\n this._frameGraphTask.dispose();\r\n\r\n this._frameGraphTask = new FrameGraphUtilityLayerRendererTask(this.name, this._frameGraph, this._scene, handleEvents);\r\n\r\n this._additionalConstructionParameters = [handleEvents];\r\n }\r\n\r\n /** If the utility layer should handle events */\r\n @editableInPropertyPage(\"Handle events\", PropertyTypeForEdition.Boolean, \"PROPERTIES\")\r\n public get handleEvents() {\r\n return this._frameGraphTask.layer.handleEvents;\r\n }\r\n\r\n public set handleEvents(value: boolean) {\r\n this._createTask(value);\r\n }\r\n\r\n /**\r\n * Gets the current class name\r\n * @returns the class name\r\n */\r\n public override getClassName() {\r\n return \"NodeRenderGraphUtilityLayerRendererBlock\";\r\n }\r\n\r\n /**\r\n * Gets the target input component\r\n */\r\n public get target(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[0];\r\n }\r\n\r\n /**\r\n * Gets the camera input component\r\n */\r\n public get camera(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[1];\r\n }\r\n\r\n /**\r\n * Gets the output component\r\n */\r\n public get output(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[0];\r\n }\r\n\r\n protected override _buildBlock(state: NodeRenderGraphBuildState) {\r\n super._buildBlock(state);\r\n\r\n this.output.value = this._frameGraphTask.outputTexture;\r\n\r\n this._frameGraphTask.targetTexture = this.target.connectedPoint?.value as FrameGraphTextureHandle;\r\n this._frameGraphTask.camera = this.camera.connectedPoint?.value as Camera;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.NodeRenderGraphUtilityLayerRendererBlock\", NodeRenderGraphUtilityLayerRendererBlock);\r\n"]}
@@ -36,9 +36,9 @@ export declare class NodeRenderGraphClearBlock extends NodeRenderGraphBlock {
36
36
  */
37
37
  getClassName(): string;
38
38
  /**
39
- * Gets the texture input component
39
+ * Gets the target input component
40
40
  */
41
- get texture(): NodeRenderGraphConnectionPoint;
41
+ get target(): NodeRenderGraphConnectionPoint;
42
42
  /**
43
43
  * Gets the depth texture input component
44
44
  */
@@ -23,14 +23,14 @@ export class NodeRenderGraphClearBlock extends NodeRenderGraphBlock {
23
23
  */
24
24
  constructor(name, frameGraph, scene) {
25
25
  super(name, frameGraph, scene);
26
- this.registerInput("texture", NodeRenderGraphBlockConnectionPointTypes.Texture, true);
26
+ this.registerInput("target", NodeRenderGraphBlockConnectionPointTypes.Texture, true);
27
27
  this.registerInput("depth", NodeRenderGraphBlockConnectionPointTypes.TextureBackBufferDepthStencilAttachment, true);
28
28
  this._addDependenciesInput();
29
29
  this.registerOutput("output", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);
30
30
  this.registerOutput("outputDepth", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);
31
- this.texture.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);
31
+ this.target.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);
32
32
  this.depth.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureDepthStencilAttachment);
33
- this.output._typeConnectionSource = this.texture;
33
+ this.output._typeConnectionSource = this.target;
34
34
  this.outputDepth._typeConnectionSource = this.depth;
35
35
  this._frameGraphTask = new FrameGraphClearTextureTask(name, frameGraph);
36
36
  }
@@ -70,9 +70,9 @@ export class NodeRenderGraphClearBlock extends NodeRenderGraphBlock {
70
70
  return "NodeRenderGraphClearBlock";
71
71
  }
72
72
  /**
73
- * Gets the texture input component
73
+ * Gets the target input component
74
74
  */
75
- get texture() {
75
+ get target() {
76
76
  return this._inputs[0];
77
77
  }
78
78
  /**
@@ -95,9 +95,9 @@ export class NodeRenderGraphClearBlock extends NodeRenderGraphBlock {
95
95
  }
96
96
  _buildBlock(state) {
97
97
  super._buildBlock(state);
98
- this._propagateInputValueToOutput(this.texture, this.output);
98
+ this._propagateInputValueToOutput(this.target, this.output);
99
99
  this._propagateInputValueToOutput(this.depth, this.outputDepth);
100
- this._frameGraphTask.destinationTexture = this.texture.connectedPoint?.value;
100
+ this._frameGraphTask.targetTexture = this.target.connectedPoint?.value;
101
101
  this._frameGraphTask.depthTexture = this.depth.connectedPoint?.value;
102
102
  }
103
103
  _dumpPropertiesCode() {
@@ -1 +1 @@
1
- {"version":3,"file":"clearBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FrameGraph/Node/Blocks/Textures/clearBlock.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAA0B,MAAM,sCAAsC,CAAC;AACtG,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAA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AEe,YAAY,CAAC,mBAAwB;QACjD,KAAK,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;QACzD,IAAI,CAAC,UAAU,GAAG,mBAAmB,CAAC,UAAU,CAAC;QACjD,IAAI,CAAC,UAAU,GAAG,mBAAmB,CAAC,UAAU,CAAC;QACjD,IAAI,CAAC,YAAY,GAAG,mBAAmB,CAAC,YAAY,CAAC;IACzD,CAAC;CACJ;AA7GG;IADC,sBAAsB,CAAC,OAAO,wCAAgC;sDAG9D;AAQD;IADC,sBAAsB,CAAC,aAAa,0CAAkC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;2DAGpG;AAQD;IADC,sBAAsB,CAAC,aAAa,0CAAkC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;2DAGpG;AAQD;IADC,sBAAsB,CAAC,eAAe,0CAAkC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;6DAGtG;AA+EL,aAAa,CAAC,mCAAmC,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/no-internal-modules\r\nimport type { NodeRenderGraphConnectionPoint, Scene, FrameGraphTextureHandle, FrameGraph, NodeRenderGraphBuildState } from \"core/index\";\r\nimport { NodeRenderGraphBlock } from \"../../nodeRenderGraphBlock\";\r\nimport { RegisterClass } from \"../../../../Misc/typeStore\";\r\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../../Types/nodeRenderGraphTypes\";\r\nimport { Color4 } from \"../../../../Maths/math.color\";\r\nimport { editableInPropertyPage, PropertyTypeForEdition } from \"../../../../Decorators/nodeDecorator\";\r\nimport { FrameGraphClearTextureTask } from \"../../../Tasks/Texture/clearTextureTask\";\r\n\r\n/**\r\n * Block used to clear a texture\r\n */\r\nexport class NodeRenderGraphClearBlock extends NodeRenderGraphBlock {\r\n protected override _frameGraphTask: FrameGraphClearTextureTask;\r\n\r\n /**\r\n * Gets the frame graph task associated with this block\r\n */\r\n public override get task() {\r\n return this._frameGraphTask;\r\n }\r\n\r\n /**\r\n * Create a new NodeRenderGraphClearBlock\r\n * @param name defines the block name\r\n * @param frameGraph defines the hosting frame graph\r\n * @param scene defines the hosting scene\r\n */\r\n public constructor(name: string, frameGraph: FrameGraph, scene: Scene) {\r\n super(name, frameGraph, scene);\r\n\r\n this.registerInput(\"texture\", NodeRenderGraphBlockConnectionPointTypes.Texture, true);\r\n this.registerInput(\"depth\", NodeRenderGraphBlockConnectionPointTypes.TextureBackBufferDepthStencilAttachment, true);\r\n this._addDependenciesInput();\r\n\r\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n this.registerOutput(\"outputDepth\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n\r\n this.texture.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);\r\n this.depth.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureDepthStencilAttachment);\r\n\r\n this.output._typeConnectionSource = this.texture;\r\n this.outputDepth._typeConnectionSource = this.depth;\r\n\r\n this._frameGraphTask = new FrameGraphClearTextureTask(name, frameGraph);\r\n }\r\n\r\n /** Gets or sets the clear color */\r\n @editableInPropertyPage(\"Color\", PropertyTypeForEdition.Color4)\r\n public get color(): Color4 {\r\n return this._frameGraphTask.color;\r\n }\r\n\r\n public set color(value: Color4) {\r\n this._frameGraphTask.color = value;\r\n }\r\n\r\n /** Gets or sets a boolean indicating whether the color part of the texture should be cleared. */\r\n @editableInPropertyPage(\"Clear color\", PropertyTypeForEdition.Boolean, undefined, { embedded: true })\r\n public get clearColor(): boolean {\r\n return !!this._frameGraphTask.clearColor;\r\n }\r\n\r\n public set clearColor(value: boolean) {\r\n this._frameGraphTask.clearColor = value;\r\n }\r\n\r\n /** Gets or sets a boolean indicating whether the depth part of the texture should be cleared. */\r\n @editableInPropertyPage(\"Clear depth\", PropertyTypeForEdition.Boolean, undefined, { embedded: true })\r\n public get clearDepth(): boolean {\r\n return !!this._frameGraphTask.clearDepth;\r\n }\r\n\r\n public set clearDepth(value: boolean) {\r\n this._frameGraphTask.clearDepth = value;\r\n }\r\n\r\n /** Gets or sets a boolean indicating whether the stencil part of the texture should be cleared. */\r\n @editableInPropertyPage(\"Clear stencil\", PropertyTypeForEdition.Boolean, undefined, { embedded: true })\r\n public get clearStencil(): boolean {\r\n return !!this._frameGraphTask.clearStencil;\r\n }\r\n\r\n public set clearStencil(value: boolean) {\r\n this._frameGraphTask.clearStencil = value;\r\n }\r\n\r\n /**\r\n * Gets the current class name\r\n * @returns the class name\r\n */\r\n public override getClassName() {\r\n return \"NodeRenderGraphClearBlock\";\r\n }\r\n\r\n /**\r\n * Gets the texture input component\r\n */\r\n public get texture(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[0];\r\n }\r\n\r\n /**\r\n * Gets the depth texture input component\r\n */\r\n public get depth(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[1];\r\n }\r\n\r\n /**\r\n * Gets the output component\r\n */\r\n public get output(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[0];\r\n }\r\n\r\n /**\r\n * Gets the output depth component\r\n */\r\n public get outputDepth(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[1];\r\n }\r\n\r\n protected override _buildBlock(state: NodeRenderGraphBuildState) {\r\n super._buildBlock(state);\r\n\r\n this._propagateInputValueToOutput(this.texture, this.output);\r\n this._propagateInputValueToOutput(this.depth, this.outputDepth);\r\n\r\n this._frameGraphTask.destinationTexture = this.texture.connectedPoint?.value as FrameGraphTextureHandle;\r\n this._frameGraphTask.depthTexture = this.depth.connectedPoint?.value as FrameGraphTextureHandle;\r\n }\r\n\r\n protected override _dumpPropertiesCode() {\r\n const codes: string[] = [];\r\n codes.push(`${this._codeVariableName}.color = new BABYLON.Color4(${this.color.r}, ${this.color.g}, ${this.color.b}, ${this.color.a});`);\r\n codes.push(`${this._codeVariableName}.clearColor = ${this.clearColor};`);\r\n codes.push(`${this._codeVariableName}.clearDepth = ${this.clearDepth};`);\r\n codes.push(`${this._codeVariableName}.clearStencil = ${this.clearStencil};`);\r\n return super._dumpPropertiesCode() + codes.join(\"\\n\");\r\n }\r\n\r\n public override serialize(): any {\r\n const serializationObject = super.serialize();\r\n serializationObject.color = this.color.asArray();\r\n serializationObject.clearColor = this.clearColor;\r\n serializationObject.clearDepth = this.clearDepth;\r\n serializationObject.clearStencil = this.clearStencil;\r\n return serializationObject;\r\n }\r\n\r\n public override _deserialize(serializationObject: any) {\r\n super._deserialize(serializationObject);\r\n this.color = Color4.FromArray(serializationObject.color);\r\n this.clearColor = serializationObject.clearColor;\r\n this.clearDepth = serializationObject.clearDepth;\r\n this.clearStencil = serializationObject.clearStencil;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.NodeRenderGraphClearBlock\", NodeRenderGraphClearBlock);\r\n"]}
1
+ {"version":3,"file":"clearBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FrameGraph/Node/Blocks/Textures/clearBlock.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAA0B,MAAM,sCAAsC,CAAC;AACtG,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,oBAAoB;IAG/D;;OAEG;IACH,IAAoB,IAAI;QACpB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,YAAmB,IAAY,EAAE,UAAs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CAAC,KAAK,CAAC,CAAC;QACzD,IAAI,CAAC,UAAU,GAAG,mBAAmB,CAAC,UAAU,CAAC;QACjD,IAAI,CAAC,UAAU,GAAG,mBAAmB,CAAC,UAAU,CAAC;QACjD,IAAI,CAAC,YAAY,GAAG,mBAAmB,CAAC,YAAY,CAAC;IACzD,CAAC;CACJ;AA7GG;IADC,sBAAsB,CAAC,OAAO,wCAAgC;sDAG9D;AAQD;IADC,sBAAsB,CAAC,aAAa,0CAAkC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;2DAGpG;AAQD;IADC,sBAAsB,CAAC,aAAa,0CAAkC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;2DAGpG;AAQD;IADC,sBAAsB,CAAC,eAAe,0CAAkC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;6DAGtG;AA+EL,aAAa,CAAC,mCAAmC,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/no-internal-modules\r\nimport type { NodeRenderGraphConnectionPoint, Scene, FrameGraphTextureHandle, FrameGraph, NodeRenderGraphBuildState } from \"core/index\";\r\nimport { NodeRenderGraphBlock } from \"../../nodeRenderGraphBlock\";\r\nimport { RegisterClass } from \"../../../../Misc/typeStore\";\r\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../../Types/nodeRenderGraphTypes\";\r\nimport { Color4 } from \"../../../../Maths/math.color\";\r\nimport { editableInPropertyPage, PropertyTypeForEdition } from \"../../../../Decorators/nodeDecorator\";\r\nimport { FrameGraphClearTextureTask } from \"../../../Tasks/Texture/clearTextureTask\";\r\n\r\n/**\r\n * Block used to clear a texture\r\n */\r\nexport class NodeRenderGraphClearBlock extends NodeRenderGraphBlock {\r\n protected override _frameGraphTask: FrameGraphClearTextureTask;\r\n\r\n /**\r\n * Gets the frame graph task associated with this block\r\n */\r\n public override get task() {\r\n return this._frameGraphTask;\r\n }\r\n\r\n /**\r\n * Create a new NodeRenderGraphClearBlock\r\n * @param name defines the block name\r\n * @param frameGraph defines the hosting frame graph\r\n * @param scene defines the hosting scene\r\n */\r\n public constructor(name: string, frameGraph: FrameGraph, scene: Scene) {\r\n super(name, frameGraph, scene);\r\n\r\n this.registerInput(\"target\", NodeRenderGraphBlockConnectionPointTypes.Texture, true);\r\n this.registerInput(\"depth\", NodeRenderGraphBlockConnectionPointTypes.TextureBackBufferDepthStencilAttachment, true);\r\n this._addDependenciesInput();\r\n\r\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n this.registerOutput(\"outputDepth\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n\r\n this.target.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);\r\n this.depth.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureDepthStencilAttachment);\r\n\r\n this.output._typeConnectionSource = this.target;\r\n this.outputDepth._typeConnectionSource = this.depth;\r\n\r\n this._frameGraphTask = new FrameGraphClearTextureTask(name, frameGraph);\r\n }\r\n\r\n /** Gets or sets the clear color */\r\n @editableInPropertyPage(\"Color\", PropertyTypeForEdition.Color4)\r\n public get color(): Color4 {\r\n return this._frameGraphTask.color;\r\n }\r\n\r\n public set color(value: Color4) {\r\n this._frameGraphTask.color = value;\r\n }\r\n\r\n /** Gets or sets a boolean indicating whether the color part of the texture should be cleared. */\r\n @editableInPropertyPage(\"Clear color\", PropertyTypeForEdition.Boolean, undefined, { embedded: true })\r\n public get clearColor(): boolean {\r\n return !!this._frameGraphTask.clearColor;\r\n }\r\n\r\n public set clearColor(value: boolean) {\r\n this._frameGraphTask.clearColor = value;\r\n }\r\n\r\n /** Gets or sets a boolean indicating whether the depth part of the texture should be cleared. */\r\n @editableInPropertyPage(\"Clear depth\", PropertyTypeForEdition.Boolean, undefined, { embedded: true })\r\n public get clearDepth(): boolean {\r\n return !!this._frameGraphTask.clearDepth;\r\n }\r\n\r\n public set clearDepth(value: boolean) {\r\n this._frameGraphTask.clearDepth = value;\r\n }\r\n\r\n /** Gets or sets a boolean indicating whether the stencil part of the texture should be cleared. */\r\n @editableInPropertyPage(\"Clear stencil\", PropertyTypeForEdition.Boolean, undefined, { embedded: true })\r\n public get clearStencil(): boolean {\r\n return !!this._frameGraphTask.clearStencil;\r\n }\r\n\r\n public set clearStencil(value: boolean) {\r\n this._frameGraphTask.clearStencil = value;\r\n }\r\n\r\n /**\r\n * Gets the current class name\r\n * @returns the class name\r\n */\r\n public override getClassName() {\r\n return \"NodeRenderGraphClearBlock\";\r\n }\r\n\r\n /**\r\n * Gets the target input component\r\n */\r\n public get target(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[0];\r\n }\r\n\r\n /**\r\n * Gets the depth texture input component\r\n */\r\n public get depth(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[1];\r\n }\r\n\r\n /**\r\n * Gets the output component\r\n */\r\n public get output(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[0];\r\n }\r\n\r\n /**\r\n * Gets the output depth component\r\n */\r\n public get outputDepth(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[1];\r\n }\r\n\r\n protected override _buildBlock(state: NodeRenderGraphBuildState) {\r\n super._buildBlock(state);\r\n\r\n this._propagateInputValueToOutput(this.target, this.output);\r\n this._propagateInputValueToOutput(this.depth, this.outputDepth);\r\n\r\n this._frameGraphTask.targetTexture = this.target.connectedPoint?.value as FrameGraphTextureHandle;\r\n this._frameGraphTask.depthTexture = this.depth.connectedPoint?.value as FrameGraphTextureHandle;\r\n }\r\n\r\n protected override _dumpPropertiesCode() {\r\n const codes: string[] = [];\r\n codes.push(`${this._codeVariableName}.color = new BABYLON.Color4(${this.color.r}, ${this.color.g}, ${this.color.b}, ${this.color.a});`);\r\n codes.push(`${this._codeVariableName}.clearColor = ${this.clearColor};`);\r\n codes.push(`${this._codeVariableName}.clearDepth = ${this.clearDepth};`);\r\n codes.push(`${this._codeVariableName}.clearStencil = ${this.clearStencil};`);\r\n return super._dumpPropertiesCode() + codes.join(\"\\n\");\r\n }\r\n\r\n public override serialize(): any {\r\n const serializationObject = super.serialize();\r\n serializationObject.color = this.color.asArray();\r\n serializationObject.clearColor = this.clearColor;\r\n serializationObject.clearDepth = this.clearDepth;\r\n serializationObject.clearStencil = this.clearStencil;\r\n return serializationObject;\r\n }\r\n\r\n public override _deserialize(serializationObject: any) {\r\n super._deserialize(serializationObject);\r\n this.color = Color4.FromArray(serializationObject.color);\r\n this.clearColor = serializationObject.clearColor;\r\n this.clearDepth = serializationObject.clearDepth;\r\n this.clearStencil = serializationObject.clearStencil;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.NodeRenderGraphClearBlock\", NodeRenderGraphClearBlock);\r\n"]}
@@ -27,9 +27,9 @@ export declare class NodeRenderGraphCopyTextureBlock extends NodeRenderGraphBloc
27
27
  */
28
28
  get source(): NodeRenderGraphConnectionPoint;
29
29
  /**
30
- * Gets the destination input component
30
+ * Gets the target input component
31
31
  */
32
- get destination(): NodeRenderGraphConnectionPoint;
32
+ get target(): NodeRenderGraphConnectionPoint;
33
33
  /**
34
34
  * Gets the output component
35
35
  */
@@ -21,12 +21,12 @@ export class NodeRenderGraphCopyTextureBlock extends NodeRenderGraphBlock {
21
21
  constructor(name, frameGraph, scene) {
22
22
  super(name, frameGraph, scene);
23
23
  this.registerInput("source", NodeRenderGraphBlockConnectionPointTypes.Texture);
24
- this.registerInput("destination", NodeRenderGraphBlockConnectionPointTypes.Texture);
24
+ this.registerInput("target", NodeRenderGraphBlockConnectionPointTypes.Texture);
25
25
  this._addDependenciesInput();
26
26
  this.registerOutput("output", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);
27
27
  this.source.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAllButBackBuffer);
28
- this.destination.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);
29
- this.output._typeConnectionSource = this.destination;
28
+ this.target.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);
29
+ this.output._typeConnectionSource = this.target;
30
30
  this._frameGraphTask = new FrameGraphCopyToTextureTask(name, frameGraph);
31
31
  }
32
32
  /**
@@ -43,9 +43,9 @@ export class NodeRenderGraphCopyTextureBlock extends NodeRenderGraphBlock {
43
43
  return this._inputs[0];
44
44
  }
45
45
  /**
46
- * Gets the destination input component
46
+ * Gets the target input component
47
47
  */
48
- get destination() {
48
+ get target() {
49
49
  return this._inputs[1];
50
50
  }
51
51
  /**
@@ -58,7 +58,7 @@ export class NodeRenderGraphCopyTextureBlock extends NodeRenderGraphBlock {
58
58
  super._buildBlock(state);
59
59
  this.output.value = this._frameGraphTask.outputTexture; // the value of the output connection point is the "output" texture of the task
60
60
  this._frameGraphTask.sourceTexture = this.source.connectedPoint?.value;
61
- this._frameGraphTask.destinationTexture = this.destination.connectedPoint?.value;
61
+ this._frameGraphTask.targetTexture = this.target.connectedPoint?.value;
62
62
  }
63
63
  }
64
64
  RegisterClass("BABYLON.NodeRenderGraphCopyTextureBlock", NodeRenderGraphCopyTextureBlock);
@@ -1 +1 @@
1
- {"version":3,"file":"copyTextureBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FrameGraph/Node/Blocks/Textures/copyTextureBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAEvF;;GAEG;AACH,MAAM,OAAO,+BAAgC,SAAQ,oBAAoB;IAGrE;;OAEG;IACH,IAAoB,IAAI;QACpB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,YAAmB,IAAY,EAAE,UAAsB,EAAE,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AAM,CAAC,cAAc,EAAE,KAAgC,CAAC;QAClG,IAAI,CAAC,eAAe,CAAC,kBAAkB,GAAG,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,KAAgC,CAAC;IAChH,CAAC;CACJ;AAED,aAAa,CAAC,yCAAyC,EAAE,+BAA+B,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/no-internal-modules\r\nimport type { NodeRenderGraphConnectionPoint, Scene, FrameGraphTextureHandle, FrameGraph, NodeRenderGraphBuildState } from \"core/index\";\r\nimport { NodeRenderGraphBlock } from \"../../nodeRenderGraphBlock\";\r\nimport { RegisterClass } from \"../../../../Misc/typeStore\";\r\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../../Types/nodeRenderGraphTypes\";\r\nimport { FrameGraphCopyToTextureTask } from \"../../../Tasks/Texture/copyToTextureTask\";\r\n\r\n/**\r\n * Block used to copy a texture\r\n */\r\nexport class NodeRenderGraphCopyTextureBlock extends NodeRenderGraphBlock {\r\n protected override _frameGraphTask: FrameGraphCopyToTextureTask;\r\n\r\n /**\r\n * Gets the frame graph task associated with this block\r\n */\r\n public override get task() {\r\n return this._frameGraphTask;\r\n }\r\n\r\n /**\r\n * Create a new NodeRenderGraphCopyTextureBlock\r\n * @param name defines the block name\r\n * @param frameGraph defines the hosting frame graph\r\n * @param scene defines the hosting scene\r\n */\r\n public constructor(name: string, frameGraph: FrameGraph, scene: Scene) {\r\n super(name, frameGraph, scene);\r\n\r\n this.registerInput(\"source\", NodeRenderGraphBlockConnectionPointTypes.Texture);\r\n this.registerInput(\"destination\", NodeRenderGraphBlockConnectionPointTypes.Texture);\r\n this._addDependenciesInput();\r\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n\r\n this.source.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAllButBackBuffer);\r\n this.destination.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);\r\n this.output._typeConnectionSource = this.destination;\r\n\r\n this._frameGraphTask = new FrameGraphCopyToTextureTask(name, frameGraph);\r\n }\r\n\r\n /**\r\n * Gets the current class name\r\n * @returns the class name\r\n */\r\n public override getClassName() {\r\n return \"NodeRenderGraphCopyTextureBlock\";\r\n }\r\n /**\r\n * Gets the source input component\r\n */\r\n public get source(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[0];\r\n }\r\n\r\n /**\r\n * Gets the destination input component\r\n */\r\n public get destination(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[1];\r\n }\r\n\r\n /**\r\n * Gets the output component\r\n */\r\n public get output(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[0];\r\n }\r\n\r\n protected override _buildBlock(state: NodeRenderGraphBuildState) {\r\n super._buildBlock(state);\r\n\r\n this.output.value = this._frameGraphTask.outputTexture; // the value of the output connection point is the \"output\" texture of the task\r\n\r\n this._frameGraphTask.sourceTexture = this.source.connectedPoint?.value as FrameGraphTextureHandle;\r\n this._frameGraphTask.destinationTexture = this.destination.connectedPoint?.value as FrameGraphTextureHandle;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.NodeRenderGraphCopyTextureBlock\", NodeRenderGraphCopyTextureBlock);\r\n"]}
1
+ {"version":3,"file":"copyTextureBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FrameGraph/Node/Blocks/Textures/copyTextureBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAEvF;;GAEG;AACH,MAAM,OAAO,+BAAgC,SAAQ,oBAAoB;IAGrE;;OAEG;IACH,IAAoB,IAAI;QACpB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;;;;OA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CAAC,eAAe,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,KAAgC,CAAC;QAClG,IAAI,CAAC,eAAe,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,KAAgC,CAAC;IACtG,CAAC;CACJ;AAED,aAAa,CAAC,yCAAyC,EAAE,+BAA+B,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/no-internal-modules\r\nimport type { NodeRenderGraphConnectionPoint, Scene, FrameGraphTextureHandle, FrameGraph, NodeRenderGraphBuildState } from \"core/index\";\r\nimport { NodeRenderGraphBlock } from \"../../nodeRenderGraphBlock\";\r\nimport { RegisterClass } from \"../../../../Misc/typeStore\";\r\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../../Types/nodeRenderGraphTypes\";\r\nimport { FrameGraphCopyToTextureTask } from \"../../../Tasks/Texture/copyToTextureTask\";\r\n\r\n/**\r\n * Block used to copy a texture\r\n */\r\nexport class NodeRenderGraphCopyTextureBlock extends NodeRenderGraphBlock {\r\n protected override _frameGraphTask: FrameGraphCopyToTextureTask;\r\n\r\n /**\r\n * Gets the frame graph task associated with this block\r\n */\r\n public override get task() {\r\n return this._frameGraphTask;\r\n }\r\n\r\n /**\r\n * Create a new NodeRenderGraphCopyTextureBlock\r\n * @param name defines the block name\r\n * @param frameGraph defines the hosting frame graph\r\n * @param scene defines the hosting scene\r\n */\r\n public constructor(name: string, frameGraph: FrameGraph, scene: Scene) {\r\n super(name, frameGraph, scene);\r\n\r\n this.registerInput(\"source\", NodeRenderGraphBlockConnectionPointTypes.Texture);\r\n this.registerInput(\"target\", NodeRenderGraphBlockConnectionPointTypes.Texture);\r\n this._addDependenciesInput();\r\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n\r\n this.source.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAllButBackBuffer);\r\n this.target.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAll);\r\n this.output._typeConnectionSource = this.target;\r\n\r\n this._frameGraphTask = new FrameGraphCopyToTextureTask(name, frameGraph);\r\n }\r\n\r\n /**\r\n * Gets the current class name\r\n * @returns the class name\r\n */\r\n public override getClassName() {\r\n return \"NodeRenderGraphCopyTextureBlock\";\r\n }\r\n /**\r\n * Gets the source input component\r\n */\r\n public get source(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[0];\r\n }\r\n\r\n /**\r\n * Gets the target input component\r\n */\r\n public get target(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[1];\r\n }\r\n\r\n /**\r\n * Gets the output component\r\n */\r\n public get output(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[0];\r\n }\r\n\r\n protected override _buildBlock(state: NodeRenderGraphBuildState) {\r\n super._buildBlock(state);\r\n\r\n this.output.value = this._frameGraphTask.outputTexture; // the value of the output connection point is the \"output\" texture of the task\r\n\r\n this._frameGraphTask.sourceTexture = this.source.connectedPoint?.value as FrameGraphTextureHandle;\r\n this._frameGraphTask.targetTexture = this.target.connectedPoint?.value as FrameGraphTextureHandle;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.NodeRenderGraphCopyTextureBlock\", NodeRenderGraphCopyTextureBlock);\r\n"]}
@@ -23,9 +23,9 @@ export declare class NodeRenderGraphGenerateMipmapsBlock extends NodeRenderGraph
23
23
  */
24
24
  getClassName(): string;
25
25
  /**
26
- * Gets the texture input component
26
+ * Gets the target input component
27
27
  */
28
- get texture(): NodeRenderGraphConnectionPoint;
28
+ get target(): NodeRenderGraphConnectionPoint;
29
29
  /**
30
30
  * Gets the output component
31
31
  */
@@ -20,11 +20,11 @@ export class NodeRenderGraphGenerateMipmapsBlock extends NodeRenderGraphBlock {
20
20
  */
21
21
  constructor(name, frameGraph, scene) {
22
22
  super(name, frameGraph, scene);
23
- this.registerInput("texture", NodeRenderGraphBlockConnectionPointTypes.Texture);
23
+ this.registerInput("target", NodeRenderGraphBlockConnectionPointTypes.Texture);
24
24
  this._addDependenciesInput();
25
25
  this.registerOutput("output", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);
26
- this.texture.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAllButBackBuffer);
27
- this.output._typeConnectionSource = this.texture;
26
+ this.target.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAllButBackBuffer);
27
+ this.output._typeConnectionSource = this.target;
28
28
  this._frameGraphTask = new FrameGraphGenerateMipMapsTask(name, frameGraph);
29
29
  }
30
30
  /**
@@ -35,9 +35,9 @@ export class NodeRenderGraphGenerateMipmapsBlock extends NodeRenderGraphBlock {
35
35
  return "NodeRenderGraphGenerateMipmapsBlock";
36
36
  }
37
37
  /**
38
- * Gets the texture input component
38
+ * Gets the target input component
39
39
  */
40
- get texture() {
40
+ get target() {
41
41
  return this._inputs[0];
42
42
  }
43
43
  /**
@@ -48,8 +48,8 @@ export class NodeRenderGraphGenerateMipmapsBlock extends NodeRenderGraphBlock {
48
48
  }
49
49
  _buildBlock(state) {
50
50
  super._buildBlock(state);
51
- this._propagateInputValueToOutput(this.texture, this.output);
52
- this._frameGraphTask.destinationTexture = this.texture.connectedPoint?.value;
51
+ this._propagateInputValueToOutput(this.target, this.output);
52
+ this._frameGraphTask.targetTexture = this.target.connectedPoint?.value;
53
53
  }
54
54
  }
55
55
  RegisterClass("BABYLON.NodeRenderGraphGenerateMipmapsBlock", NodeRenderGraphGenerateMipmapsBlock);
@@ -1 +1 @@
1
- {"version":3,"file":"generateMipmapsBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FrameGraph/Node/Blocks/Textures/generateMipmapsBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO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KAAgC,CAAC;IAC5G,CAAC;CACJ;AAED,aAAa,CAAC,6CAA6C,EAAE,mCAAmC,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/no-internal-modules\r\nimport type { NodeRenderGraphConnectionPoint, Scene, FrameGraphTextureHandle, FrameGraph, NodeRenderGraphBuildState } from \"core/index\";\r\nimport { NodeRenderGraphBlock } from \"../../nodeRenderGraphBlock\";\r\nimport { RegisterClass } from \"../../../../Misc/typeStore\";\r\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../../Types/nodeRenderGraphTypes\";\r\nimport { FrameGraphGenerateMipMapsTask } from \"../../../Tasks/Texture/generateMipMapsTask\";\r\n\r\n/**\r\n * Block used to generate mipmaps for a texture\r\n */\r\nexport class NodeRenderGraphGenerateMipmapsBlock extends NodeRenderGraphBlock {\r\n protected override _frameGraphTask: FrameGraphGenerateMipMapsTask;\r\n\r\n /**\r\n * Gets the frame graph task associated with this block\r\n */\r\n public override get task() {\r\n return this._frameGraphTask;\r\n }\r\n\r\n /**\r\n * Create a new NodeRenderGraphGenerateMipmapsBlock\r\n * @param name defines the block name\r\n * @param frameGraph defines the hosting frame graph\r\n * @param scene defines the hosting scene\r\n */\r\n public constructor(name: string, frameGraph: FrameGraph, scene: Scene) {\r\n super(name, frameGraph, scene);\r\n\r\n this.registerInput(\"texture\", NodeRenderGraphBlockConnectionPointTypes.Texture);\r\n this._addDependenciesInput();\r\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n\r\n this.texture.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAllButBackBuffer);\r\n this.output._typeConnectionSource = this.texture;\r\n\r\n this._frameGraphTask = new FrameGraphGenerateMipMapsTask(name, frameGraph);\r\n }\r\n\r\n /**\r\n * Gets the current class name\r\n * @returns the class name\r\n */\r\n public override getClassName() {\r\n return \"NodeRenderGraphGenerateMipmapsBlock\";\r\n }\r\n /**\r\n * Gets the texture input component\r\n */\r\n public get texture(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[0];\r\n }\r\n\r\n /**\r\n * Gets the output component\r\n */\r\n public get output(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[0];\r\n }\r\n\r\n protected override _buildBlock(state: NodeRenderGraphBuildState) {\r\n super._buildBlock(state);\r\n\r\n this._propagateInputValueToOutput(this.texture, this.output);\r\n\r\n this._frameGraphTask.destinationTexture = this.texture.connectedPoint?.value as FrameGraphTextureHandle;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.NodeRenderGraphGenerateMipmapsBlock\", NodeRenderGraphGenerateMipmapsBlock);\r\n"]}
1
+ {"version":3,"file":"generateMipmapsBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FrameGraph/Node/Blocks/Textures/generateMipmapsBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAE3F;;GAEG;AACH,MAAM,OAAO,mCAAoC,SAAQ,oBAAoB;IAGzE;;OAEG;IACH,IAAoB,IAAI;QACpB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,YAAmB,IAAY,EAAE,UAAsB,EAAE,KAAY;QACjE,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QAE/B,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,wCAAwC,CAAC,OAAO,CAAC,CAAC;QAC/E,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7B,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,wCAAwC,CAAC,YAAY,CAAC,CAAC;QAErF,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC,wCAAwC,CAAC,uBAAuB,CAAC,CAAC;QAC9G,IAAI,CAAC,MAAM,CAAC,qBAAqB,GAAG,IAAI,CAAC,MAAM,CAAC;QAEhD,IAAI,CAAC,eAAe,GAAG,IAAI,6BAA6B,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACa,YAAY;QACxB,OAAO,qCAAqC,CAAC;IACjD,CAAC;IACD;;OAEG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5B,CAAC;IAEkB,WAAW,CAAC,KAAgC;QAC3D,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAEzB,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAE5D,IAAI,CAAC,eAAe,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,KAAgC,CAAC;IACtG,CAAC;CACJ;AAED,aAAa,CAAC,6CAA6C,EAAE,mCAAmC,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/no-internal-modules\r\nimport type { NodeRenderGraphConnectionPoint, Scene, FrameGraphTextureHandle, FrameGraph, NodeRenderGraphBuildState } from \"core/index\";\r\nimport { NodeRenderGraphBlock } from \"../../nodeRenderGraphBlock\";\r\nimport { RegisterClass } from \"../../../../Misc/typeStore\";\r\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../../Types/nodeRenderGraphTypes\";\r\nimport { FrameGraphGenerateMipMapsTask } from \"../../../Tasks/Texture/generateMipMapsTask\";\r\n\r\n/**\r\n * Block used to generate mipmaps for a texture\r\n */\r\nexport class NodeRenderGraphGenerateMipmapsBlock extends NodeRenderGraphBlock {\r\n protected override _frameGraphTask: FrameGraphGenerateMipMapsTask;\r\n\r\n /**\r\n * Gets the frame graph task associated with this block\r\n */\r\n public override get task() {\r\n return this._frameGraphTask;\r\n }\r\n\r\n /**\r\n * Create a new NodeRenderGraphGenerateMipmapsBlock\r\n * @param name defines the block name\r\n * @param frameGraph defines the hosting frame graph\r\n * @param scene defines the hosting scene\r\n */\r\n public constructor(name: string, frameGraph: FrameGraph, scene: Scene) {\r\n super(name, frameGraph, scene);\r\n\r\n this.registerInput(\"target\", NodeRenderGraphBlockConnectionPointTypes.Texture);\r\n this._addDependenciesInput();\r\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\r\n\r\n this.target.addAcceptedConnectionPointTypes(NodeRenderGraphBlockConnectionPointTypes.TextureAllButBackBuffer);\r\n this.output._typeConnectionSource = this.target;\r\n\r\n this._frameGraphTask = new FrameGraphGenerateMipMapsTask(name, frameGraph);\r\n }\r\n\r\n /**\r\n * Gets the current class name\r\n * @returns the class name\r\n */\r\n public override getClassName() {\r\n return \"NodeRenderGraphGenerateMipmapsBlock\";\r\n }\r\n /**\r\n * Gets the target input component\r\n */\r\n public get target(): NodeRenderGraphConnectionPoint {\r\n return this._inputs[0];\r\n }\r\n\r\n /**\r\n * Gets the output component\r\n */\r\n public get output(): NodeRenderGraphConnectionPoint {\r\n return this._outputs[0];\r\n }\r\n\r\n protected override _buildBlock(state: NodeRenderGraphBuildState) {\r\n super._buildBlock(state);\r\n\r\n this._propagateInputValueToOutput(this.target, this.output);\r\n\r\n this._frameGraphTask.targetTexture = this.target.connectedPoint?.value as FrameGraphTextureHandle;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.NodeRenderGraphGenerateMipmapsBlock\", NodeRenderGraphGenerateMipmapsBlock);\r\n"]}
@@ -5,9 +5,11 @@ export * from "./outputBlock";
5
5
  export * from "./resourceContainerBlock";
6
6
  export * from "./Layers/glowLayerBlock";
7
7
  export * from "./Layers/highlightLayerBlock";
8
+ export * from "./PostProcesses/anaglyphPostProcessBlock";
8
9
  export * from "./PostProcesses/blackAndWhitePostProcessBlock";
9
10
  export * from "./PostProcesses/bloomPostProcessBlock";
10
11
  export * from "./PostProcesses/blurPostProcessBlock";
12
+ export * from "./PostProcesses/chromaticAberrationPostProcessBlock";
11
13
  export * from "./PostProcesses/circleOfConfusionPostProcessBlock";
12
14
  export * from "./PostProcesses/depthOfFieldPostProcessBlock";
13
15
  export * from "./PostProcesses/extractHighlightsPostProcessBlock";
@@ -5,9 +5,11 @@ export * from "./outputBlock.js";
5
5
  export * from "./resourceContainerBlock.js";
6
6
  export * from "./Layers/glowLayerBlock.js";
7
7
  export * from "./Layers/highlightLayerBlock.js";
8
+ export * from "./PostProcesses/anaglyphPostProcessBlock.js";
8
9
  export * from "./PostProcesses/blackAndWhitePostProcessBlock.js";
9
10
  export * from "./PostProcesses/bloomPostProcessBlock.js";
10
11
  export * from "./PostProcesses/blurPostProcessBlock.js";
12
+ export * from "./PostProcesses/chromaticAberrationPostProcessBlock.js";
11
13
  export * from "./PostProcesses/circleOfConfusionPostProcessBlock.js";
12
14
  export * from "./PostProcesses/depthOfFieldPostProcessBlock.js";
13
15
  export * from "./PostProcesses/extractHighlightsPostProcessBlock.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FrameGraph/Node/Blocks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAE7C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mDAAmD,CAAC;AAClE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"./elbowBlock\";\r\nexport * from \"./executeBlock\";\r\nexport * from \"./inputBlock\";\r\nexport * from \"./outputBlock\";\r\nexport * from \"./resourceContainerBlock\";\r\n\r\nexport * from \"./Layers/glowLayerBlock\";\r\nexport * from \"./Layers/highlightLayerBlock\";\r\n\r\nexport * from \"./PostProcesses/blackAndWhitePostProcessBlock\";\r\nexport * from \"./PostProcesses/bloomPostProcessBlock\";\r\nexport * from \"./PostProcesses/blurPostProcessBlock\";\r\nexport * from \"./PostProcesses/circleOfConfusionPostProcessBlock\";\r\nexport * from \"./PostProcesses/depthOfFieldPostProcessBlock\";\r\nexport * from \"./PostProcesses/extractHighlightsPostProcessBlock\";\r\nexport * from \"./PostProcesses/passPostProcessBlock\";\r\nexport * from \"./PostProcesses/ssrPostProcessBlock\";\r\n\r\nexport * from \"./Rendering/csmShadowGeneratorBlock\";\r\nexport * from \"./Rendering/cullObjectsBlock\";\r\nexport * from \"./Rendering/geometryRendererBlock\";\r\nexport * from \"./Rendering/objectRendererBlock\";\r\nexport * from \"./Rendering/shadowGeneratorBlock\";\r\nexport * from \"./Rendering/taaObjectRendererBlock\";\r\nexport * from \"./Rendering/utilityLayerRendererBlock\";\r\n\r\nexport * from \"./Teleport/teleportInBlock\";\r\nexport * from \"./Teleport/teleportOutBlock\";\r\n\r\nexport * from \"./Textures/clearBlock\";\r\nexport * from \"./Textures/copyTextureBlock\";\r\nexport * from \"./Textures/generateMipmapsBlock\";\r\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FrameGraph/Node/Blocks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAE7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"./elbowBlock\";\r\nexport * from \"./executeBlock\";\r\nexport * from \"./inputBlock\";\r\nexport * from \"./outputBlock\";\r\nexport * from \"./resourceContainerBlock\";\r\n\r\nexport * from \"./Layers/glowLayerBlock\";\r\nexport * from \"./Layers/highlightLayerBlock\";\r\n\r\nexport * from \"./PostProcesses/anaglyphPostProcessBlock\";\r\nexport * from \"./PostProcesses/blackAndWhitePostProcessBlock\";\r\nexport * from \"./PostProcesses/bloomPostProcessBlock\";\r\nexport * from \"./PostProcesses/blurPostProcessBlock\";\r\nexport * from \"./PostProcesses/chromaticAberrationPostProcessBlock\";\r\nexport * from \"./PostProcesses/circleOfConfusionPostProcessBlock\";\r\nexport * from \"./PostProcesses/depthOfFieldPostProcessBlock\";\r\nexport * from \"./PostProcesses/extractHighlightsPostProcessBlock\";\r\nexport * from \"./PostProcesses/passPostProcessBlock\";\r\nexport * from \"./PostProcesses/ssrPostProcessBlock\";\r\n\r\nexport * from \"./Rendering/csmShadowGeneratorBlock\";\r\nexport * from \"./Rendering/cullObjectsBlock\";\r\nexport * from \"./Rendering/geometryRendererBlock\";\r\nexport * from \"./Rendering/objectRendererBlock\";\r\nexport * from \"./Rendering/shadowGeneratorBlock\";\r\nexport * from \"./Rendering/taaObjectRendererBlock\";\r\nexport * from \"./Rendering/utilityLayerRendererBlock\";\r\n\r\nexport * from \"./Teleport/teleportInBlock\";\r\nexport * from \"./Teleport/teleportOutBlock\";\r\n\r\nexport * from \"./Textures/clearBlock\";\r\nexport * from \"./Textures/copyTextureBlock\";\r\nexport * from \"./Textures/generateMipmapsBlock\";\r\n"]}
@@ -482,7 +482,7 @@ export class NodeRenderGraph {
482
482
  const clear = new NodeRenderGraphClearBlock("Clear", this._frameGraph, this._scene);
483
483
  clear.clearDepth = true;
484
484
  clear.clearStencil = true;
485
- colorTexture.output.connectTo(clear.texture);
485
+ colorTexture.output.connectTo(clear.target);
486
486
  depthTexture.output.connectTo(clear.depth);
487
487
  // Render objects
488
488
  const camera = new NodeRenderGraphInputBlock("Camera", this._frameGraph, this._scene, NodeRenderGraphBlockConnectionPointTypes.Camera);
@@ -490,7 +490,7 @@ export class NodeRenderGraph {
490
490
  const mainRendering = new NodeRenderGraphObjectRendererBlock("Main Rendering", this._frameGraph, this._scene);
491
491
  camera.output.connectTo(mainRendering.camera);
492
492
  objectList.output.connectTo(mainRendering.objects);
493
- clear.output.connectTo(mainRendering.destination);
493
+ clear.output.connectTo(mainRendering.target);
494
494
  clear.outputDepth.connectTo(mainRendering.depth);
495
495
  // Final output
496
496
  const output = new NodeRenderGraphOutputBlock("Output", this._frameGraph, this._scene);