Nothing rendered from wasm? #3025
-
I have some code that works fine when I run it normally, but doesn't render anything from wasm. I'm wondering if this is a bug or somehow expected or has some workaround. You can see it here when the player spawns (currently at commit 2): It should look like this, but in wasm the spawning doesn't render and when the sequence ends the image pops in. spawn.mp4If it helps, I've extracted the relevant code here:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Colors must be pre-multiplied alpha. See https://github.com/tinne26/kage-desk/blob/main/docs/tutorials/premult.md |
Beta Was this translation helpful? Give feedback.
-
Very helpful thanks! The differing behavior in wasm was especially confusing, but using NRGBA eliminates it. Thanks again. |
Beta Was this translation helpful? Give feedback.
Colors must be pre-multiplied alpha. See https://github.com/tinne26/kage-desk/blob/main/docs/tutorials/premult.md