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

Graphics beginTextureFill doesn't work with Float32Array textures #8407

Open
dobrygin opened this issue Jun 17, 2022 · 0 comments
Open

Graphics beginTextureFill doesn't work with Float32Array textures #8407

dobrygin opened this issue Jun 17, 2022 · 0 comments
Labels
🙏 Feature Request Community request for new features, APIs, packages.

Comments

@dobrygin
Copy link

dobrygin commented Jun 17, 2022

Expected Behavior

Circle should not be transparent

Current Behavior

Screenshot 2022-06-17 at 04 01 40

Steps to Reproduce

— Create Graphics
— Do
`this.graphics.beginTextureFill({
texture: Texture.fromBuffer((new Float32Array(64 * 64 * 4)).fill(0.01, 0, 64 * 64 * 4), 64, 64, {
format: FORMATS.RGBA,
type: TYPES.FLOAT
}),
})

for (let i = 0; i < 100; i++) {
this.graphics.drawCircle(0, 0, 64);
}
`

Environment

  • pixi.js version: 6.2.2
  • Browser & Version: Chrome 102.0.5005.115 (Official Build) (arm64)
  • OS & Version: MacOS 12.3.1
@pixijs pixijs deleted a comment from Aung1245 Sep 8, 2022
@pixijs pixijs deleted a comment from Aung1245 Sep 8, 2022
@bigtimebuddy bigtimebuddy added the 🙏 Feature Request Community request for new features, APIs, packages. label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏 Feature Request Community request for new features, APIs, packages.
Projects
None yet
Development

No branches or pull requests

2 participants