Add new "unclamped" behavior to DirectionalMap

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

@zychen8 がすでに取り組んでいます。

2026年9月21日 から。

評価

この issue はまだ評価されていません。

説明

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().

主要言語
CMake
スター
4.7k
フォーク
321
平均マージ
13分
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

OpenMoonRay/openmoonray のほかの issue

OpenMoonRay/openmoonray の issue をすべて見る

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

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