فهرست منبع

WebGPURenderPipelines: Clean up.

Mugen87 4 سال پیش
والد
کامیت
cf9822ca93
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      examples/jsm/renderers/webgpu/WebGPURenderPipelines.js

+ 2 - 1
examples/jsm/renderers/webgpu/WebGPURenderPipelines.js

@@ -145,6 +145,7 @@ class WebGPURenderPipelines {
 
 
 			const primitiveTopology = this._getPrimitiveTopology( object );
 			const primitiveTopology = this._getPrimitiveTopology( object );
 			const rasterizationState = this._getRasterizationStateDescriptor( object );
 			const rasterizationState = this._getRasterizationStateDescriptor( object );
+			const depthCompare = this._getDepthCompare( material );
 
 
 			pipeline = device.createRenderPipeline( {
 			pipeline = device.createRenderPipeline( {
 				layout: layout,
 				layout: layout,
@@ -158,7 +159,7 @@ class WebGPURenderPipelines {
 				} ],
 				} ],
 				depthStencilState: {
 				depthStencilState: {
 					depthWriteEnabled: material.depthWrite,
 					depthWriteEnabled: material.depthWrite,
-					depthCompare: this._getDepthCompare( material ),
+					depthCompare: depthCompare,
 					format: GPUTextureFormat.Depth24PlusStencil8,
 					format: GPUTextureFormat.Depth24PlusStencil8,
 				},
 				},
 				vertexState: {
 				vertexState: {