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

オープン
#230 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
1.4k
フォーク
485
平均マージ
1日 2時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

phaserjs/phaser-ce のほかの issue

phaserjs/phaser-ce の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。