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

Đang mở
#230 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
1.4k
Fork
485
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của phaserjs/phaser-ce

Tất cả issue của phaserjs/phaser-ce

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.