godot4 shader mixing color unexpectedly
Asked Answered
A

4

0

when I import a picture with red, yellow and blue into the shader of godot 3.5 and 4 as sampler2D txeture, they will give me different result.
in the 3.5 it is great, but the godot 4 will mixing all colors then turn the txeture into grey.

samlper2D

in godot 3.5

in godot 4

Ance answered 10/5, 2023 at 15:59 Comment(0)
O
0

Ance Your bitmap is only 4x4 pixels in size and it got "damaged" by vram compression at import. Reimport it with compression mode set to "lossless"

Orthicon answered 11/5, 2023 at 11:0 Comment(0)
O
0

Can you post a minimal project that reproduces the problem?

Orthicon answered 10/5, 2023 at 16:50 Comment(0)
O
0

Ance Your bitmap is only 4x4 pixels in size and it got "damaged" by vram compression at import. Reimport it with compression mode set to "lossless"

Orthicon answered 11/5, 2023 at 11:0 Comment(0)
A
0

[unknown] solved it just like you say, thank you, really helpful. 🙂

Ance answered 11/5, 2023 at 13:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.