Explorar o código

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

* add support for meshPhongNodeMaterial

* support texture onUpdate callback

---------

Co-authored-by: aardgoose <[email protected]>
aardgoose %!s(int64=2) %!d(string=hai) anos
pai
achega
e502a127a7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 ) {