Add new "unclamped" behavior to DirectionalMap

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

@zychen8 đang làm issue này rồi.

Từ ngày 21/9/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement good first issue help wanted

Currently DirectionalMap has two behaviors for how it determines the angle: clamped or absolute (see the "clamping_behavior" enum attribute).

    float cosTheta = dot(N, prime);
    if (me->get(attrClamping) == ispc::DIRECTIONAL_BEHAVIOR_ABS) {
        cosTheta = scene_rdl2::math::abs(cosTheta);
    }
    cosTheta = saturate(cosTheta);

Adding a third "unclamped" behavior would make this shader more flexible. The new behavior should remap the full [-1,1] range of cosTheta to [0,1] rather than simply clamping it with saturate().

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

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.