Browse Source

WebGPURenderer: Initialize WebGPU attribute buffer version as geometry attribute version

Takahiro 5 năm trước cách đây
mục cha
commit
c28c785573
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUAttributes.js

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPUAttributes.js

@@ -65,7 +65,7 @@ class WebGPUAttributes {
 		buffer.unmap();
 
 		return {
-			version: 0,
+			version: attribute.version,
 			buffer: buffer
 		};