godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.93k stars 20.17k forks source link

Light-only mode in CanvasItemMaterial makes tile disappear in Tilemap/Tileset editor #80348

Open VenethImakiir opened 1 year ago

VenethImakiir commented 1 year ago

Godot version

v4.1.1.stable.official [bd6af8e0e]

System information

Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; 31.0.15.3640) - Intel(R) Xeon(R) CPU W3530 @ 2.80GHz (4 Threads)

Issue description

The same problem as reported in issue #44559 - except it happens when setting light mode for tiles in tileset editor. Affects only tileset and tilemap editors preview, tiles are visible on scenes and in-game. All tiles sharing the same material are affected.

Steps to reproduce

  1. Create TileMap
  2. Create TileSet
  3. import a tileset bitmap and select a tile/multiple tiles
  4. Add CanvasItemMaterial
  5. Set the light mode in the material to light only

Minimal reproduction project

N/A

clayjohn commented 1 year ago

Could you please upload an MRP to make this easier for contributors to troubleshoot?

An MRP is a project that is as small as can be while still reproducing the bug you are reporting. We include the MRP in the bug reporting template as including one greatly increases the chance that a contributor will be able to reproduce the bug you reported and be able to fix it.