darthdeus / comfy

Comfy is a fun 2D game engine built in Rust. It's designed to be opinionated, productive, and easy to use.

Home Page:https://comfyengine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Semi-transparent textures render incorrectly

nokola opened this issue · comments

To reproduce:

  1. Attempt to render attached texture hs.png
    image

Expected:
texture renders with smooth and low opacity

Actual:
texture renders with high opacity and black border

Notes:

  1. I have set game_config_mut().bloom_enabled = false; in setup()
  2. Is this sRGB vs linear color handling issue?

Drawing code:

        draw_sprite_rot(
            info.ship.into(),
            vec2(trans.x, trans.y),
            WHITE,
            1,
            body.rotation().angle(),
            info.size / 2.5,
        );