Browse Source

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

* add support for meshPhongNodeMaterial

* support texture onUpdate callback

---------

Co-authored-by: aardgoose <[email protected]>
aardgoose 2 years ago
parent
commit
e502a127a7
1 changed files with 2 additions and 0 deletions
  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 ) {