feat(instances): Allow two-sided rendering per renderer

Đang mở
#25 0 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
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
computer-graphics

Hướng nghiên cứu

Start at the renderer API and trace how mesh sidedness controls face culling and back-face lighting. Follow the renderer’s depth and shadow passes as well. Done when renderer({ sides: 'both' }) applies two-sided rendering consistently in all passes, while the default still follows each mesh’s doubleSided setting.

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

Mô tả

Face culling and back-face lighting are set by each mesh in the pool. A cutaway or inspection view can need both faces of the same meshes that the main view draws one-sided. Duplicating the pool entries for this also duplicates their geometry.

Add an opt-in renderer({ sides: 'both' }) that disables back-face culling and uses two-sided lighting. Apply the same sidedness in the renderer’s depth and shadow passes. By default, use each mesh’s doubleSided setting.

Ngôn ngữ chính
TypeScript
Star
69
Fork
7
Merge trung bình
1 giờ 48 phút
Pull request đã merge (30 ngày)
15

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 software-mansion/typegpu-kit

Tất cả issue của software-mansion/typegpu-kit

Issue tương tự

Thêm issue về TypeScript

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.