瀏覽代碼

WebGPUTextures: Enhance sampler cache key.

Mugen87 5 年之前
父節點
當前提交
5029895696
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 );