Strange filter behavior when using WEBGL_MULTI renderer and multitexture: true.

Aperta
#230 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript

Direzione di ricerca

Start with the linked CodePen example and compare the reported sprite.shader and sprite.filters behavior in Phaser 2.7.7 using the WEBGL_MULTI renderer and multitexture: true. Read the related issue #211 for context. The issue does not name source files or tests; done means shaders and filters render as expected, including on sprites that share textures and have child elements.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

This Issue is about filter behavior when using WEBGL_MULTI renderer and multitexture: true.

  • A bug in the API:
    • Phaser version(s): 2.7.7
    • Live example: http://codepen.io/vantreeseba/pen/aWyZPj
    • What should happen: Shader / Filter should render properly.
    • What happens instead: There are strange behaviors with filters.

When used as a shader (sprite.shader = filter) it has no effect.
When used as a filter (sprite.filters=[filter]) it works fine.

When used as both a shader and a filter, the sprite is rendered with strange colors.

When used as a filter on a sprite that shares a texture with another sprite, the second sprite (without the filter) is not rendered correctly.

When used as a filter, and then a shader with both shared and unshared textures, it works correctly (but sprite with filter does not render child elements, while sprite with shader does).

This issue is related to / duplicate of #211 but with more examples of the behaviors.

Lingua principale
JavaScript
Stelle
1.4k
Fork
485
Merge medio
1g 2h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di phaserjs/phaser-ce

Tutte le issue di phaserjs/phaser-ce

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.