소스 검색

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 rasterizationState = this._getRasterizationStateDescriptor( object );
+			const depthCompare = this._getDepthCompare( material );
 
 			pipeline = device.createRenderPipeline( {
 				layout: layout,
@@ -158,7 +159,7 @@ class WebGPURenderPipelines {
 				} ],
 				depthStencilState: {
 					depthWriteEnabled: material.depthWrite,
-					depthCompare: this._getDepthCompare( material ),
+					depthCompare: depthCompare,
 					format: GPUTextureFormat.Depth24PlusStencil8,
 				},
 				vertexState: {