Просмотр исходного кода

TSL: Add `texture_depth_multisampled_2d` for `wgslFn` (#30082)

* add 'texture_depth_multisampled_2d' for `wgslFn`

* Add `NextNode` and `.next()`

* add options for `depthPass()`

* cleanup

* Revert "cleanup"

This reverts commit 91982478adae7e7ebcfdfaa7ce243e8e08884e68.

* Revert "Add `NextNode` and `.next()`"

This reverts commit 1dda4df03ba34c8db3bf00d9a07098d9219c33cb.

* Merge branch 'dev' into dev-depth-rev

* Revert "Merge branch 'dev' into dev-depth-rev"

This reverts commit 16461039214dd1609efee2cd64812a8deefb8e20.
sunag 1 год назад
Родитель
Сommit
80b7991428
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 1
      src/nodes/display/PassNode.js
  2. 1 0
      src/renderers/webgpu/nodes/WGSLNodeFunction.js

+ 2 - 1
src/nodes/display/PassNode.js

@@ -665,6 +665,7 @@ export const passTexture = ( pass, texture ) => nodeObject( new PassTextureNode(
  * @function
  * @param {Scene} scene - A reference to the scene.
  * @param {Camera} camera - A reference to the camera.
+ * @param {Object} options - Options for the internal render target.
  * @returns {PassNode}
  */
-export const depthPass = ( scene, camera ) => nodeObject( new PassNode( PassNode.DEPTH, scene, camera ) );
+export const depthPass = ( scene, camera, options ) => nodeObject( new PassNode( PassNode.DEPTH, scene, camera, options ) );

+ 1 - 0
src/renderers/webgpu/nodes/WGSLNodeFunction.js

@@ -58,6 +58,7 @@ const wgslTypeLib = {
 	'texture_multisampled_2d': 'cubeTexture',
 
 	'texture_depth_2d': 'depthTexture',
+	'texture_depth_multisampled_2d': 'depthTexture',
 
 	'texture_3d': 'texture3D',
 

粤ICP备19079148号