flame-engine / flame-engine/flame

Weird behavior with Flame Shaders compared to pure flutter shader

Open
#3,766 4 comments 0 reactions 1 assignee Claimed by @renancaraujo View on GitHub
bug
Dominant language
Dart
Stars
10.8k
Forks
1k
Avg merge
1d 20h
Merged PRs (30d)
21

Description

### What happened?

Trying to use a shader that works in pure Flutter, it doesn't in Flame. My picture gets scaled down and asymmetrically deformed. This might be simply something I don't understand with how to pass data to the shader in Flame, or a bug, I'm unsure.

### What do you expect?

I'm trying to reproduce the same behavior in pure flutter and in Flame, On the right
the expected result and on the left the one I'm getting with Flame.

Image

### How can we reproduce this?

I made a public repo to work on the issue you can take a look at
https://github.com/stilnat/shader-flame-test

### What steps should take to fix this?

I don't know at all

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.