Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images with resizeMode "cover" doesn't apply radius effect correctly #357

Open
chiefcll opened this issue Aug 14, 2024 · 0 comments
Open
Assignees

Comments

@chiefcll
Copy link
Contributor

If you update the resize-mode test and add a radius effect it's not applied on the contained image.

renderer.createNode({
            x: curX,
            width: SQUARE_SIZE,
            height: SQUARE_SIZE - 300,
            texture: renderer.createTexture('ImageTexture', {
              src: testscreenImg,
            }),
            textureOptions: {
              resizeMode: {
                type: 'cover',
              },
            },
            shader: renderer.createShader('DynamicShader', {
              effects: [
                {
                  type: 'radius',
                  props: {
                    radius: 16,
                  },
                }
              ]}),
            parent: rowNode,
          });

image

I'd expect the image to perform the Cover and then apply radius effect to the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants