瀏覽代碼

Update WebGPUPipelineUtils.js

see https://github.com/mrdoob/three.js/pull/30862#discussion_r2034041690
Michael Herzog 1 年之前
父節點
當前提交
4e3db421ae
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/webgpu/utils/WebGPUPipelineUtils.js

+ 1 - 1
src/renderers/webgpu/utils/WebGPUPipelineUtils.js

@@ -88,7 +88,7 @@ class WebGPUPipelineUtils {
 
 		let blending;
 
-		if ( material.blending !== NoBlending && ( material.blending !== NormalBlending || material.transparent === true ) ) {
+		if ( material.blending !== NoBlending && ( material.blending !== NormalBlending || material.transparent !== false ) ) {
 
 			blending = this._getBlending( material );
 

粤ICP备19079148号