Browse Source

WebGPUTextures: Enhance sampler cache key.

Mugen87 5 năm trước cách đây
mục cha
commit
5029895696
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      examples/jsm/renderers/webgpu/WebGPUTextures.js

+ 3 - 0
examples/jsm/renderers/webgpu/WebGPUTextures.js

@@ -105,6 +105,9 @@ class WebGPUTextures {
 
 		const array = [];
 
+		array.push( texture.wrapS );
+		array.push( texture.wrapT );
+		array.push( texture.wrapR );
 		array.push( texture.magFilter );
 		array.push( texture.minFilter );
 		array.push( texture.anisotropy );