Skip to content

Inconsistent blending behaviour between Windows and HTML5 #1501

@distantforest1

Description

@distantforest1

Describe the bug
Hi I'm getting some inconsistent behaviour for the blending for the Windows build target and the debug electron build.

On the Electron Build:
electron_9GJiSq79M8

On the Windows Build:
Shader-G2_kbuVswuhDu

I've created a repro of the bug:
https://github.com/distantforest1/Shader-G2-blendingbug

To Reproduce
Open this up in VS Code:
https://github.com/distantforest1/Shader-G2-blendingbug

  • Press F5 to run the debug, it is blending properly
  • Build with Ctrl-Shift-B on Windows (Full Build opengl/directX). It is not blending as expected.

** Additional context: **
It appears that in the windows build, if you change the blending mode, you need to recompile the pipeline?
https://github.com/distantforest1/Shader-G2-blendingbug/blob/a96a9d9b1e014c0f84fe2b8a1f0fc4461adb4664/Sources/Main.hx#L74

Expected behavior
Not needing to recompile the pipeline for blend mode changes, or requiring a compile for the electron build (for consistency).
Execution Environment:
Operating system: Windows 10 Home. Windows-10-10.0.19045-SP0 64 Bits.
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 560.94

  • IDE used (if any): Visual Studio Code
  • Kha revision: Latest
  • Kha build output (Using Kha...):
  • Application output (if it runs):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions