update Map object to include a sample function for multi-output map shaders

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

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
47/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, cpp
Lĩnh vực
computer-graphics

Hướng nghiên cứu

Start with the sample function declarations and function pointer unions in lib/scene/rdl2/Types.h and lib/scene/rdl2/Map.h, then read the existing setFatalSampleFuncBool pattern in lib/scene/rdl2/SceneContext.h. Trace how Map::setFataled() handles existing shader output cases. Done means adding the void* sample and samplev variants, corresponding function pointer union variants, fatal sample function accessors, and multi-output handling in setFataled().

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

Mô tả

In scene_rdl2: lib/scene/rdl2/Types.h and lib/scene/rdl2/Map.h add sample and samplev() function variants which takes a void* which will be used for multi-output shaders
Add SampleFuncMulti (or some appropriate name) variant to the 4 function pointer unions

  • mSampleFunc group
  • mSampleFuncv group
  • mOriginalSampleFunc group
  • mOriginalSampleFuncv group

Add {set,get}FatalSampleFunc() to scene_rdl2: lib/scene/rdl2/SceneContext.h analogous to setFatalSampleFuncBool
Handle the multi-output shader case in Map::setFataled() in lib/scene/rdl2/Map.h

Ngôn ngữ chính
CMake
Star
4.7k
Fork
321
Merge trung bình
13 phút
Pull request đã merge (30 ngày)
3

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 OpenMoonRay/openmoonray

Tất cả issue của OpenMoonRay/openmoonray

Issue tương tự

Thêm issue về Computer Graphics

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.