Skip to content

Commit

Permalink
fix(blend): blend not back (#181)
Browse files Browse the repository at this point in the history
remove set render blend mode  when blendMode equal none
fix blend not back none
  • Loading branch information
ZenderJK committed May 30, 2023
1 parent 58ad344 commit e65cbb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public
Submodule public updated 2 files
+20,150 −1 json/anim_0.json
+ sky/LDR_sky.jpg
2 changes: 2 additions & 0 deletions src/gfx/graphics/webGpu/shader/RenderShader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,8 @@ export class RenderShader extends ShaderBase {
let target = targets[renderPassState.outColor];
if (shaderState.blendMode != BlendMode.NONE) {
target.blend = BlendFactor.getBlend(shaderState.blendMode);
} else {
target.blend = undefined;
}
}

Expand Down

0 comments on commit e65cbb9

Please sign in to comment.