浏览代码

WebGPURenderer: add missing texture.onUpdate() callback. (#26375)

* add support for meshPhongNodeMaterial

* support texture onUpdate callback

---------

Co-authored-by: aardgoose <[email protected]>
aardgoose 2 年之前
父节点
当前提交
e502a127a7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js

+ 2 - 0
examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js

@@ -243,6 +243,8 @@ class WebGPUTextureUtils {
 
 		textureData.version = texture.version;
 
+		if ( texture.onUpdate ) texture.onUpdate( texture );
+
 	}
 
 	async copyTextureToBuffer( texture, x, y, width, height ) {