Skip to content

Making a material unique with emission enabled will result in incorrect editor colors #60849

Closed
@stryker313

Description

@stryker313

Godot version

4.0 Alpha 7

System information

Windows 10 Nvidia GTX 1060 Intel i5 4690k

Issue description

If you make a unique material on a material with emission enabled, it will glitch out in the editor

Untitled3.mp4

When making a copy of the material, pasting to another object, then making unique, the red will turn to white.

In the game, it is fine.

However, the colors are inaccurate in the editor

When you exit the editor and return, the colors will be fine again.

The editor issue only exists when you make a copy of a material, then make that material unique.

Steps to reproduce

Create 2 meshes
Create a material3d on 1 mesh
Set emission to true
Set albedo and emission color to color other than white
Copy material from mesh 1 to mesh 2
Make material on mesh 2 unique
Editor will glitch the colors out

Again, this does not affect the game. The colors are correct in game. However, the editor is inaccurate.

Minimal reproduction project

MaterialBug (2).zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions