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

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

* add support for meshPhongNodeMaterial

* support texture onUpdate callback

---------

Co-authored-by: aardgoose <angus.sawyer@email.com>
aardgoose 2 лет назад
Родитель
Сommit
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 ) {

粤ICP备19079148号