فهرست منبع

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 ) {